Skip to main content

When trying to download a document with the SOAP API I get:
 

javax.xml.ws.soap.SOAPFaultException: Invalid Message Signature

I do have a signature on my account

This occurs  using both requestPDF and exportAuthoritativeCopy

 

APIServiceSoap api = Utils.getAPI(request);api.requestPDF(eid);api.exportAuthoritativeCopy(eid);

 

Note: I can get the envelope:

api.requestEnvelope(eid, false);

 

 

Hi @Ringwood,

The error message "javax.xml.ws.soap.SOAPFaultException: Invalid Message Signature" indicates that there is an issue with the digital signature of the SOAP message you are sending to the Docusign API. This typically means that the message signature does not match the expected format or content, which can be due to several reasons. Here are some steps to troubleshoot and fix this issue:

  1. Check API Credentials: Ensure that you are using the correct API credentials (username, password, integrator key) and that they are properly configured in your SOAP request.
  2. Verify Signature Method: Make sure that the method you are using to sign the SOAP message is correct. Docusign requires specific signing algorithms and formats. Refer to the Docusign API documentation for details on the required signature method.
  3. Correct Timestamp: Ensure that the timestamp included in the SOAP message is accurate and formatted correctly. An incorrect timestamp can lead to signature validation errors.
  4. Check Message Integrity: Verify that the entire SOAP message is being signed correctly. Any modifications to the message after signing can invalidate the signature.
  5. Review SOAP Headers: Ensure that all required SOAP headers are included and correctly formatted. Missing or incorrect headers can cause signature validation issues.
  6. Update Libraries: If you are using third-party libraries to generate and sign the SOAP message, ensure that they are up-to-date and compatible with the Docusign API.
  7. Consult Docusign Documentation: Review the Docusign API documentation for any specific requirements or examples related to message signing. This can provide insights into common pitfalls and best practices.
  8. Check Network Security: Ensure that your network security settings (such as firewalls and proxies) are not interfering with the SOAP message transmission.

If the above doesn’t help, please open a ticket with the Docusign support and we’ll look further into it.

Best regards,

Leandro Reis - Developer Support Engineer


Reply