I am writing a SOAP service client using axis2. I generated the client code with wsdl2java, then I try to
Request req = new Request();
req.setParameter("XXX");
ServiceStub stub = new ServiceStub();
stub.remoteService(req);
At runtime, I get an AxisFault: Content length must be specified
Any idea of what’s going wrong or how to specify content length?
I believe the Axis2 will include the content-length value in the HTTP header if you disable the chunking by default
As per the XML RPC specifications: