Subscribe to
Posts [Atom]


Axis2 Soap Message Error

Tuesday, September 02, 2008

I get the error: Exception in thread "main" org.apache.axis2.AxisFault: First Element must contain the local name, Envelope , but found html

I did some packet sniffing and found out that in the header a chunked attribute is going out in the soap message. I'm not sure what this chunking is but you can turn it off by adding the following code to the client:

stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED,
Boolean.FALSE);

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home