SOAP access to SharePoint web services

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sclg
Forum Newbie
Posts: 6
Joined: Sat Mar 03, 2007 2:12 pm

SOAP access to SharePoint web services

Post 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
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post 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
sclg
Forum Newbie
Posts: 6
Joined: Sat Mar 03, 2007 2:12 pm

Post 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]
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post 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
Post Reply