java - Exception when using @SchemaValidation annotation on JAX-WS endpoint in Weblogic -


i trying schema validation working jax-ws web service deployed on weblogic 10.3.3.

according documentation, should simple adding annotation "@schemavalidation" endpoint class. when try following exception thrown when application deployed:

caused by: javax.xml.ws.webserviceexception:  annotation@com.sun.xml.internal.ws.developer.schemavalidation  (handler=class com.sun.xml.internal.ws.server.draconianvalidationerrorhandler) not recognizable,  atleast 1 constructor of class com.sun.xml.internal.ws.developer.schemavalidationfeature  should marked @featureconstructor @ com.sun.xml.ws.binding.webservicefeaturelist.getwebservicefeaturebean(webservicefeaturelist.java:169) @ com.sun.xml.ws.binding.webservicefeaturelist.parseannotations(webservicefeaturelist.java:141) 

the error message complaining "com.sun.xml.internal.ws.developer.schemavalidationfeature" not have constructor annotated @featureconstructor. when @ class, sure seems have one:

  @com.sun.xml.internal.ws.api.featureconstructor(value={"handler"})   public schemavalidationfeature(java.lang.class arg0); 

i have googled around cannot find reference more this fellow unfortunate soul did not answers. great if point me in right direction because @ moment stuck.

i have faced same problem recently.

to overcome this, added tag

<validation-request>true</validation-request>

to file weblogic-webservices.xml

this enabled soap request validation on app-server.

xml structure of weblogic-webservices.xml

note : have not been able use @schemavalidation tag successfully, above way - works expected.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -