Forum Discussion

sandstone's avatar
sandstone
New Contributor
11 years ago

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

      • nmrao's avatar
        nmrao
        Champion Level 3
        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.