CA Service Management

Expand all | Collapse all

REST XML payloads with base64 method to upload the attachments through SOAP UI

  • 1.  REST XML payloads with base64 method to upload the attachments through SOAP UI

    Posted Jan 08, 2019 02:05 AM

    Hi,

     

    I have followed the SampleAttachFileToResource.java class to upload the attachment and link to the incident and it is working fine.

    However I need the XML payloads with base64 method to upload the attachments through SOAP UI and don't want to use any application code. Please let me know how can we achieve this?

     

    thanks,

    Shailendra S.



  • 2.  Re: REST XML payloads with base64 method to upload the attachments through SOAP UI

    Posted Jan 14, 2019 05:14 AM

    Hi Shailendra.

    I went through the SampleAttachFileToResource.java example.

    And I recognized that at least in my version there is no need to do a base64 conversion to attach a file.

    In my version, the  TRANSFER_ENCODING is set to "binary", even though I see the code to do a base64 conversion as well, but it isn't used.

    So, from this point of view, soap-ui should be able to send the file just as a normal multipart http request, using the normal attachment functionality of soap-ui.

    But to be honest, I haven't tried that yet.

    Regards

    ...........Michael