cancel
Showing results for 
Search instead for 
Did you mean: 

How to Sleep Web Service after Web Service Call

Former Member
0 Kudos

Hi Experts,

I'm Developing a View.In that i Called a Web Service and Response of that Web Service is coming nearly after 2 Minutes.But our WebDynpro (Java) Application is waiting 1 Minute for Web Service Response and after that it is giving

Error Message of " Read Timed Out ".

So Can any one Help me how to Sleep a Web Service after Web Service Call Until the Response of the Web Service Coming.

With Regards,

RooP KumaR.

Accepted Solutions (1)

Accepted Solutions (1)

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Roop,

Check this SAP help [Here|http://help.sap.com/saphelp_nw04/helpdata/en/04/d2c60e78814516afe7811829f02725/content.htm]

Regards, Suresh KB

Former Member
0 Kudos

Hi Suresh,

Thanks for Your Reply. I watched the Link that You have sent. It guided that " settings can be configured in the Logical Port editor in the SAP NetWeaver Developer Studio ".

But i'm unable to found where Logical Port editor located in

NWDS 2004.Can you explain briefly where it is ?

Thanks In Advance.

With Regards,

RooP KumaR.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Roopkumar,

Use this code for ur problem

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);

}

});

regards

Sumit

Former Member
0 Kudos

Hi Sumit Malhotra,

Thanks for u r Reply.I'm Developing the Application using NWDS 2004 & can you Tell me where i have to Place these Lines of Code in my Application ?

Thanks In Advance.

With Regards,

RooP KumaR.

Former Member
0 Kudos

Hi Roopkumar,

In the code Request_SendEmail requestMO , should be replaced with ur webservice request model . u can use this code just before executing ur model .

regards

Sumit

Former Member
0 Kudos

Hi Sumit,

I'm Developing the Application in NWDS 2004 using " Import Web Service Model ". But i think you send the code for

NWDS 2004's using " Import Adaptive Web Service Model ".

Can you send me the code for NWDS 2004.

Thanks In Advance.

With Regards,

RooP KumaR.