-
1. Re: XSD import in JBoss generated WSDL
bbucy Jul 29, 2008 9:57 AM (in response to rohit.macherla)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 -
2. Re: XSD import in JBoss generated WSDL
rohit.macherla Jul 30, 2008 1:19 AM (in response to rohit.macherla)Thanks bbucy.
I'll test it and let you know the results in case I stumble upon something.