cancel
Showing results for 
Search instead for 
Did you mean: 

SOAPUI REST Media Type Application/xml format

New Member

SOAPUI REST Media Type Application/xml format

Hi Everyone,

i'm new to SOAPUI S/W . i was created asp.net webservice for REST and i executed successfully via media type

application/json.

application/json Format

{

"Name" : "test"

}

Working Fine.

i want to know format for application/xml ? i tried

<Name>test</Name>

or

<Student>

<Name>test</Name>

</Student>

 

Not Working.please anyone tell me the format for application/xml .

 

2 REPLIES 2
Community Hero

Re: SOAPUI REST Media Type Application/xml format

What does it mean "not working"? What is happening? What error do you get?



If my answer helped please click on the 'Accept as Solution' button.
Contributor

Re: SOAPUI REST Media Type Application/xml format

If response is shown in Json format, then you can not get this response in XML format. 

 

If you want this response in XML format, then you need to use groovy script to get XML format reponse.

 

Script:--

 

testRunner.testCase.getTestStepAt(0).testRequest.getResponseContentAsXml()

New Here?
Join us and watch the welcome video:
Watch the new interview
Top Kudoed Authors