on 12-28-2007 12:15 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.