DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9210>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9210

Axis converts some first character elements to lowercase

           Summary: Axis converts some first character elements to lowercase
           Product: Axis
           Version: beta-2
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Basic Architecture
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have an Axis WS method that returns a complex type as a JavaBean.  It
uses beta2.

For some reason, Axis returns the first character of some elements in the reply 
as lowercase, even though the WSDL shows them as uppercase, causing 
serialization (amongst other potential systems) to fail.  Below, you'll see a 
summary of the problem.  In addition, an element called <Filler1> is also 
coming back as <filler1> in my reply.  I can provide my exact WSDL if you wish 
as well.

  If it makes a difference, I'm using WebLogic 6.1 as my servlet engine.

  My bean looks like this:

  public class Address {
    private String _FOO;
    private String _D_TSENT;

    public String getFOO() { return _FOO; }
    public String getD_TSENT() { return _D_TSENT; }
  }

  The WSDL appears like so:

  <complexType name="Address">
    <sequence>
      <element name="FOO"/>
      <element name="D_TSENT"/>
    </sequence>
  </complexType>
  <element name="Address" type="tns:Address">

  However, when I generate client stubs using Java2Wsdl and execute this:

  MyServiceProxy binding = new
MyServiceProxyServiceLocator().getMyService();
  Address addr = binding.getAddress(key);

  ...the XML come across as:
  <Address>
    <FOO>Bar</FOO>
    <d_TSENT>20020515</D_TSENT>
  </Address>

  ...and thus I get the following exception:

        org.xml.sax.SAXException: Invalid element in myclient.Address -
d_TSENT
        at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.
java:208)

Reply via email to