axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jhan Yuler" <jyu...@hotmail.com>
Subject Axis serialization bug?
Date Tue, 02 Aug 2005 14:33:07 GMT

Hi

I have a java method that I expoxed like a message style web service using 
Axis.

  public SOAPBodyElement[] getBalanceByAccount( SOAPBodyElement[] doc )
  throws Exception {

    // This line create a small xml document
    String xml = "<root xmlns="urn:helloworld">" +
                 "<tag1><tag2>0</tag2></tag1></root>";

    doc[0] = new SOAPBodyElement( new ByteArrayInputStream(xml.getBytes()) 
);

    return doc;
  }


I would hope a response like this:

<soapenv:Body>
  <root xmlns="urn:helloworld">
    <tag1>
      <tag2>0</tag2>
    </tag1>
  </root>
</soapenv:Body>

But, the response that I got is this:

<soapenv:Body>
  <ns1:root xmlns="urn:helloworld" xmlns:ns1="urn:helloworld">
    <ns1:tag1>
      <ns1:tag2>0</ns1:tag2>
    </ns1:tag1>
  </ns1:root>
</soapenv:Body>


I think this is a bug!! Am I correct??

Thanks



Mime
View raw message