Get Involved. Join the Conversation.


    Mahesh Kumar
    Change Default encoding format to download zip file from UCM
    Topic posted November 15, 2019 by Mahesh KumarGreen Ribbon: 100+ Points, last edited November 15, 2019, tagged Cloud, E-Business Suite, ERP Cloud, Integration, REST, SOAP, Web Services 
    25 Views, 8 Comments
    Change Default encoding format to download zip file from UCM
    SOAP Response from Web Service should always receive Base64 encoding instead of Binary encoding

    Is there any setup in the Cloud instance that can be changed to get a default response from Web Service in the Base64 format for the attachments?

    I am trying to download a zip file using SOAP Web Service on the EBS system. I get the response from web service but in binary format. Can the default web service be changed to the Base64 format in the cloud using some setup change?

    To upload a file in ucm we have to convert the file into base64 encoding and send the SOAP request to the cloud and the file gets uploaded. So similarly can we make default setup change to get files from ucm directory in base64 format only?






    • Hemanth Lakkaraju

      What is the API you are using in EBS system to get the zip file? Is it the UCM service? For UCM service, if you specify MTOM, it sends binary. if you don't specify MTOM it sends Base64.

      • Mahesh Kumar

        Hi Hemanth,

        Thank you for your response.

        I am using SOAP Integration services for this development fscmService/ErpIntegrationService?WSDL and calling the SOAP action

        This action will bring an HTTP multipart response.

        I am using Java to achieve this.

        I will try to upload both, SOAP response and Java class for your reference after this reply.


        • Hemanth Lakkaraju

          Use this JAVA API to convert InputStream to SOAPMessage and from SOAPMessage you can separate payload and attachments by using SOAPMessage.getAttachments().

          • Mahesh Kumar

            Thank you Hemanth.

            How to separate the XML and Attachment from incoming http response?

            • Hemanth Lakkaraju

              Use SOAPMessage to get Body and Attachments

              • Mahesh Kumar

                The response message screenshot which i posted earlier is correct? Is this is how the SOAP response message with attachments will be? Can you please confirm.

                Also if you developed this code earlier, can you please post it?

                Thank you.

                • Hemanth Lakkaraju

                  Check this.

                  • Mahesh Kumar

                    Thank you.

                    I tried this and looks very appropriate code do this task.

                    I changed the code to call the getDocumentForDocumentId. This is the error i am getting. I tried finding solution to this issue on google. can you please let me know to fix this.

                    Nov 19, 2019 2:17:33 PM com.sun.xml.internal.messaging.saaj.soap.MessageImpl saveChanges
                    SEVERE: SAAJ0540: Error during saving a multipart message