Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reg:Normal Webservice call TIME OUT(SocketTimedOut Exception)

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

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question