user104131
user104131

Reputation: 53

php5 soap client in wsdl mode how to access different svc endpoint than the one specified in the wsdl

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

Answers (1)

Jon Benedicto
Jon Benedicto

Reputation: 10582

Pass location using the optional second parameter like this:

$sc = new SoapClient('urlofmywsdl', array('location' => 'urltowebservice'));

Upvotes: 4

Related Questions