...
Table of Contents | ||||
---|---|---|---|---|
|
Section |
---|
First the endpoints are differentTwo SOAP endpoints: https://demo.esignanywhere.net/api.asmx?WSDL One REST endpoint (base URI): You can find the latest version here: https://demo.esignanywhere.net/Api The names of the api calls are different: |
Section | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Authorization
Envelope
License
Recipient
SspFile
Team
User
Version
* api calls from the following endpoint: https://demo.esignanywhere.net/api.asmx?WSDL Api calls which are only available with SOAP:
Api calls which are only available with REST:
|
Section |
---|
Significant changesApart from the different endpoints and the fundamental changes in the syntax (from XML to JSON), there are also the following significant changes if you switch from SOAP to REST. In the next section you can find a sample for the fundamental changes in the syntax: The authentication section in SOAP: |
...
Code Block | ||||
---|---|---|---|---|
| ||||
"AuthenticationMethods": [ { "Method": "Pin", "Parameter": "1234" } ] |
Section |
---|
The authenticationIn REST the authentication is transferred in the header. In SOAP there is a separate section for the authentication. |
Section |
---|
Upload a FileIn REST, files are sent as HTTP POST with multipart/form-data encoding of the JSON in the POST body. In SOAP you have to BASE64 encode the file and then you have to add the encoded file in the api call. |
Section |
---|
Workstep configurationIn SOAP the signature fields are in the section signatureTemplate in REST the signature fields are in the section Tasks. You can find a sample for REST and SOAP in the next section. This sample includes a Click2Sign a Draw2Sign and a Type2Sign. |
...
Info | |||||||
---|---|---|---|---|---|---|---|
Note (Only in SOAP): For every interactive field(signature field, text field, checkbox etc.) you have to add a workstep task. For example for the three signature fields above you would have to add three tasks within the WorkstepTasks section:
In REST the task is already given in the configuration when the signature field is added. |
Section |
---|
MetaDataYou can send the metadata within the workstep configuration in REST. For the metadata please use the XML format. You can find a sample in the next section. |
...
Code Block | ||||
---|---|---|---|---|
| ||||
"BasicOptions": { "Name": "Envelope_Test", "EmailSubject": "Test", "EmailBody": "Dear #RecipientFirstName#!\n\nPlease sign this document.", "EnableReminders": true, "FirstReminderDayAmount": 1, "RecurrentReminderDayAmount": 1, "BeforeExpirationDayAmount": 1, "MetaDataXml": "<metaData><Tagging doctype=\"INVOICE\"><InvoiceNr>123456</InvoiceNr></Tagging></metaData> } |
Section | ||||
---|---|---|---|---|
SOAP to REST proxyYou can of course continue to send all SOAP calls in the future. To do this, you would have to implement a proxy to transform the SOAP calls into REST calls. Please see the next figure for more information:
|
...