Reputation: 53
I´m a newbie to soap with php5...
I need to use a wsdl provided by a third party company, where, for testing purposes I´m supposed to use a different access address location for the service I´m needing, than the one specified in the wsdl document.
Is there any way I can create my soap client in wsdl mode, and override the specified address location in the wsdl for a different one?
Upvotes: 2
Views: 4847
Reputation: 10582
Pass location using the optional second parameter like this:
$sc = new SoapClient('urlofmywsdl', array('location' => 'urltowebservice'));
Upvotes: 4