axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen" <andreas.veit...@gmail.com>
Subject Re: Best way to reference common XSD
Date Thu, 20 Nov 2008 22:55:06 GMT
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 <stlecho@gmail.com> 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@http://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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message