cancel
Showing results for 
Search instead for 
Did you mean: 

How to send xml contents in the soapui REST request

sandstone
New Contributor

How to send xml contents in the soapui REST request

Could you anyone help to advice on how to send a XML in the REST request.

The objective is to send a XML to the endpoint server.
I gave the entire XML in the request editor and set the media-type to "Multipart/form-data".Seems like the XML is not been sent to the endpoint and the server throws NullpointerException.
I also tried to add the xml as a file attachment in the request, but still received null pointer exception.
I'm using SoapUI 4.5.2 Open source version.
3 REPLIES 3
sandstone
New Contributor

Re: How to send xml contents in the soapui REST request

Referred to this thread >> viewtopic.php?f=5&t=4563&p=44153&hilit=attachment#p44153

it works like charm after giving a boundary value in Header.
Thanks to this forum and its wonderful members!!
below is the screenshot of the working version
duane5000
New Contributor

Re: How to send xml contents in the soapui REST request

links are broken.

nmrao
Community Hero

Re: How to send xml contents in the soapui REST request

Make sure you use Content-Type /Media Type as application/xml.

If you still have further question, suggest you to create a new topic with the details of the exact issue.


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors