I'm having some trouble getting the DocuSign API understood properly.
My first task is to simply send and create an envelope. I created a PDF (in iOS) using a UIView and Core Graphics. I then went ahead and put Anchor tabs in the sections where I need signatures.
Due to creating Anchor tabs, I am not sure if I should send my tabs as a part of the output.
Here is my output body
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:DSAPIService="http://www.docusign.net/API/3.0" xsl:version="1.0">
<soap:Body>
<DSAPIService:CreateAndSendEnvelope>
<DSAPIService:Envelope>
<DSAPIService:AccountId>(Account Id)</DSAPIService:AccountId>
<DSAPIService:Documents>
<DSAPIService:Document>
<DSAPIService:ID>1</DSAPIService:ID>
<DSAPIService:Name>(Name)</DSAPIService:Name>
<DSAPIService:PDFBytes>(PDF data)</DSAPIService:PDFBytes>
</DSAPIService:Document>
</DSAPIService:Documents>
<DSAPIService:Recipients>
<DSAPIService:Recipient>
<DSAPIService:ID>1</DSAPIService:ID>
<DSAPIService:UserName>(Signer 1)</DSAPIService:UserName>
<DSAPIService:Email>(Signer 1 email)</DSAPIService:Email>
<DSAPIService:Type>Signer</DSAPIService:Type>
<DSAPIService:RoutingOrder>0</DSAPIService:RoutingOrder>
</DSAPIService:Recipient>
<DSAPIService:Recipient>
<DSAPIService:ID>2</DSAPIService:ID>
<DSAPIService:UserName>(Signer 2)</DSAPIService:UserName>
<DSAPIService:Email>(Signer 2 Email)/DSAPIService:Email>
<DSAPIService:Type>Signer</DSAPIService:Type>
<DSAPIService:RoutingOrder>1</DSAPIService:RoutingOrder>
</DSAPIService:Recipient>
<DSAPIService:Recipient>
<DSAPIService:ID>3</DSAPIService:ID>
<DSAPIService:UserName>(Signer 3)</DSAPIService:UserName>
<DSAPIService:Email>(Signer 3 email)</DSAPIService:Email>
<DSAPIService:Type>InPersonSigner</DSAPIService:Type>
<DSAPIService:CaptiveInfo/>
<DSAPIService:RoutingOrder>2</DSAPIService:RoutingOrder>
</DSAPIService:Recipient>
<DSAPIService:Recipient>
<DSAPIService:ID>4</DSAPIService:ID>
<DSAPIService:UserName>(Signer 4)</DSAPIService:UserName>
<DSAPIService:Email>(Signer 4 email)</DSAPIService:Email>
<DSAPIService:Type>Signer</DSAPIService:Type>
<DSAPIService:RoutingOrder>3</DSAPIService:RoutingOrder>
</DSAPIService:Recipient>
</DSAPIService:Recipients>
<DSAPIService:Tabs/>
<DSAPIService:Subject>(Subject)</DSAPIService:Subject>
<DSAPIService:EmailBlurb>Please sign the attached document.</DSAPIService:EmailBlurb>
<DSAPIService:EnableWetSign>true</DSAPIService:EnableWetSign>
</DSAPIService:Envelope>
</DSAPIService:CreateAndSendEnvelope>
</soap:Body>
</soap:Envelope>
Here is my response
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soap:Header><wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action><wsa:MessageID>urn:uuid:9a22096c-ca51-4445-80fd-78c08f9b0f24</wsa:MessageID><wsa:RelatesTo>urn:uuid:7f921133-4834-402b-aaa7-769b7fa0042b</wsa:RelatesTo><wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To><wsse:Security><wsu:Timestamp wsu:Id="Timestamp-9b102c34-6215-4fd6-8f9c-f1cb6a30c080"><wsu:Created>2013-09-26T22:59:09Z</wsu:Created><wsu:Expires>2013-09-26T23:04:09Z</wsu:Expires></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Unspecified_Error</faultstring><faultactor>https://www.docusign.net/api/3.0/DSAPI.asmx</faultactor><detail><ErrorCode xmlns="missing in Web.Config">1</ErrorCode><ErrorReason xmlns="missing in Web.Config">An Error Occurred.</ErrorReason></detail></soap:Fault></soap:Body></soap:Envelope>
namespace error : xmlns: 'missing in Web.Config' is not a valid URI
/api/3.0/DSAPI.asmx</faultactor><detail><ErrorCode xmlns="missing in Web.Config"
^
namespace error : xmlns: 'missing in Web.Config' is not a valid URI
="missing in Web.Config">1</ErrorCode><ErrorReason xmlns="missing in Web.Config"
^
2013-09-26 15:59:09.107 (iOS App Name)[89329:4003] DSAPIService_CreateAndSendEnvelope soap call failed:
************
Unspecified_Error
************
I looked through the Documentation for the service quite thoroughly but I am really unsure how automatic anchor tabs fit in, if they fit in, to the API.
Do I still add tabs even though I am attempting to use the automatic Anchor tabs by putting all my fields that I want to use as /s1/ /s2/, etc. I can't see anything else being the issue on why the call failed.
Edit: I now see I need to add tabs regardless of automatic anchoring. How would I add the tabs automatic anchors for signatures, dates, and title?