我在正确理解 DocuSign API 时遇到了一些麻烦。
我的第一个任务是简单地发送和创建一个信封。我使用 UIView 和 Core Graphics 创建了一个 PDF(在 iOS 中)。然后我继续在我需要签名的部分放置锚标签。
由于创建了 Anchor 选项卡,我不确定是否应该将选项卡作为输出的一部分发送。
这是我的输出主体
<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>
这是我的回应
<?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
************
我非常彻底地查看了该服务的文档,但我真的不确定自动锚选项卡是否适合 API,如果它们适合的话。
即使我试图通过将我想要使用的所有字段作为 /s1/ /s2/ 等来使用自动锚选项卡,我仍然添加选项卡吗?我看不出还有什么是关于为什么调用的问题失败的。
编辑:我现在看到无论自动锚定如何,我都需要添加标签。如何为签名、日期和标题添加选项卡自动锚点?