cancel
Showing results for 
Search instead for 
Did you mean: 

SocketTimeoutException: Read timed out

Former Member
0 Kudos

Hi Experts,

I am getting "SocketTimeoutException: Read timed out" Exception while calling XI Webservice from Webdynpro. The XI server is taking some time at Backend to process the request and send reply to webdynpro in the mean time on the browser i am getting exception "Service call exception; nested exception is: java.net.SocketTimeoutException: Read timed out".

I don't see any Error in processing request at XI side.

I have to make Webdynpro application to wait for reply from XI Server.If the response is taking more then 60 seconds then Connection timeout error is displaying.

How to make my webdynpro application to wait for 120 or 180 seconds to get reply from XI server.

Thanks a Lot

- Madhan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

This error message are you getting while in debug mode?.

To make webdynpro application wait for 120 or 180 seconds to get reply from XI server:

Include below code after calling XI Webservice

//wait for 25ms.This waits for 25 milliseconds.

Thread.sleep(25);

-lena

Former Member
0 Kudos

Check this thread:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2bweb%2bse...

Use this code:

Request_NumberToWords requestMO = new Request_NumberToWords(model);

requestMO.wdSetInvocationModifier(

new IWDWSInvocationModifier() {

public void doModifyInvocation(Object port) {

HTTPControlInterface httpItf = HTTPControlFactory.getInterface(port);

//timeout for this WS invocation is 120 sec; don't use global config. setting of WS-Runtime

httpItf.setSocketTimeout(120000);

}

public void doModifyAfterInvocation() {}

}

);

Best regards.

former_member85655
Active Participant
0 Kudos

In the application properties, add a property ExpirationTime and set it to a value you want in seconds. -1 means for ever.

Former Member
0 Kudos

Hi Arun,

I am looking for Webdynpro Proxy client to wait for XI Response . Here the application property is waiting for user response for session tracking.

Thanks

Madhan

former_member85655
Active Participant
0 Kudos

Hi Madhan,

Yes so the WD Client will now not timeout and wait for the refernce from XI indefinitely or for the time that you have mentioned.

Regardsm

Arun

Former Member
0 Kudos

Hi Arun,

I tried, It din't worked out.

Thanks a Lot.

-Madhan