> I can write a schema validation class and chain it to the global
> request response flow but I'd rather not. I think this is a common
> requirement and I don't like to write code where I think a standard
> configurable component might work better.
Since you have asked Axis to allow any XML in the world as a parameter
to your one operation, I believe Axis won't validate it. I don't
understand why you've done that, but unless you are willing to revisit
that design decision, you will just have to validate against the
appropriate schema on your own. It's not hard to do, really.
If you are willing to revisit that design decision, then you may
consider specifying the various operations separately, and making use of
other mechanisms for capturing common aspects of all your web service
calls... for example, you could use good old OO design techniques, or
additional handlers in Axis's chains.

Signature
Chris Smith - Lead Software Developer / Technical Trainer
MindIQ Corporation
Nick - 03 Jul 2006 09:09 GMT
> > I can write a schema validation class and chain it to the global
> > request response flow but I'd rather not. I think this is a common
[quoted text clipped - 16 lines]
> Chris Smith - Lead Software Developer / Technical Trainer
> MindIQ Corporation
Thanks for that Chris, I think I will have to validate the approriate
schema as you said.
The reason behind the single input parameter is that I am leveraging
existing middleware translation code behind my broker component. The
existing code works on plain old XML and is configurable via xml/xslt.
I can configure new services without any code compilation. Its not very
OO but it makes my development really straight forward. If possible I
wanted to retain the ability to add new services without having to
write any java code.
A handler in an Axis chain which reads and validates against service
specific schema may be my best option.
thanks again,
Nick