Для этого может быть проще всего загрузить простой набор инструментов для мыла, например 'NuSOAP', из sourceforge.
А затем вы должны написать что-то вроде следующего (пример представления номера ISBN):
<?php
// include the SOAP classes
require_once('nusoap.php');
// define parameter array (ISBN number)
$param = array('isbn'=>'0385503954');
// define path to server application
$serverpath ='http://services.xmethods.net:80/soap/servlet/rpcrouter';
//define method namespace
$namespace="urn:xmethods-BNPriceCheck";
// create client object
$client = new soapclient($serverpath);
// make the call
$price = $client->call('getPrice',$param,$namespace);
// if a fault occurred, output error info
if (isset($fault)) {
print "Error: ". $fault;
}
else if ($price == -1) {
print "The book is not in the database.";
} else {
// otherwise output the result
print "The price of book number ". $param[isbn] ." is $". $price;
}
// kill object
unset($client);
?>
Этот фрагмент кода был взят непосредственно из сайта, который также является хорошим ресурсом для просмотра.
http://developer.apple.com/internet/webservices/soapphp.html
Надеюсь, это поможет.