Missing Content Length using WSRequest

mikehowarth's picture
Hi I'm currently trying to communicate with a web service using SOAP via the WSRequest object, however I HTTP 411 error back from the service advising that the 'Content Length is missing'. Doing some reading around I've managed to work out that this is because AXIS is sending the request using HTTP/1.1 with the Transfer-Encoding:Chunked. Looking in the axis2-client.xml I've tried to amend the transportSender as referenced below: HTTP/1.1 chunked First I tried removing the Transfer-Encoding parameter which resulted resulted in a MashupFault being thrown, and then I tried reverying the PROTOCOL back to HTTP/1.0. The transportSender now looks like this: HTTP/1.0 However all I get is the following returned: JavaException: org.wso2.mashup.MashupFault: Internal system error Nothing is returned to the logs. Can anyone point me in the right direction, I'm beginning to struggle with what should be a relatively simple task using the mashup server.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)