Wesley,

try to call options.setProperty(HTTPConstants.SO_TIMEOUT, value);

Michele

On 18 Feb 2008, at 13:02, Wesley Mesquita wrote:

Hi all,

I trying to use the axis2 api to generate clients to my webservices, but I am getting in trouble. I got rid of my examples to minimize the possibilities to make mistakes. So I trying the examples in this site http://today.java.net/pub/a/ today/2006/12/13/invoking-web-services-using-apache-axis2.html , and i am getting this Exception tree:

Exception in thread "main" org.apache.axis2.AxisFault: Read timed out
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost (HTTPSender.java:195) at org.apache.axis2.transport.http.HTTPSender.send (HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessag eWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke (CommonsHTTPTransportSender.java:206)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at org.apache.axis2.description.OutInAxisOperationClient.send (OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl (OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute (OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive (ServiceClient.java:528) at org.apache.axis2.client.ServiceClient.sendReceive (ServiceClient.java:508) at sample.axisversion.Scenario1Client.main(Scenario1Client.java: 22)
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.httpclient.HttpParser.readRawLine (HttpParser.java:77) at org.apache.commons.httpclient.HttpParser.readLine (HttpParser.java:105) at org.apache.commons.httpclient.HttpConnection.readLine (HttpConnection.java:1115) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager $HttpConnectionAdapter.readLine (MultiThreadedHttpConnectionManager.java:1373) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine (HttpMethodBase.java:1832) at org.apache.commons.httpclient.HttpMethodBase.readResponse (HttpMethodBase.java:1590) at org.apache.commons.httpclient.HttpMethodBase.execute (HttpMethodBase.java:995) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry (HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod (HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod (HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod (HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod (AbstractHTTPSender.java:520) at org.apache.axis2.transport.http.HTTPSender.sendViaPost (HTTPSender.java:191)
    ... 10 more

I tested the service in a browser and it appears to be working fine.
I tried to execute the service in Tomcat 5.5 and using directly axis2server (Axis2 1.3). Anyone has any ideia, what is happening here?

Thanks in advance,

Wesley.

--
Wesley Mesquita
LIS/IC - UNICAMP
[skype: wesley.mesquita]


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

Reply via email to