Solved

Axis JAVA client generates malformed HTTP request

Posted on 2008-11-03
3
805 Views
Last Modified: 2013-11-23
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>
0
Comment
Question by:sivakumarmsc
3 Comments
 
LVL 1

Author Comment

by:sivakumarmsc
ID: 22877795
Hi I have resolved the error by setting Chunking to false.

Moderator: Since i havent received any answer pleas help to restore my points
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 23135003
PAQed with points refunded (250)

Computer101
EE Admin
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java 8 lambda expresssions exception handling 3 88
Weekend adv creator 3 36
Java JRE greater than 1.6 5 62
Which non-HTML GUI front end to use with Java? 3 19
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now