Integrations and APIs for Service

Get Involved. Join the Conversation.


    Guru Jay
    Retrieve File Attachment using Jscript
    Topic posted July 25, 2019 by Guru JayGreen Ribbon: 100+ Points, tagged SOAP 
    31 Views, 3 Comments
    Retrieve File Attachment using Jscript
    GetFileData call using Jscript

    Hello everyone -

    I am trying to retrieve the file data from Jscript. I am using XMLHttpRequest to post the request XML of GetFileData and get back the binary data of the file attachment. I have provided the code snippet below.

    I can get the binary data response from the XMLHttpRequest though my call to SOAP end point and submission of xml in the send method goes through fine. I am wondering what I am doing wrong?  Essentially, objXMLHttpRequest.responseText does not bring me the file data that I would expect in this call.




    Code Snippet: