You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Angel Todorov <at...@gmail.com> on 2007/04/04 17:17:18 UTC
[Axis2] envelope.toString() vs. envelope.serializeAndConsume(outStream)
Hi,
Could you explain why calling :
String str = msgCtx.getEnvelope().toString();
byte[] message = str.getBytes();
and:
msgCtx.getEnvelope().serializeAndConsume(outputStream);
results in very different SOAP messages? Payload is OK, but one
message has some namespace declarations, while the other hasn't. Also,
one message uses :
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
while the other message uses :
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
Thanks.
Regards,
Angel
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org