Aug 072012
 

I have post XML by following code.

    $postdata = http_build_query(
        array( 'xmlInput' => $xml )
    );
    $opts = array('http' =>
        array(
            'method'  => 'POST',
            'header'  => 'Content-type: application/x-www-form-urlencoded',
            'content' => $postdata
        )
    );
    $context  = stream_context_create($opts);
    $result = file_get_contents($url, false, $context);