users@jax-rpc.java.net

Re: Sharing common data types between multiple WSDL files

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Tue, 03 May 2005 11:28:24 -0700

Ryan LeCompte wrote:

>Doug,
>
>Thanks for the information about the whitepaper on java.net -- I'll
>definitely go through it. You mention putting my shared data type in a
>separate "namespace" -- would this mean that I need to ultimately put the
>shared data type in a separate XML file that is referenced by
>WebServiceOne.wsdl and WebServiceTwo.wsdl (for example)?
>
>
>
That would be ideal.

>Thanks,
>Ryan
>
>
>-----Original Message-----
>From: Doug Kohlert [mailto:Doug.Kohlert_at_Sun.COM]
>Sent: Tuesday, May 03, 2005 2:12 PM
>To: users_at_jax-rpc.dev.java.net
>Subject: Re: Sharing common data types between multiple WSDL files
>
>Have you tried the namespaceMapping in the config.xml. If you put just
>your shared data type in a seperate
>namespace you should be able to map that namespace to the same package
>on different invocations of
>wscompile. Please refer to the white paper on java.net for more
>information on namespaceMapping.
>
>JAXRPC 2.0 should be FCS near the end of the year.
>
>Ryan LeCompte wrote:
>
>
>
>>Doug,
>>
>>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?
>>
>>Thanks,
>>Ryan
>>
>>-----Original Message-----
>>From: Doug Kohlert [mailto:Doug.Kohlert_at_Sun.COM]
>>Sent: Tuesday, May 03, 2005 1:06 PM
>>To: users_at_jax-rpc.dev.java.net
>>Subject: Re: Sharing common data types between multiple WSDL files
>>
>>Ryan,
>>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: https://jax-rpc.dev.java.net/jaxrpc20-ea/
>>
>>You can read more about customizations here:
>>https://jax-rpc.dev.java.net/jaxrpc20-ea/docs/UsersGuide.html#1.1.3_Customi
>>
>>
>z
>
>
>>ations
>>
>>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: users-unsubscribe_at_jax-rpc.dev.java.net
>>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>