我有一个通过REST API从模板创建的docusign信封。我后来又通过REST API添加了抄送或认证的递送收件人。我现在想要更改新收件人以进行传真传送。
从我的测试(和确认here)开始,传真似乎无法通过REST获得,所以我通过SOAP试一试,它似乎完全记录在CorrectAndResendEnvelope方法下。可悲的是,我的经验是方法调用成功但没有迹象表明它确实有效。
以下是我在SOAP调用中发送的内容:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.docusign.net/API/3.0" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<tns:CorrectAndResendEnvelope>
<tns:Correction>
<tns:EnvelopeID>6bf7d156-a2fd-4031-aaa5-59fd0f0b6dad</tns:EnvelopeID>
<tns:RecipientCorrections>
<tns:RecipientCorrection>
<tns:PreviousUserName>Joe3 Dealer</tns:PreviousUserName>
<tns:PreviousEmail>joe3@dealer.com</tns:PreviousEmail>
<tns:PreviousRoutingOrder>3</tns:PreviousRoutingOrder>
<tns:CorrectedDeliveryMethod>Fax</tns:CorrectedDeliveryMethod>
<tns:CorrectedFaxNumber>444-222-3333</tns:CorrectedFaxNumber>
</tns:RecipientCorrection>
</tns:RecipientCorrections>
</tns:Correction>
</tns:CorrectAndResendEnvelope>
</env:Body>
</env: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://www.docusign.net/API/3.0/CorrectAndResendEnvelopeResponse</wsa:Action>
<wsa:MessageID>urn:uuid:86765023-12b3-4485-8c6b-9f3082bffa9a</wsa:MessageID>
<wsa:RelatesTo>urn:uuid:5b34a777-e33e-420b-8b54-3fcc9abc2742</wsa:RelatesTo>
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
<wsse:Security>
<wsu:Timestamp wsu:Id="Timestamp-14f4572c-9333-43be-b3f5-188d0197a12c">
<wsu:Created>2015-07-15T20:06:41Z</wsu:Created>
<wsu:Expires>2015-07-15T20:11:41Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<CorrectAndResendEnvelopeResponse xmlns="http://www.docusign.net/API/3.0">
<CorrectAndResendEnvelopeResult>
<RecipientCorrectionStatuses>
<RecipientCorrectionStatus>
<CorrectionSucceeded>true</CorrectionSucceeded>
<RecipientCorrection>
<PreviousUserName>Joe3 Dealer</PreviousUserName>
<PreviousEmail>joe3@dealer.com</PreviousEmail>
<PreviousRoutingOrder>3</PreviousRoutingOrder>
</RecipientCorrection>
<RecipientStatus>
<Type>CertifiedDelivery</Type>
<Email>joe3@dealer.com</Email>
<UserName>Joe3 Dealer</UserName>
<RoutingOrder>3</RoutingOrder>
<DeclineReason xsi:nil="true"/>
<Status>Created</Status>
<RecipientIPAddress/>
</RecipientStatus>
</RecipientCorrectionStatus>
</RecipientCorrectionStatuses>
</CorrectAndResendEnvelopeResult>
</CorrectAndResendEnvelopeResponse>
</soap:Body>
</soap:Envelope>
请注意,RecipientCorrection和RecipientStatus都没有提及传递方法或传真号码。在其他测试中,如果我尝试更改路由顺序等其他属性,则该更改将显示在该部分中。此外,在RoutingOrder = 3的信封上只有一个收件人,如果我尝试CC收件人,我会看到同样的事情。我在管理控制台中检查了“传真传送”功能。
我错过了什么?谢谢你的帮助。