Forum Discussion

GeertsP's avatar
GeertsP
Occasional Contributor
16 years ago

mockrequest schema checking

Hi,
possibly asked before but I am currently trying to have schema validation done on requests
coming in on my mockservice. 
In my current setup addition of non compliant tags to my input message doesn't seem to bother
the mock service invoked. What I would like to achieve is that the mock service complains about invalid dat in much the same way that the "real" service implementation will do in the next phase.

Is there a way to have this verified ?

Thanks in advance


  Peter Geerts

3 Replies

  • GeertsP's avatar
    GeertsP
    Occasional Contributor
    Hi Ole,

      thanks for the pointer. Followed all the instructions and got it to work.
    However I think it doesn't full bring what I am looking for.

    My impression is that it only checks for well-formed requests and not against schema definitions. So if I change e.g an opening tag and not the corresponding closing tag I get a validation error but if I change both tags the situation isn't captured.  Could this have something to do with saxon ?  licensing where some versions are schema-aware whilst others aren't ?
    If so can you indicate what needs to be done in the xmlbeans installation.

    Another thing I noticed is that pressing alt-v on the request message does seem to check against the schema. What I basically would like to achieve is having these kind of checks in my mock service once this request comes in.

    Thanks in advance

    Peter Geerts 
  • JH75's avatar
    JH75
    New Contributor
    I have the same question. Could you provide me with the details of the solution? (Unfortunately the above posted link does not work anymore...).