3 Replies Latest reply on Sep 12, 2014 2:31 AM by SimonATS

    Problem using sendDocument

    Simon D Kemp

      Hi,

       

      Can anyone tell me why the xml below fails ("Not enough message parts were received for the operation."). I believe all required parameters are present.

       

      Totally stuck on this and would appreciate any pointers.

       

      Thanks,

      Simon

       

       

      <?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">

      <soap:Body>

        <sendDocument>

         <apiKey>*MYAPIKEY*</apiKey>

         <documentCreationInfo>

          <recipients>

           <RecipientInfo>

            <email>xyz@gmail.com</email>

            <role>SIGNER</role>

           </RecipientInfo>

          </recipients>

          <name>test document</name>

          <message>some text to go in the email...</message>

          <fileInfos>

           <FileInfo>

            <fileName>Test Document.pdf</fileName>

            <file>*BASE64ENCODEDFILEHERE*</file>

           </FileInfo>

          </fileInfos>

          <signatureType>ESIGN</signatureType>

          <signatureFlow>SENDER_SIGNATURE_NOT_REQUIRED</signatureFlow>

         </documentCreationInfo>

        </sendDocument>

      </soap:Body>

      </soap:Envelope>

        • 1. Re: Problem using sendDocument
          SimonATS Adobe Employee

          Hi Simon,

           

          By the face of it it looks like you are not declaring any name spaces, though i do believe you have the minimum elelemtns required,

           

          use a tool such as soapui to quickly test your requests and to also see an example of a valid request.

           

          For example if using v19 if the api::

          <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://api.echosign" xmlns:dto="http://dto.api.echosign" xmlns:dto9="http://dto9.api.echosign" xmlns:dto1="http://dto14.api.echosign">
            <soapenv:Header/>
            <soapenv:Body>
                <api:sendDocument>
                  <api:apiKey>[apikey]</api:apiKey>
                  <api:senderInfo xsi:nil="true"/>
                  <api:documentCreationInfo>
                      <!--Optional:-->
                      <dto:callbackInfo xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:ccs xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:daysUntilSigningDeadline xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:externalId xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:fileInfos>
                        <!--Zero or more repetitions:-->
                        <dto:FileInfo>
                            <!--Optional:-->
                            <dto:file>[base64 goes here]</dto:file>
                            <dto:fileName>test.docx</dto:fileName>
                            <!--Optional:-->

                                 </dto:FileInfo>

                      </dto:fileInfos>
                      <!--Optional:-->
                      <dto:formFieldLayerTemplates xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:locale xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:mergeFieldInfo xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:mergeFile xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:message>test message</dto:message>
                      <!--Optional:-->
                      <dto:name>agreement name</dto:name>
                      <!--Optional:-->
                      <dto:recipients>
                        <!--Zero or more repetitions:-->
                        <dto1:RecipientInfo>
                            <!--Optional:-->
                            <dto1:email>someemail@domain.com</dto1:email>
                            <!--Optional:-->
                            <dto1:fax xsi:nil="true"/>
                            <!--Optional:-->
                            <dto1:role>SIGNER</dto1:role>
                        </dto1:RecipientInfo>
                      </dto:recipients>
                      <!--Optional:-->
                      <dto:reminderFrequency xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:securityOptions xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:signatureFlow xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:signatureType xsi:nil="true"/>
                      <!--Optional:-->
                      <dto:tos xsi:nil="true"/>
                      <dto:vaultingInfo xsi:nil="true"/>
                  </api:documentCreationInfo>
                </api:sendDocument>
            </soapenv:Body>
          </soapenv:Envelope>
          • 2. Re: Problem using sendDocument
            Simon D Kemp Level 1

            Hi,

             

            Should have come back earlier to report things were working OK...

             

            You're absolutely right - adding namespaces got things going.

            • 3. Re: Problem using sendDocument
              SimonATS Adobe Employee

              Cheers for the update Simon. I did see this thread earlier, but life got in the way. Glad you got it working ok.