This isn't a bug. This is what JAX-RPC specifies. It tries to convert XML names to Java conventional names. One of the rules is, remove each underscore and force the following character to upper case.

Note that this ONLY affects the Java mappings. What goes across the wire is the original XML name.

Russell Butek
[EMAIL PROTECTED]

Please respond to [EMAIL PROTECTED]

To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: Attribute's corrupted with WSDL2Java





Any class that has attributes that have underscores in it are not generated correctly, i.e. the underscores are removed!

 

Example WSDL (minus unrelated structures):

   <complexType name="MyData">

    <complexContent>

      <sequence>

       <element name="CREATE_BY" nillable="true" type="xsd:string"/>

       <element name="LAST_MOD_BY" nillable="true" type="xsd:string"/>

      </sequence>

     </extension>

    </complexContent>

   </complexType>

 

 Java code generated by WSDL2Java (minus unrelated code):

 

public class CSRSessionData  extends implements java.io.Serializable {

    private java.lang.String CREATEBY;

    private java.lang.String LASTMODBY;

 

    public CSRSessionData() {

    }

 

    public java.lang.String getCREATEBY() {

        return CREATEBY;

    }

 

    public void setCREATEBY(java.lang.String CREATEBY) {

        this.CREATEBY = CREATEBY;

    }

 

    public java.lang.String getLASTMODBY() {

        return LASTMODBY;

    }

 

    public void setLASTMODBY(java.lang.String LASTMODBY) {

        this.LASTMODBY = LASTMODBY;

    }

}

 

I believe this to be a bug in the WSDL2Java generator.

 

Jim Stickley

Birch Telecom

(816) 300-6743

[EMAIL PROTECTED]

 

Reply via email to