users@jax-rpc.java.net

Re: Chapter 20 Appendix: Mapping of XML Names

From: Rahul Sharma <rahul.sharma_at_sun.com>
Date: Fri, 05 Jul 2002 09:24:49 -0700

John Keyes wrote:
> The following example is listed in Chapter 20:
>
> XML Name Class Name
> -------- ----------
> mixedCaseName MixedCaseName
>
> I am wondering what the correct Class name for 'mixedCASEName'
> should be. If I use the JAXB reference implementation the Class
> name is 'MixedCASEName'. Is this the same for JAX-RPC or should
> it be 'MixedCaseName'?

   For JAX-RPC, class name should be the same "MixedCASEName".

> Is the only difference between the JAXB naming guidelines
> and the JAX-RPC naming guidelines, the fact that JAXB
> also specifies a mapping for Java constants?

   JAXB specification is presently being worked on in the JAXB EG.
   There are changes from the earlier JAXB spec/RI. Please see:
        http://jcp.org/jsr/detail/31.jsp

   Both JAXB and JAX-RPC aim to keep the name mapping aligned.

   Regards,

   Rahul