无法在DocuSign上使用UploadTemplate API

时间:2014-10-24 11:26:16

标签: docusignapi

我尝试使用来自以下的UploadTemplate_1 WSDL服务:

https://demo.docusign.net/api/3.0/dsapi.asmx?WSDL

我的要求是:(缩短)



<?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:s="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.docusign.net/API/3.0">
  <soap:Body>
    <tns:UploadTemplate>
      <tns:TemplateXML>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;EnvelopeTemplate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.net/API/3.0"&gt;&lt;EnvelopeTemplateDefinition&gt;&lt;TemplateID&gt;dfe8921b-275c-4f51-ace9-46d4c939e81a&lt;/TemplateID&gt;&lt;Name&gt;Test1&lt;/Name&gt;&lt;Shared&gt;true&lt;/Shared&gt;&lt;TemplatePassword /&gt;&lt;TemplateDescription /&gt;&lt;LastModified&gt;2014-10-24T10:09:39.087Z&lt;/LastModified&gt;&lt;PageCount&gt;1&lt;/PageCount&gt;&lt;/EnvelopeTemplateDefinition&gt;&lt;Envelope&gt;&lt;AccountId&gt;f2bc351b-6a2a-41dd-810b-fe23cf22f619&lt;/AccountId&gt;&lt;Documents&gt;&lt;Document&gt;&lt;ID&gt;1&lt;/ID&gt;&lt;Name&gt;Test.pdf&lt;/Name&gt;&lt;PDFBytes&gt;JVBERi0xLjcKjp2......g0KNjU5OTANCiUlRU9G================================================================&lt;/PDFBytes&gt;&lt;/Document&gt;&lt;/Documents&gt;&lt;Subject&gt;Please DocuSign this document: Test.pdf&lt;/Subject&gt;&lt;EmailBlurb /&gt;&lt;SigningLocation&gt;Online&lt;/SigningLocation&gt;&lt;AutoNavigation&gt;true&lt;/AutoNavigation&gt;&lt;EnvelopeIdStamping&gt;true&lt;/EnvelopeIdStamping&gt;&lt;AuthoritativeCopy&gt;false&lt;/AuthoritativeCopy&gt;&lt;Notification&gt;&lt;Reminders&gt;&lt;ReminderEnabled&gt;false&lt;/ReminderEnabled&gt;&lt;ReminderDelay&gt;0&lt;/ReminderDelay&gt;&lt;ReminderFrequency&gt;0&lt;/ReminderFrequency&gt;&lt;/Reminders&gt;&lt;Expirations&gt;&lt;ExpireEnabled&gt;true&lt;/ExpireEnabled&gt;&lt;ExpireAfter&gt;120&lt;/ExpireAfter&gt;&lt;ExpireWarn&gt;0&lt;/ExpireWarn&gt;&lt;/Expirations&gt;&lt;/Notification&gt;&lt;EnforceSignerVisibility&gt;false&lt;/EnforceSignerVisibility&gt;&lt;EnableWetSign&gt;true&lt;/EnableWetSign&gt;&lt;AllowMarkup&gt;false&lt;/AllowMarkup&gt;&lt;AllowReassign&gt;true&lt;/AllowReassign&gt;&lt;/Envelope&gt;&lt;/EnvelopeTemplate&gt;</tns:TemplateXML>
      <tns:AccountID>794014</tns:AccountID>
      <tns:Shared>true</tns:Shared>
    </tns:UploadTemplate>
  </soap:Body>
</soap:Envelope>
&#13;
&#13;
&#13;

来自网络服务器的回复是:

&#13;
&#13;
<?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:f6ff1306-b0c6-4c94-9156-feeb063a871f</wsa:MessageID>
    <wsa:RelatesTo>urn:uuid:849c5eed-6548-427b-8689-3ab851070421</wsa:RelatesTo>
    <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
    <wsse:Security>
      <wsu:Timestamp wsu:Id="Timestamp-2853b643-777c-4bb9-8f73-078f0c4f9801">
        <wsu:Created>2014-10-24T11:21:07Z</wsu:Created>
        <wsu:Expires>2014-10-24T11:26:07Z</wsu:Expires>
      </wsu:Timestamp>
    </wsse:Security>
  </soap:Header>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>Unspecified_Error</faultstring>
      <faultactor>https://demo.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>
&#13;
&#13;
&#13;

知道可能是什么原因?

0 个答案:

没有答案