Use cURL http://uk3.php.net/curl to transfer the data, something like:
PHP Code:
$data= '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://url.com/" xmlns:web="http://schemas.url2.org">
<soapenv:Header/>
<soapenv:Body>
<ser:GetTransactionData>
<ser:transactionQueryRequest>
<web:Hash>xyz123</web:Hash>
<web:ProductId>1122</web:ProductId>
<web:TransactionReference>889900</web:TransactionReference>
</ser:transactionQueryRequest>
</ser:GetTransactionData>
</soapenv:Body>
</soapenv:Envelope>';
$url = 'WhereverYouAreSendingIt.com';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml","SOAPAction: \"/soap/action/query\"", "Content-length: ".strlen($data)));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
echo "<pre>";
print_r($reponse);
echo "</pre>"
Bookmarks