Link to home
Start Free TrialLog in
Avatar of sivakumarmsc
sivakumarmsc

asked on

Axis JAVA client generates malformed HTTP request

Hi I am trying to invoke a webservice using Axis based client. I have configured commonshttpsender through the configuration file as a core http handler for the AXIS. But the request generated by the client seems to be malformde.You can see the missing open tag after the header section, hence the corporate firewall proxy is throwing HTTP 400 error  invalid headers. You can see the the lines "Proxy-Connection: Keep-Alive version="1.0" encoding="UTF-8"?"... I have capture this request using tcpmon.

POST http://ctk-sq.innovataw3svc.com/ctk-sq.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://CustomDataTimeTableToolKit.com/GetSchedules"
User-Agent: Axis/1.4
Host: ctk-sq.innovataw3svc.com
Content-Length: 385
Proxy-Connection: Keep-Alive
 version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><GetSchedules xmlns="http://CustomDataTimeTableToolKit.com/"><_sSchedulesSearchXML>Abc</_sSchedulesSearchXML></GetSchedules></soapenv:Body></soapenv:Envelope>
Avatar of sivakumarmsc
sivakumarmsc

ASKER

Hi I have resolved the error by setting Chunking to false.

Moderator: Since i havent received any answer pleas help to restore my points
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial