Setting timeout for web services with oracle 10.3 web browser server (java)

I am trying to set a timeout error whenever the web service response is delayed below the lines of code -

serviceStub._setProperty("weblogic.wsee.transport.connection.timeout", String.valueOf(timeoutSeconds)); BindingInfo bindingInfo = (BindingInfo)serviceStub._getProperty("weblogic.wsee.binding.BindingInfo"); bindingInfo.setTimeout(timasseoutSeconds); 

But it does not work.

Server Used - Oracle Weblogic 10.3 Server

Web Service Type - JAX-RPC

Please answer if anyone has a solution for this.

+6
source share
2 answers

I think this is what you need: weblogic.wsee.transport.read.timeout

Get it from here: http://docs.oracle.com/cd/E14571_01/web.1111/e13760/client.htm

+1
source

There are two types of timeout (see What is the difference between connection and timeout for sockets? )

weblogic.wsee.transport.connection.timeout

Indicates in seconds how long the client application that is trying to call the web service is waiting for a connection. After the set time has elapsed, if the connection has not been made, the attempt is disconnected.

weblogic.wsee.transport.read.timeout

Indicates in seconds how long the client application waits for a response from the called web service. After the specified time, if the answer has not yet arrived, the client is disconnected.

You must set reasonable values ​​for both. See this answer for an example.

+1
source

All Articles