[jbossws-issues] [JBoss JIRA] Commented: (JBWS-1172) Support schema validation for incoming/outgoing messages
l p (JIRA)
jira-events at lists.jboss.org
Tue Apr 8 07:04:55 EDT 2008
[ http://jira.jboss.com/jira/browse/JBWS-1172?page=comments#action_12407483 ]
l p commented on JBWS-1172:
---------------------------
Also, when I add this to my webservice:
@SchemaValidation( enabled=true, errorHandler=nl.kb.hrd.dd.karakterisering.impls.ValidationErrorHandler.class, schemaLocation="ergens")
and send an invalid request, nothing happens. The request just gets passed, the handler is not called, and I see no errormessage about the invalid schemaLocation.
A related question: in the jax-ws RI, it is not necessary to specify the schema location. Why is it needed here ?
> Support schema validation for incoming/outgoing messages
> --------------------------------------------------------
>
> Key: JBWS-1172
> URL: http://jira.jboss.com/jira/browse/JBWS-1172
> Project: JBoss Web Services
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: jbossws-native
> Reporter: Thomas Diesler
> Assigned To: Thomas Diesler
> Fix For: jbossws-native-2.0.4
>
>
> I am trying to use JBOSSWS 1.0.2. and JBOSSAS-4.0.4GA
> I am starting with a WSDL file that contains a schema. I used WSTOOLS to generate the appropriate artifacts
> I would like to use DOCUMENT/LITERAL wrapped style and I would like to turn on schema validation of my XML instances against a schema defined in the WSDL (on receipt of the message the server does the validation ?).
> Looking through the sources, I see that JAXBDeserializer (jbossws-core.jar) calls JAXBUnmarshallerImpl which calls UnmarshallerImpl (jboss-xml-binding.jar) which does the parsing of the XML.
> I do not see any call to UnmarshallerImpl.setSchemaValidation in this call graph. Should this be called to turn on to do Schema Validation ? If so how and where ?
> Is Schema Validation for Document/Literal something that JBOSSWS 1.0.2 supports ?
> How does one turn on XML Schema validation in JBOSSWS ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossws-issues
mailing list