Go Back   DocuSign Forums > DocuSign Developer Community > DocuSign API Integration (Other)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-27-2009, 10:02 AM
thompanilla thompanilla is offline
Member
 
Join Date: Oct 2009
Posts: 3
Default php soap...newbie

ok, so, i'm trying to integrate via php/soap.

here's a simple function...

function ping(){

$wsdl = "https://demo.docusign.net/api/3.0/api.asmx?WSDL";
$params = array('UserName'=>'xxxx','Password'=>'xxxxx');
$client = new soapclient($wsdl);
new dBug ($client->GetAuthenticationToken($params));
}


I'm getting back..
Security requirements are not satisfied because the security header is not present in the incoming message

I'm new to php/soap...please be gentle!

any pointers?

Thanks...
Reply With Quote
  #2  
Old 10-27-2009, 10:05 AM
thompanilla thompanilla is offline
Member
 
Join Date: Oct 2009
Posts: 3
Default

btw...dBug is just a function that dumps the returned object to the screen.

coincidentally, when i call "__getFunctions()" I get back all of the methods available, so, i know I can connect to the service...and that's w/o authenticating.
Reply With Quote
  #3  
Old 10-27-2009, 11:11 AM
mikeb mikeb is offline
Manager of Professional Services
 
Join Date: Aug 2008
Location: Seattle, WA
Posts: 185
Default

Hey there!

We beat our head against the wall for a while trying to get out of the box SOAPClient to work.

It wasn't until we found a couple of PHP libraries that allow you to inject proper SOAP headers.

For a newbie you should start with downloading and setting up this project:
http://www.docusign.com/forums/showp...2&postcount=18

It gets you to send stuff with a click of the button.

This sample doesn't use the Login method so you will need to go to your account and get API credentials to plug into the INI file.
__________________
--
Mike Borozdin / DocuSign Professional Services
Reply With Quote
  #4  
Old 10-27-2009, 12:11 PM
thompanilla thompanilla is offline
Member
 
Join Date: Oct 2009
Posts: 3
Default blank..

the 'index.htm' in the zip file is blank.

furthermore - this is a LOT of code to do a simple request (and it's producing an error anyway).

what exactly does the header need to look like?

is it the same as page 12 (example 1.4) of the DocuSign3.0API.pdf?
Reply With Quote
  #5  
Old 10-27-2009, 12:19 PM
mikeb mikeb is offline
Manager of Professional Services
 
Join Date: Aug 2008
Location: Seattle, WA
Posts: 185
Default

Hi!

Unfortunately PHP is not geared towards WS-Security standard which is much better supported by Java and .NET.

We chose to go with that standard because of the wide adoption in enterprise systems and the security it provides.

Given that you call yourself a newbie I would say that it's best that you steer clear of generating your own SOAP headers. There is a bit of stuff you need to master before calling secure SOAP web services. Alternatively you can go with a Java route and see what's done there.
__________________
--
Mike Borozdin / DocuSign Professional Services
Reply With Quote
Reply

Tags
php, security header, soap

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 08:14 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
DocuSign, Inc. 2003-2009