Forum Discussion

NRUK1's avatar
NRUK1
New Contributor
12 years ago

"Validate" request and response not working in HTTP Monitor

Hi,

On one of my projects, I'm using SoapUI Pro 5.1.2 to monitor the SOAP calls between a client and a server application by having configured the client's proxy settings to point to the SoapUI Pro HTTP Monitor running in Proxy mode.

I have added all the relevant WSDLs into the SoapUI project on which the HTTP Monitor is running and I can see in the monitor's calls' list that the Interfaces and Operations are being identified correctly. However, when I inspect the content of the Requests and Responses in the "Message Context" lower tab and I invoke the "Validate" command (through the contextual menu or "Alt+V"), I always seem to get a positive response (i.e. Validation OK) even when the message is not valid according to the Interface definition. In order to get the "true" validation result, I need to either copy the request (or response) into a request against the relevant Interface Operation and then invoke the "Validate" command. Alternatively, I can add the request to a test case through the toolbar, but either way those methods get very time comsuming compared to quickly pressing "Alt+V" against the request or response directly in the HTTP Monitor.

Is it only supposed to check for "well-formed XML" or is it supposed to validate against the interface definition? I would have assumed the latter considering it is able to tie-up each call to its relevant interfaces/operation.

Thanks
Francois

3 Replies

  • Hi,

    This has to do with the message exchange viewer and not the HTTP Monitor. The message exchange viewer validates for well-formed xml, it does not validate against the wsdl or schema files for the Interface. The request and response editors in the SOAP test step validate against the interface used to create the test step. I would say this is not a bug, but more of a feature request if you would like this for the message exchange viewer. You can use the schema compliance assertion for the test steps to check if the response is a valid response.


    Regards,
    Marcus
    SmartBear Support
  • NRUK1's avatar
    NRUK1
    New Contributor
    Hi Marcus,

    Thanks for your reply. This is what I suspected (i.e. that it only checks for Well Formed XML).

    I would like to log this as a request then please. Should I create a new post in the "SoapUI Pro Request" board or can you log it form here?

    Regards,
    Francois
  • Hi,

    I have opened an enhancement request of SOAP-3052 for this.


    Regards,
    Marcus
    SmartBear Support