cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:Normal Webservice call TIME OUT(SocketTimedOut Exception)

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

As you suggestion for Adaptive Webservice, wdSetInvocationModifier method is used to set Request.

when i try the same i am not getting the method(for Normal WebService). should this added as a parameter to request from webservice provider.?

Please suggest me.

Thanks

-


Nagaraju

Former Member
0 Kudos

Hi All,

I am using a File Upload UI Element and able to get the content of the Excel file properly.

But we need to validate the Excel file using the "Custom properties".

Can you please help me to access the "Custom Properties" of the uplaoded file.

Thanks

-


Nagaraju

Answers (0)