Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies


8:47 pm on Jan 19, 2011 (gmt 0)

10+ Year Member


I am trying to implement a SOAP client

The service has a number of properties like login, password, token which I have to somehow pass in in order to access the service

How do I implement these in my client?


Displays all the methods available from the service

$client = new SoapClient("https://url/url/url?wsdl");#

Where and how do I pass in my credentials in order to access the service? Is there a Param array you would normally pass in?
9:29 pm on Jan 19, 2011 (gmt 0)

5+ Year Member


If the service is using HTTP authentication then yes there is a second argument available in the SoapClient constructor where you can set a username and password. Documentation is here [php.net] with examples.


Featured Threads

Hot Threads This Week

Hot Threads This Month