6

I am trying to set time out error whenever web service response will be delayed with below 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’s not working.

Server Used – Oracle Weblogic server 10.3

Type of Web service – JAX-RPC

Please reply, if someone has solution for it.

Prakash K
  • 11,669
  • 6
  • 51
  • 109
user1800208
  • 61
  • 1
  • 1
  • 2

2 Answers2

2

There are two kinds of timeout (See What is the difference between connection and read timeout for sockets?)

weblogic.wsee.transport.connection.timeout

Specifies, in seconds, how long a client application that is attempting to invoke a Web service waits to make a connection. After the specified time elapses, if a connection hasn't been made, the attempt times out.

weblogic.wsee.transport.read.timeout

Specifies, in seconds, how long a client application waits for a response from a Web service it is invoking. After the specified time elapses, if a response hasn't arrived, the client times out.

You should set sensible values for both. See this answer for an example.

Community
  • 1
  • 1
fglez
  • 8,422
  • 4
  • 47
  • 78
1

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

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

daljian
  • 102
  • 1
  • 11