axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upul Godage" <upulg....@gmail.com>
Subject Re: Read Time out Error when calling webservice from a proxy
Date Wed, 10 Oct 2007 07:48:48 GMT
Hi,

Have you checked whether the proxy server is running in your machine
(localhost) at 8090?  I think you should be able to put those values in a
browser proxy settings page and access something with the browser.


Upul


On 10/10/07, Subhash.NarayananDroupathy@cognizant.com <
Subhash.NarayananDroupathy@cognizant.com> wrote:
>
>  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/WeatherService");
>
>         /*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.
>

Mime
View raw message