Hi

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

public SOAPBodyElement[] getBalanceByAccount( SOAPBodyElement[] doc ) throws Exception {
           String xml = "<root xmlns=\"http://www.helloworld.com\";>" +
                        "<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="http://www.helloworld.com";>
                        <tag1>
                                <tag2>0</tag2>
                        </tag1>
                </root>
        </soapenv:Body>

But, the response that I got is this:

        <soapenv:Body>
<ns1:root xmlns="http://www.helloworld.com"; xmlns:ns1="http://www.helloworld.com";>
                        <ns1:tag1>
                                <ns1:tag2>0</ns1:tag2>
                        </ns1:tag1>
                </ns1:root>
        </soapenv:Body>


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

Thanks


Reply via email to