homepage Welcome to WebmasterWorld Guest from 54.161.190.9
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHP SOAP Client
davidmj




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

Hi

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?


[example]

Displays all the methods available from the service

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



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?

 

Little_G




msg:4255403
 9:29 pm on Jan 19, 2011 (gmt 0)

Hi,

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.

Andrew

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved