axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: Empty arrays not serialized properly
Date Fri, 01 Nov 2002 19:18:31 GMT

----- Original Message -----
From: "Martin Jericho" <>
To: <>
Sent: Thursday, October 31, 2002 4:42 PM
Subject: Re: Empty arrays not serialized properly

> Thanks for the tip, it has given me further insight into the problem.
> Your suggestion works, but it introduces another problem.  Specifying the
> beans in this way means that Java2WSDL will give the element the name
> "values" instead of what I want, which is "Values" with the first letter
> capitalised.  I would have to rewrite all of my .NET client code, which is
> not possible.  I also prefer using the public member way of declaring the
> bean's contents because it is more succinct, easier to read and maintain,
> and doesn't require any superfluous implementation code that is never used
> anyway.
> Is there any way I can get the element names to start with capital letters
> if I declare them using bean methods?

no, because that is what the JAX-PRC rules say that Axis must do. They made
the naming rules, not Apache.

But you have a simple workaround

1. go to and get the latest beta of their WSDL editor
2. write the WSDL you want first
3. use wsdl2java -server to create the wsdl from this; in Ant it looks like

          package="${axis.soapapi.package}" />
          package="${axis.soapapi.package}.data" />

Then you dont have to worry about what java2wsdl does, because you control
the WsdL

View raw message