Description
| Warning |
This function is
EXPERIMENTAL. That means, that the behaviour of this
function, the function name, in concreto ANYTHING documented here can
change in a future release of this package WITHOUT NOTICE. Be warned, and
use this function at your own risk. |
This is the constructor of the SoapObject the 'Soap Client'.
This constructor takes two parameters. If only one parameter is
supplied then it willassume the parameter is a WSDL of the soap
service you wish to reach. If two parameters are passed then it
will assume the first parameter is the 'proxy' or endpoint of the
soap service and the second parameter will be the uri of the soap
service you wish to reach.
Parameters:
Once you have connected to the remote server, by creating the
object, you can call any of the exposed Methods as in the example
below which calls the remote method, getQuote();
Example 1. SoapObject() example <?php
//simple example to check soap extension client is working..
dl('soap.so');
echo "create client\n";
$soapclient = new SoapObject("http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl");
echo "sending getquote\n";
$ret = $soapclient->getQuote("ibm");
print_r($ret);
echo "done";
?> |
|