Forum Discussion

Sascha's avatar
Sascha
Occasional Contributor
16 years ago

Compare full SoapResponse

Hello everybody,

I start to like SoapUI day by day more. But I have a question left:


I need to test one webservice where I sent a predefined soap message to. I want to compare the response with a saved soap message. So I want to compare the whole XML response.

Is there a way to do this? I should retrieve everytime the same answer and do not want to comapre by attribute.

Using: SoapUI 2.5.1 non-pro

Thank you

4 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    sure, create an XPath assertion that selects the root Envelope element and has the entire message as expected content.

    regards!

    /Ole
    eviware.com
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    manually add an XPath Match assertion and the required XPath statement in the configuration dialog.

    regards!

    /Ole
    eviware.com