The moose likes Web Services and the fly likes Web service client timing out. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Web service client timing out." Watch "Web service client timing out." New topic
Author

Web service client timing out.

Rohit Chaudhary
Greenhorn

Joined: May 11, 2010
Posts: 7
Hi all,

I have a scenario in my project where a web service client is timing out if web service takes longer to respond. Observed that it times out if response is not received in around 30 sec.
The exception says:


Call to web service failed. SOAPFaultException
javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.net.SocketTimeoutException: Read timed out (see Fault Detail for stacktrace)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:317)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:147)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:473)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:569)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:422)

Web service deployed is rpc based java web service.
How do we increase/decrease the timeout for web service client. What parameter do we need to set?

Client code:



I have only attached partial code here. What i want to know is if there is any parameter which i can set here in code or any other way so that my client doesnt time out?

thanks in advance.

 
 
subject: Web service client timing out.
 
Threads others viewed
javax.xml.rpc.JAXRPCException when using Call.invoke() to invoke a web-method using a dynamic client
Problem invoking web service using dynamic client with WSDL
Problem in Invoking Weblogic Web Service using JAX-RPC
Invoking webservice in one application through a dynamic client in other application
how to invoke a webservice
IntelliJ Java IDE