Forum Discussion

Vaibhav_1's avatar
Vaibhav_1
New Member
4 years ago

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

  • This absolutely ok.
    Why is this happening? Because an xml is inside the xml.
    Do you face any issue in assertions or so?
  • richie's avatar
    richie
    Community Hero
    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
  • nmrao's avatar
    nmrao
    Champion Level 3
    This absolutely ok.
    Why is this happening? Because an xml is inside the xml.
    Do you face any issue in assertions or so?