Hi Dave,

Since no-one else seems to have had a crack at your question, I will.

I believe you can achieve what you are looking for by using"SOAP handlers", which as I understand them are akin to "servlet filters" except for the SOAP/web-services rather than Java servlets. Basically my idea would be to create a SOAP handler that is invoked before the JAXM message is processed by the web service, and pass the message XML to a validating (DOM) XML parser. Obviously the parser would also need to be able to fetch the DOM that matches the message in order to perform the validation.

Hope this helps. Comments from others welcome.

David Peterson


Irving, Dave wrote:

Hi,

My service will be using the "message" style rather than the RPC style (not
by choice..., but there we go..).
One thing Im really interested in doing is having the XML body validated
before it is received by my service.
Is there any configuration option of Axis which can be used to have this
handled automatically, or do I need to manually validate the content in the
service or handler?

Many thanks,

Dave Irving

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.




Reply via email to