docusign - webhook返回无效的XML?

时间:2017-01-10 13:24:15

标签: docusignapi

这就是我想要做的事情:

  1. 使用rest API发送要签名的文档

  2. 人签名并且webhook触发包含签名文档的XML(在本案例中为PDF)

  3. 在Connect日志中发生了什么我看到API触发了webhook,然后由requestb.in选中。在这里我看到的是XML与我真正的Web服务捕获程序不完全相同吗?

    <?xml version="1.0" encoding="utf-8"?>
    <DocuSignEnvelopeInformation 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">
      <EnvelopeStatus>
        <RecipientStatuses>
          <RecipientStatus>
            <Type>Signer</Type>
            <Email>lino@xx.xxx</Email>
            <UserName>Lino</UserName>
            <RoutingOrder>1</RoutingOrder>
            <Sent>2017-01-10T04:42:34.857</Sent>
            <DeclineReason xsi:nil="true" />
            <Status>Sent</Status>
            <RecipientIPAddress />
            <CustomFields />
            <TabStatuses>
              <TabStatus>
                <TabType>SignHere</TabType>
                <Status>Active</Status>
                <XPosition>52</XPosition>
                <YPosition>104</YPosition>
                <TabLabel>Sign Here</TabLabel>
                <TabName>SignHere</TabName>
                <TabValue />
                <DocumentID>1</DocumentID>
                <PageNumber>1</PageNumber>
              </TabStatus>
            </TabStatuses>
            <AccountStatus>Active</AccountStatus>
            <RecipientId>d6567258-6407-4bd8-a544-c12528e32XXX</RecipientId>
          </RecipientStatus>
        </RecipientStatuses>
        <TimeGenerated>2017-01-10T04:42:55.0381883</TimeGenerated>
        <EnvelopeID>e08dcbc1-a09a-459b-9b84-5b5Xb3f335XX</EnvelopeID>
        <Subject>Request a signature via email example</Subject>
        <UserName>Lino</UserName>
        <Email>lino@xx.xxx</Email>
        <Status>Sent</Status>
        <Created>2017-01-10T04:42:34.343</Created>
        <Sent>2017-01-10T04:42:34.903</Sent>
        <ACStatus>Original</ACStatus>
        <ACStatusDate>2017-01-10T04:42:34.343</ACStatusDate>
        <ACHolder>Lino</ACHolder>
        <ACHolderEmail>lino@xx.xxx</ACHolderEmail>
        <ACHolderLocation>DocuSign</ACHolderLocation>
        <SigningLocation>Online</SigningLocation>
        <SenderIPAddress>XX.XXX.XXX.XX  </SenderIPAddress>
        <EnvelopePDFHash />
        <CustomFields />
        <AutoNavigation>true</AutoNavigation>
        <EnvelopeIdStamping>true</EnvelopeIdStamping>
        <AuthoritativeCopy>false</AuthoritativeCopy>
        <DocumentStatuses>
          <DocumentStatus>
            <ID>1</ID>
            <Name>contract.pdf</Name>
            <TemplateName />
            <Sequence>1</Sequence>
          </DocumentStatus>
        </DocumentStatuses>
      </EnvelopeStatus>
      <DocumentPDFs>
        <DocumentPDF>
          <Name>contract.pdf</Name>
          <PDFBytes>.........
    

    但是没有结束标签或任何东西。这就是我得到的。

    当我尝试使用base64文件将其作为BLOB下载时,它表示pdf无效或已损坏。

0 个答案:

没有答案