Stefan, When trying to import the schema contained in the JAR, what is the location attribute you use? Maybe you can achieve the desired result by using a URL such as "jar:file:///some/location/CommonXSD.jar!/my/schemas/common.xsd".
Andreas On Mon, Nov 17, 2008 at 17:52, stlecho <[EMAIL PROTECTED]> wrote: > > Hi, > > For several of our applications, we're developing Webservices with Axis2. We > would like to re-use common XSD structures. Example of this: all SOAP > requests should always contain the user name, user id and user address. > > Until now, we always duplicate these common structures in each project. The > "common" structures were imported with xs:import and referenced locally in > the project. But this is not such a good solution :o( > > In order to re-use the common XSD structures, I was thinking about grouping > them in a jar. This jar could then be used as a parameter in WSDL2Java so > that it will find the referenced elements in the jar. > > I've tried to add the jar to WSDL2Java by using "-classpath CommonXSD.jar", > but I'm getting the following error: > "project://local/xsd/ASFCommon.xsd:875:4: error: src-resolve: type > '[EMAIL PROTECTED]://wsdl.notary.be/v1/CredocCommon' not found.". This is > correct, because LanguageType is one of the elements contained in > CommonXSD.jar. I have the impression that the referenced jar is not used by > WSDL2Java. > > I would be glad if someone could share its experience on how to solve this > issue :o) > > Regards, Stefan Lecho. > -- > View this message in context: > http://www.nabble.com/Best-way-to-reference-common-XSD-tp20543221p20543221.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
