RE: Sharing common data types between multiple WSDL files

From: Ryan LeCompte <>
Date: Tue, 3 May 2005 14:05:47 -0400


Thank you for the suggestion. Unfortunately, we are using JWSDP 1.5, and it
appears that JAXRPC 2.0 is at an alpha/beta stage at the current time. Do
you know when JAXRPC 2.0 is supposed to be in a final/shippable form? Also,
is there no other way in JWSDP 1.5 to simply define a "shared data type"
among WSDL files so that only one class is generated?


-----Original Message-----
From: Doug Kohlert [mailto:Doug.Kohlert_at_Sun.COM]
Sent: Tuesday, May 03, 2005 1:06 PM
Subject: Re: Sharing common data types between multiple WSDL files

If you try the new JAXRPC 2.0 EA, you can use JAXRPC customizations to
specify what package to map
datatypes to, you should then be able to share the same Java classes
between 2 different applications.
You can get the JAXRPC 2.0 EA at:

You can read more about customizations here:

The following

Ryan LeCompte wrote:

> Hello all,
> I have a question regarding "best practices" for sharing similar data
> types among multiple WSDL files. I have a custom data type that
> multiple web services will be using. My fear is that I will have to
> define this data type in each of the WSDL files for each of the web
> services. My ultimate wish would be to define the data type in a
> single place so that each web service's WSDL can reference it. If I
> define the same data type in each of the WSDL files, then my fear is
> that the JWSDP code-generation utilities (wscompile) will generate
> duplicate Java objects for the same data type in different packages.
> This is definitely not desirable. What is the recommended approach
> when multiple WSDL documents need to reference/use a common custom
> data type?
> Any advice is appreciated.
> Thank you,
> Ryan

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