|
#1
|
|||
|
|||
|
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... |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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? |
|
#5
|
|||
|
|||
|
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 |
![]() |
| Tags |
| php, security header, soap |
| Thread Tools | |
| Display Modes | |
|
|