WSDL validation against XSD in GlassfishESB / JCAPS6

2 messages Options
Embed this post
Permalink
nag_sbyn

WSDL validation against XSD in GlassfishESB / JCAPS6

Reply Threaded More More options
Print post
Permalink
Hi, I was wondering if GlassfishESB V2/ JCAPS 6 provide a way to validate the WebService Request against the xml schema defined in the WSDL.If the request is invalid, ideally the Webservice should send a SOAP fault but it is accepting the request and returning the response. I created a webservice by: 1.defining XSD with Request Response elements and Restrictions like mandatory,types and min length. 2.Created a WSDL and generated a JavaEE Webservice using JAX-WS. It does not do XSD validation on the input request,i.e. even if a mandatory field is missing / a blank value when the min length is greater than 1 it still accepts and returns a response. Any help is appreciated. Thanks, Nag
SujitBiswas

Re: WSDL validation against XSD in GlassfishESB / JCAPS6

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
for javaee webservice see https://jax-ws.dev.java.net/guide/Schema_Validation.html
-Sujit

nag_sbyn wrote:
Hi, I was wondering if GlassfishESB V2/ JCAPS 6 provide a way to validate the WebService Request against the xml schema defined in the WSDL.If the request is invalid, ideally the Webservice should send a SOAP fault but it is accepting the request and returning the response. I created a webservice by: 1.defining XSD with Request Response elements and Restrictions like mandatory,types and min length. 2.Created a WSDL and generated a JavaEE Webservice using JAX-WS. It does not do XSD validation on the input request,i.e. even if a mandatory field is missing / a blank value when the min length is greater than 1 it still accepts and returns a response. Any help is appreciated. Thanks, Nag

View this message in context: WSDL validation against XSD in GlassfishESB / JCAPS6
Sent from the OpenESB Users mailing list archive at Nabble.com.