Forum Discussion

UNIZETO_TECHNOL_2's avatar
UNIZETO_TECHNOL_2
Occasional Contributor
15 years ago

Validate Request sent to MockService

Hi !

I would like to validate a request sent to my WsdlMockService, and if it does not validate, i would like to send a fault Response. How can i achieve that ?

I am thinking about invoking validation in the onRequestScript, please provide me with information on how to do that. I know about the WSDLValidator class, but i cannot think of a way to use it properly.

2 Replies

  • Hi!

    hmm... what kind of validation did you have in mind? Schema compliance?

    regards!

    /Ole
    eviware.com
  • UNIZETO_TECHNOL_2's avatar
    UNIZETO_TECHNOL_2
    Occasional Contributor
    Yes.

    I want to test schema compliance, in return i would like to get schema errors, just like the outcome of the GUI "Validate" option. But i want to do it from script.