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, 26 Jul 2005 22:24:34 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 {
            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



Mime
View raw message