Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Absent Member.. DefiasOne Absent Member..
Absent Member..
263 views

External web service call timed out.

Jump to solution

Hello,

I am calling an extarnal webservice from HPSM which sometimes works and somtimes it doesn't. I've narrowed it down to it being a problem with how long the web service takes to response. It would seem by default HPSM is capped at a wait time of 10-15 seconds before cutting the connection.

I would like to increase this value but I haven't found any way to do this.

Sample of my call function.

 

function GetConnectionString(idTransport)
{
var service = new system.library.SM2GISService.SM2GISService();
var request = new system.library.SM2GISService.GetStyledConnectionString();

request.idTransport.setValue(idTransport);
//request.username.setValue(userName);

var response = service.invoke(request);

if (response.isFault())
	{
		throw("SOAP Fault:" + response.faultstring.getValue());
	}
	
var conString = response.GetStyledConnectionStringResult.getValue();

//print(conString.ReturnMessage.getValue());

return conString;
}

Has anyone had a similar issue ? How can i increase the wait time for a response to avoid this timeout issue ?

 

Thank you in advance.

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Re: External web service call timed out.

Jump to solution

In the ScriptLibrary for SM2GISService you should find in the definition of the service lines like these:

this.connectTimeOut = 10;

this.sendTimeOut = 10;

this.recvTimeOut = 10;

Those are the default timeouts in seconds.  You can increase them as needed.  Note that if this Web Service is issued from the workflow of a client session setting a high value may cause the client session to timeout.  ( high being several minutes )

 

View solution in original post

1 Reply
Micro Focus Expert
Micro Focus Expert

Re: External web service call timed out.

Jump to solution

In the ScriptLibrary for SM2GISService you should find in the definition of the service lines like these:

this.connectTimeOut = 10;

this.sendTimeOut = 10;

this.recvTimeOut = 10;

Those are the default timeouts in seconds.  You can increase them as needed.  Note that if this Web Service is issued from the workflow of a client session setting a high value may cause the client session to timeout.  ( high being several minutes )

 

View solution in original post

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.