N
Nick
Hi All,
I'm creating a number of Webservices which are all being handled by a
single Java omponent - WebserviceBroker
I've used axis to expose the WebserviceBroker.ProcessMessage method
that takes a single string parameter containing an XML fragment.
This works fine and my services work fine. The problem I have is with
making them available for a service consumer. I need to Provide a WSDL
which accurately defines what messages are acceptable as input.
I can see the axis generated WSDL for my services but it specifies
input and output of type="xsd:anyType" which isn't much use to my
consumers.
I have hand coded a WSDL which contains a much more precise definition
of the xml messages/structures and elements. I have even been able to
make Axis display my WSDL in the Services/<name>?wsld by adding in a
reference to my document in the server-config.wsdd.
What I can't do is get Axis to validate the input against the
schema!!!!! If I give my handcoded WSDL to my customers I am relying on
them to send valid messages in but its not enforced and that opens me
up to any input message.
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.
Anyone got any advice?
I'm creating a number of Webservices which are all being handled by a
single Java omponent - WebserviceBroker
I've used axis to expose the WebserviceBroker.ProcessMessage method
that takes a single string parameter containing an XML fragment.
This works fine and my services work fine. The problem I have is with
making them available for a service consumer. I need to Provide a WSDL
which accurately defines what messages are acceptable as input.
I can see the axis generated WSDL for my services but it specifies
input and output of type="xsd:anyType" which isn't much use to my
consumers.
I have hand coded a WSDL which contains a much more precise definition
of the xml messages/structures and elements. I have even been able to
make Axis display my WSDL in the Services/<name>?wsld by adding in a
reference to my document in the server-config.wsdd.
What I can't do is get Axis to validate the input against the
schema!!!!! If I give my handcoded WSDL to my customers I am relying on
them to send valid messages in but its not enforced and that opens me
up to any input message.
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.
Anyone got any advice?