收件人的名字和姓氏缺少空格

时间:2018-05-02 18:35:32

标签: docusignapi

在生成的DS文档中,Name字段将填充没有空格的名字和姓氏(BrackObama)我们想要fn和ln之间的空格(Barack Obama)。如何添加空间?我不确定

我正在通过DS SF API生成信封和文档。当我尝试在它们之间添加空格时,我不能和我得到以下异常。 exec

System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: The recipient you have identified is not a valid recipient of the specified envelope.  faultcode=soap:Client faultactor=https://demo.docusign.net/api/3.0/dsapi.asmx

1 个答案:

答案 0 :(得分:0)

当您尝试为嵌入式签名者生成import org.apache.spark.sql.Row import org.apache.spark.sql.catalyst.encoders.RowEncoder import org.apache.spark.sql.DataFrame //df is the dataframe with Day, Category, TotalValue implicit val dfEnc = RowEncoder(df.schema) val res: DataFrame = df.groupByKey{(r) => r.getInt(0)}.mapGroups[Row]{(day: Int, rows: Iterator[Row]) => i.maxBy{(r) => r.getDouble(2)}} 时,通常会出现上述错误,并且您在RequestRecipientToken API调用中传递的收件人详细信息与信封中的信息不同。

下面是SOAP API调用,用于创建带有FullName选项卡的信封,并且收件人名称中包含空格,并且文档中的内容正常。尝试使用SOAPUI测试流程。

创建信封电话:

RequestRecipientToken

RequestRecipientToken:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.docusign.net/API/3.0">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:CreateAndSendEnvelope>
         <ns:Envelope>
           <ns:AccountId>e6043e37-08a9-4892-9e12-75b4d8bfef2a</ns:AccountId>
            <ns:Documents>
               <ns:Document>
                <ns:ID>32093411</ns:ID>
                <ns:Name>Document Name</ns:Name>
                <ns:PDFBytes>PDFBytes</ns:PDFBytes>
                <ns:FileExtension>pdf</ns:FileExtension>
            </ns:Document>
            </ns:Documents>
            <ns:Recipients>
               <ns:Recipient>
                  <ns:ID>45399085</ns:ID>
                  <ns:UserName>FirstName LastName</ns:UserName>
                  <ns:Email>email@gmail.com</ns:Email>
                  <ns:Type>Signer</ns:Type>
                  <ns:RoutingOrder>1</ns:RoutingOrder>
                  <ns:CaptiveInfo>
                     <ns:ClientUserId>1234</ns:ClientUserId>
                  </ns:CaptiveInfo>
               </ns:Recipient>
            </ns:Recipients>
            <ns:Tabs>
            <ns:Tab>
                <ns:DocumentID>32093411</ns:DocumentID>
                <ns:RecipientID>45399085</ns:RecipientID>
                <ns:PageNumber>1</ns:PageNumber>
                <ns:XPosition>71</ns:XPosition>
                <ns:YPosition>500</ns:YPosition>
                <ns:ScaleValue>1</ns:ScaleValue>
                <ns:Type>FullName</ns:Type>
                <ns:Name>FullName</ns:Name>
                <ns:TabLabel>Name d39c7430-7321-4c97-a1b9-5d980fda7883</ns:TabLabel>
                <ns:CustomTabRequired>false</ns:CustomTabRequired>
                <ns:CustomTabLocked>false</ns:CustomTabLocked>
                <ns:TemplateLocked>false</ns:TemplateLocked>
                <ns:TemplateRequired>false</ns:TemplateRequired>
                <ns:Font>LucidaConsole</ns:Font>
                <ns:FontColor>Black</ns:FontColor>
                <ns:FontSize>Size9</ns:FontSize>
            </ns:Tab>
        </ns:Tabs>
            <ns:Subject>Email Subject</ns:Subject>
            <ns:EmailBlurb>Email Blurb</ns:EmailBlurb>
         </ns:Envelope>
      </ns:CreateAndSendEnvelope>
   </soapenv:Body>
</soapenv:Envelope>