axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen" <>
Subject Re: Best way to reference common XSD
Date Thu, 20 Nov 2008 22:55:06 GMT

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


On Mon, Nov 17, 2008 at 17:52, stlecho <> 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
> 'LanguageType@' 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:
> Sent from the Axis - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message