After upgrading web service client from Axis1 to Axis2(1.6.2
version), the client was getting the following service fault from the service
methods implemented under Weblogic server.
Caused by:
org.apache.axis2.AxisFault: Couldn't create SOAP message due to exception:
Unable to create StAX reader or writer
After little
research, the issue was related with chunked streaming support from Axis2. The
Axis2 chunked streaming is enabled by default and so it needs to disabled at
runtime. I think there are some problems with chunking and some servers don’t
allow chunked requests.
serviceStub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED,
false);
No comments:
Post a Comment