Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

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

    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.

    Thanks,

    Guru

     

    Code Snippet:

    Comment