cancel
Showing results for 
Search instead for 
Did you mean: 

Im getting < and > in response instead of xml structure

SOLVED
Vaibhav_1
New Member

Im getting < and > in response instead of xml structure

Hello to all,

 

I'm trying to hit for a soap request on a wsdl service but the response format I'm getting is in < and >, due to which all of other test steps are getting failed. The response from the service is generally in xml structure. I must have done something wrong in my own ReadyAPI settings.. maybe in preferences . Can anyone please guide me , where I'm getting wrong?

sample of the response I'm getting : 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body><SearchResponse xmlns="UniversalAirAPI"><SearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Error i:nil="true"/><IsSearchComplete>true</IsSearchComplete>
<Results xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a:string>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;ArrayOfSearchResult&gt;&lt;SearchResult&gt;&lt;ResultId&gt;&lt;

 

Regards,

Vaibhav

1 ACCEPTED SOLUTION

Accepted Solutions
nmrao
Community Hero

Re: Im getting &lt; and &gt; in response instead of xml structure

This absolutely ok.
Why is this happening? Because an xml is inside the xml.
Do you face any issue in assertions or so?


Regards,
Rao.

View solution in original post

3 REPLIES 3
richie
Community Hero

Re: Im getting &lt; and &gt; in response instead of xml structure

Hey @Vaibhav_1,

Can you supply the RAW details (headers and payload) of the response please? Id also like to see the headers on the request too.

Can you confirm what the "pretty print" switch in your WSDL preferences is set as?

Also something to think about: several years ago i was getting escaped xml in my soap response. I altered the switch and it revealed it was actually a CDATA wrapper, but it was escaping due to the switch being set incorrectly.

So alter the pretty print switch, submit your request to check response and see what happens.

If you can supply the RAW response details (payload and headers) and the headers for the request and try thr pretty print switch we should be able to work out whsts happening.

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
sonya_m
Community Manager

Re: Im getting &lt; and &gt; in response instead of xml structure

Thanks for the advice Rich!

 

@Vaibhav_1 does this help?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
nmrao
Community Hero

Re: Im getting &lt; and &gt; in response instead of xml structure

This absolutely ok.
Why is this happening? Because an xml is inside the xml.
Do you face any issue in assertions or so?


Regards,
Rao.

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors