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:
$location -- This parameter is either the 'proxy' for the soap server or a wsdl.
$uri -- If the 'location' parameter isn't a wsdl then you must supply the uri of the soap service.
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();
Deliver First Class Web Sites: 101 Essential Checklists Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?