Page 1 of 1

SOAP access to SharePoint web services

Posted: Sat Mar 03, 2007 4:26 pm
by sclg
Anyone used PHP SOAP to access Sharepoint web services?
I'm happy with PHP, but I'm a newbie with SOAP!

I can access the services in general, but can't find out how to authenticate myself to the SharePoint system so i can't actually pull any data out.

Any pointers gratefully received!

Thanks
Steve

Posted: Sun Mar 04, 2007 5:33 am
by dude81
SOAP client of php5 could be of help.Also my own problem could be of help. Its so easy to implement. Just declare the client class with wsdl url in it. And access the services as the methods of the class. Nothing could be so easy.
PHP5 rocks :D

Posted: Sun Mar 04, 2007 12:11 pm
by sclg
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


I've got started OK. e.g.

Code: Select all

require_once('SOAP/Client.php'); 
$wsdl=new SOAP_WSDL( 'http://mydomain/_vti_bin/Lists.asmx?wsdl');
echo ( $wsdl->generateProxyCode() );
gives me the response I'd expect.

Trouble is, if I extend this to...

Code: Select all

require_once('SOAP/Client.php'); 
$wsdl=new SOAP_WSDL('http://mydomain/_vti_bin/Lists.asmx?wsdl');

$ListOutput=$wsdl->getProxy();
$info=$ListOutput->GetList("The_List_I_Want");

print_r ( $info );
I don't get what I want because, of course, I haven't provided any log in info.
What I can't figure out is how to provide this login info to SharePoint....

Steve


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Sun Mar 04, 2007 10:21 pm
by dude81
The class I'm talking about is PHP5-SOAP. I'm not aware of what class you are using. But on searching for PHP5-SOAP-Authentication I got the following link. I think you need to use soap_var class for authentication