Forum Discussion

FacilityLIve_Op's avatar
11 years ago

Wrong QNAme in response

Hi All,
I'm writing you because I faced the following problem: I created a Rest project that has an endpoint. When I launch a call to an API, on top of the XML response I see the correct endpoint (<Response xmlns="http://endpoint/api/rest/v1/apicall">).
If I export the project and reuse it changing the endpoint, in the response I see always the old endpoint and not the new one. Is there a way to change it ?

Let me know
thanks,
Roberto.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Roberto,

    Namespaces were introduced in the XML rendering of JSON responses prior to SoapUI Pro 5.0.
    But this has been changed in version 5.0 as the JSON response itself is not associated with the concept of namespace. Therefore the namespace that you see is cached from your first call and that is what you are seeing although you call a different endpoint.
    We will soon introduce JSONPath assertions so that you don't need to go through the XML view to assert a JSON response.

    Regards,

    Giscard
    SmartBear Support