Copy link to clipboard
Copied
Hi,
I was trying to do a POST SOAP request call to Send Document SOAP API and run into Invalid Operation when I trigger the service at https://secure.na2.echosign.com/services/EchoSignDocumentService22
https://secure.na2.echosign.com/services/EchoSignDocumentService22
I even tried replacing file content in base 64 to actual file url from my web site but that too didn't help.
Header information:
Content-Type = text/xml
Access-Token - My Access Token
I did verify that I have agreement_send scope set to self, I also tried flipping it to 'account' but that too didn't help.
Below is my SOAP Request
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<ns1:sendDocument xmlns:ns1="http://api.echosign">
<ns1:apiKey>[[My Access Token]]</ns1:apiKey>
<ns1:senderInfo xmlns:ns2="http://dto.api.echosign" xmlns:ns3="http://dto21.api.echosign" xmlns:ns4="http://dto9.api.echosign" xmlns:ns5="http://dto20.api.echosign" xmlns:ns6="http://dto14.api.echosign" xmlns:ns7="http://dto18.api.echosign" xmlns:ns8="http://dto19.api.echosign" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns1:documentCreationInfo xmlns:ns2="http://dto.api.echosign" xmlns:ns3="http://dto21.api.echosign" xmlns:ns4="http://dto9.api.echosign" xmlns:ns5="http://dto20.api.echosign" xmlns:ns6="http://dto14.api.echosign" xmlns:ns7="http://dto18.api.echosign" xmlns:ns8="http://dto19.api.echosign">
<ns2:callbackInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:ccs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:daysUntilSigningDeadline xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:externalId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:fileInfos>
<ns2:FileInfo>
<ns2:file>[[File Content in Base 64 format, which I removed in this post as its too large]]</ns2:file>
<ns2:fileName>37446165.pdf</ns2:fileName>
<ns2:formKey xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:libraryDocumentKey xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:libraryDocumentName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:mimeType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:url xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</ns2:FileInfo>
</ns2:fileInfos>
<ns2:formFieldLayerTemplates xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:formFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:locale xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:mergeFieldInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:mergeFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:message>First document to Adobe signature.</ns2:message>
<ns2:name>Test SOAP</ns2:name>
<ns2:postSignOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:recipients>
<ns6:RecipientInfo>
<ns6:email xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true">mybusinessemail@gmail.com</ns6:email>
<ns6:fax xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns6:role>SIGNER</ns6:role>
<ns6:securityOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</ns6:RecipientInfo>
<ns6:RecipientInfo>
<ns6:email>mypersonalemail@gmail.com</ns6:email>
<ns6:fax xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns6:recipientSetMembers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns6:role>SIGNER</ns6:role>
<ns6:securityOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</ns6:RecipientInfo>
</ns2:recipients>
<ns2:reminderFrequency xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:securityOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:signatureFlow>SENDER_SIGNATURE_NOT_REQUIRED</ns2:signatureFlow>
<ns2:signatureType>ESIGN</ns2:signatureType>
<ns2:tos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:vaultingInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</ns1:documentCreationInfo>
</ns1:sendDocument>
</soap:Body>
</soap:Envelope>
Response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Invalid Operation</faultstring></soap:Fault></soap:Body></soap:Envelope>
Could someone review above SOAP request and let me know if I'm missing anything.
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now