axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Pannier" <>
Subject Capitalization issue with Java2WSDL
Date Wed, 02 Apr 2003 20:23:38 GMT
Hello all.

Axis-1_1RC2:  I'm using Java2WSDL to generate WSDL for my service.
I have class properties that start with an upper case letter.  The
WSDL, however, contains the property name with the first letter lower case.

Why does Java2WSDL do this?  Is there a way to force it to generate
WSDL maintaining the capitalization of each class member?

Here's an example:

package test;
public class Foo {
    public Bar getData (  ) {
        return null;

package test;
public class Bar {
    private String Str1 = null;
    private String Str2 = null;

    public String getStr1() {
        return this.Str1;
    public void setStr1( String str ) {
        this.Str1 = str;
    public String getStr2() {
        return this.Str2;
    public void setStr2( String str ) {
        this.Str2 = str;

I run the command "
java -classpath c:\wsdl\TestToWsdl\RPC-Style\Test-Java2WSDL;%AXIS_DIR%
\commons-discovery.jar;c:\xerces.jar org.apache.axis.wsdl.Java2WSDL -l -s FooPort -S Foo -o Foo.wsdl

The types section of the generated WSDL follows (note that "str1" and
"str2" are not capitalized.):

  <schema targetNamespace="http://test" xmlns
   <import namespace=""/>
   <complexType name="Bar">
     <element name="str2" nillable="true" type="xsd:string"/>
     <element name="str1" nillable="true" type="xsd:string"/>


Steve Pannier
Jacada, Inc.
(763) 201-0002 Ext. 219

View raw message