cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding how to set Timeout of webservice from webdynpro

Former Member
0 Kudos

Hi Everybody,

I am using webservices which are deployed in 2004s Server .In it the option of Timeout is provided i.e if in specified time if data is not retrieved then an exception saying Read Timed out is thrown.

My question is can we set this timeout from our webdynpro application as we sent input parameters to a webservice.

If yes please come up with your valuable answers.

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can set the seconds in Visual Administrator->Web Services Container->Settings->WS Clients Socket Timeout.It will apply to all the available ones.

Kind Regards

Saravanan K

Former Member
0 Kudos

hi,

Actually my requirement is to give time out for a particular webservice ,instead of all the webservices deployed in that server,the solution u have given applies to all webservices deployed in particular server.

is it possible to do for a particular webservice.

Thanks in advance

Former Member
0 Kudos

Hi,

Have a look at this threads

Regards

Saravanan K

Former Member
0 Kudos

Hi madhavi,

This code u can use

Request_SendEmail requestMO = new Request_SendEmail(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(){}

});

here requestMO is ur request model

regards

Sumit