Mario,
I can answer the "4c5" "0" before and after question, but not the three
firings.
Go here to see why the numbers come out: http://wso2.org/library/952
We get transfer encoding = chunked turned on by default in HTTP 1.1, and
I think you would prefer it turned off.
-jeff


-----Original Message-----
From: Mario Felarca [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 13, 2007 10:34 PM
To: [email protected]
Subject: Axis 1.4 CommonsHTTPSender question

Hello all!

I have a client where before setting the client to use
CommonsHTTPSender, it worked fine. The client would post using HTTP 1.0,
and it would do so once only and everything was fine.

Now, since it is a programmatically defined client, I activate the
CommonsHTTPSender by adding the following lines to the client:

CommonsHTTPSender reqHandler = new CommonsHTTPSender();
CommonsHTTPSender respHandler = new CommonsHTTPSender();
_call.setClientHandlers(reqHandler, respHandler);

The following line is added to the server-config.wsdd:

 <transport name="http"
pivot="java:org.apache.axis.transport.http.CommonsHTTPSender" />


The behavior I am seeing in tcpmon when NOT using CommonsHTTPSender is:

POST /axis/services/USERSERVICE HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related,
text/*
User-Agent: Axis/1.4
Host: 127.0.0.1:8888
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 1088

<![CDATA[SOMEUSERDATA]]>

The behavior I am seeing in tcpmon when I use CommonsHTTPSender is
listed below, however it is also notable that it fires three times
instead of once, all on its own. The first and third time are HTTP 1.1,
and the middle one is HTTP 1.0. I'm not sure why this behavior exists as
well. 

Additionally, there are these strings before and after the soap content,
the string before is 4c5 and the string after is 0. I don't know where
these come from either, and if these are the reasons for the 3 seperate
calls.

Anyway, the tcpmon is:

POST /axis/services/USERSERVICE HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
User-Agent: Axis/1.4
Host: 127.0.0.1:8888
Transfer-Encoding: chunked

4c5
<![CDATA[SOMEUSERDATA]]>
0


Any help or guidance would be greatly appreciated!!

Thanks in advance,

Mario-





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to