Soap wsdl and api.

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
tmbtech
Forum Newbie
Posts: 1
Joined: Wed Apr 30, 2008 5:24 pm

Soap wsdl and api.

Post by tmbtech »

hello,

I've been doing a lot of research on how to work with soap request.
every time i try doing the sendDocument i get an null execption error or some other error.
here is the wsdl link
http://www.echosign.com/services/EchoSi ... rvice?wsdl

err code "Uncaught SoapFault exception: [soap:Server] One or more errors has occurred. To is required."

my code

Code: Select all

<?php
$client = new SoapClient("http://www.echosign.com/services/EchoSignDocumentService?wsdl");
 
 
$sendDocumentParams = array(
    'apiKey' => '7xxxxx',
    'documentKey' => 'Hxxxx',
    'documentCreationInfo' => array(
            'tos' => 'robbie@socalpasa.com',
            'name' => 'soap- test robbie',
            'signatureType' => 'ESIGN',
            'signatureFlow' => 'SENDER_SIGNATURE_NOT_REQUIRED',
            'fileInfos' => array(
                'fileName' => 'test.pdf',
                'url' => 'http://tmbtech.net/test.pdf'
                )
            )
);
 
$result = $client->sendDocument($sendDocumentParams); 
print_r($result)
 
?>

thanks.
Post Reply