Hi,

 

I am getting Read Time out Error when I try to invoke my target
webservice from behind a proxy.

 

I have configured the proxy setting in my client. The settings are as
follows:

 

        EndpointReference targetEPR = new
EndpointReference("http://10.236.28.196:8080/axis2/services/WeatherServi
ce");

        /*options.setTimeOutInMilliSeconds(60000);

        options.setTo(targetEPR);*/

 

        /* New Bit */

        

        Options opt = new Options();

        //Options opt = serviceClient.getOptions();

        ProxyProperties proxyProperties = new ProxyProperties();

        proxyProperties.setProxyName("localhost");

        proxyProperties.setProxyPort(8090);

        options.setProperty(HTTPConstants.PROXY, proxyProperties);

        //opt.setTimeOutInMilliSeconds(120000);

        options.setTo(targetEPR);

        

        serviceClient.getOptions().setProperty(HTTPConstants.PROXY,
proxyProperties);

        //options.setTo(targetEPR);

        serviceClient.setOptions(options);

        

But whenever I run the client, the following is the error I get 

 

[java] org.apache.axis2.AxisFault: Read timed out

 

     [java] Caused by: org.apache.axis2.AxisFault: Read timed out

     [java] Caused by: java.net.SocketTimeoutException: Read timed out

 

Can somebody plz help me ??

 

Thanks,

-Subhash-

 



This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly 
prohibited and may be unlawful.

Reply via email to