You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Kenney Westerhof <ke...@apache.org> on 2007/03/08 14:50:40 UTC

re-using XSD beans/stubs

Hi,

I have 2 WSDL's that import the same XSD; they define 2 services/approaches
to communicate with the web service.

I noticed that the generated classes for server and client
are exactly the same, except for some holder classes
and the WSDL webservice specific classes. In my case, I end up
with 4 copies of all classes.

Is there any way to only generate the webservice specific
classes, and re-use the type classes? I tried running WSDL2Java with -n
but that yields this error:

  java.io.IOException: Element {someNamespace}someElementName is referenced but not defined.

I consider the type classes generated from the external XSD as a separate
API jar, when both client and server use axis. I'm implementing both a server
and a client system and I like to avoid duplicate classes.

I'm sure this is documented somewhere, but I scoured the wiki and the userlist
and couldn't find any information.

Thanks,

	Kenney

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