[jboss-user] [JBossWS] - Re: XSD import in JBoss generated WSDL

bbucy do-not-reply at jboss.com
Tue Jul 29 09:57:38 EDT 2008


You will need to take a top-down approach (e.g. contract first using wsconsume to generate artifacts).  This is described in the Tools documentation (e.g. http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS_JAX-WS_Tools#Top-Down_.28Using_wsconsume.29).

One side note, this all works fine, but if you turn SchemaValidation on you will encounter an exception being thrown.  There looks to be a bug or an enhancement required in order to get the schema validation logic to work when referencing an imported schema from the WSDL (see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=137791).  

Note, I have created an example application which is attached to JIRA 2254 (https://jira.jboss.org/jira/browse/JBWS-2254) which demonstrates this issue.  This may get you on your way just comment out the @SchemaValidation annotation and all should work.  One caveat, if you get SchemaValidation to work you have to share your solution :)

--Bob

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167337#4167337

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167337



More information about the jboss-user mailing list