You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Heiko Braun <hb...@jamba-ag.de> on 2002/09/23 18:01:48 UTC

http transport problem

hi,
i am invoking a call on a remote host using the 
http sender class. actually my wsdl generated files
choose it for the best transport available ;)

everything went fine, except that the remote host 
doesnt deliver a reponse carrying http headers,
which causes the http client to exit with the follwoing exception:

---snip---

AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.userException
 faultString: java.lang.NumberFormatException: version="1.0"
 faultActor: null
 faultDetail: 
	stackTrace: java.lang.NumberFormatException: version=&quot;1.0&quot;
	at java.lang.Integer.parseInt(Integer.java:414)
	at java.lang.Integer.parseInt(Integer.java:463)
	at 
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:590)
	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:129)

--- /snip ---

It looks like the http sender is exepcting http headers,
but finds raw xml in its response. a look at the response message 
confirms that the remote host answers without supplying http headers.

Q1.) is their a way to steer around this problem, 
or do i have change the transport?

Q2.) is there a transport implementation which supports raw socket 
communication, without http encupsulation?

Q3.) at which point does the wsdl2java tool chose the transport 
that is going to be used? can i modify it?

any help or suggestions appreciated,
heiko