on 09-10-2008 2:40 PM
Hi All,
I am using a normal WebService Model to access TIBCO Webservcie. when Services are DOWN, i am getting Exceptions and showing that Servcie is down.
if a request is not completed for long time we are Getting "SocketTimedOut Exception"
for this is there any place to set increase or decrease the TIME.
Please help me
Thanks
_______
Nagaraju
Hi Nagaraju,
Try the InvocationModifier below. It worked for Adaptative Web Service Models.
import com.sap.tc.webdynpro.model.webservice.api.IWDWSInvocationModifier;
...
YourModel yourModel = new YourModel();
//Request structure
request_GetTransfers = new Request_GetTransfers(yourModel );
//Change request's default socketTimeout to the value you want to (in miliseconds).
request_GetTransfers.wdSetInvocationModifier(new IWDWSInvocationModifier() {
public void doModifyInvocation(Object port) {
HTTPControlInterface httpItf = HTTPControlFactory.getInterface(port);
httpItf.setSocketTimeout(180000);
}
public void doModifyAfterInvocation(){}
});
Regards,
Douglas Frankenberger
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.