Forum Discussion

samirc23's avatar
samirc23
Contributor
7 years ago

posting xml file using ready api

Hello,

 

i m using ready api - SoapUI NG and i m trying to post xml file by attaching file in Attachments tab but getting error message as bad request, please find attached screenshot for ref:

 

please let me know how we can post file using SoapUI NG, i m able to send same file using Postman.

 

Many Thanks,

Samir

5 Replies

  • Change the Media Type to multipart/form-data. Right now your request woll not include the attachment. You can find more info in the documentation.

    • samirc23's avatar
      samirc23
      Contributor

      yes i tried with multipart/form-data and than multipart/mixed but still getting bad request message 

      <Error>
      <Message>SourceName and FileReceived cannot be empty.</Message>
      </Error>

      • samirc23's avatar
        samirc23
        Contributor

        Hello,

         

        any update on this issue please ?

         

        thanks,