Java Mailing List Archive

Home » »

Additional characters in Axis2 SOAP message

Lawrence Yao


Replies: Find Java Web Hosting

Author LoginPost Reply
Hello all,

I have written a client using Axis2 (version 1.5) that attempts to
access a Web service written in C#/mono. Whenever I attempt to
connect, I receive the following exception:

org.apache.axis2.AxisFault: Could not deserialize Soap message

I noticed that the SOAP message sent to the server is incorrectly
formatted and contains additional characters. I captured the entire
message shown below:

POST /XXXXImport.asmx HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
User-Agent: Axis2
Host: localhost:8080
Transfer-Encoding: chunked

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope

In my opinion, the characters "193" and "0" should not appear where
they are (before and after the XML message, respectively). Once, I
also got "1b3" to appear in place of "193" when the contents of the
XML message was different. I believe these additional characters are
causing the "Could not deserialize Soap message" exception above,
because I have written a PHP client to connect to the same Web service
and it worked. When comparing the two SOAP messages, the PHP client's
message did not have these additional characters.

I have tested that this happens when using Axis2 versions 1.4.1, 1.5
and 1.5.1. Oddly enough, I did not encounter problems when using Axis2
clients to connect to Axis2 Web services. Any ideas?

©2008 - Jax Systems, LLC, U.S.A.