Issue: 
Consuming a web service and the data being returned is taking longer than the default limit in Domino of 60 seconds.  
How to increase limit to the data service provider? 
 
Solution: 
According to IBM docs, this is done in the JVM service call. 
Add the line Call Service.setTimeout() with the number of milliseconds to wait.  
e.g. Call Service.setTimeout(4 * 60 * 1000) 
 
Example: 
 
Class WSProviderNmSoap As PortTypeBase 
	 
	Sub NEW 
		Call Service.Initialize ("HttpWwwTempuriOrgWSProviderNm", _ 
		"WSProviderNm.WSProviderNmSoap", "http://www.domain.ext/WS/WSProviderNm.asmx", _ 
		"WSProviderNmSoap_n0") 
		Call Service.setTimeout(240000) 
	End Sub 
	 
	Function GetDetailedTrackingByIMEI(MyToken As XSD_STRING, TrackID As XSD_STRING, _ 
	StartDate As XSD_STRING, EndDate As XSD_STRING) As XSD_STRING 
		Set GetDetailedTrackingByIMEI = Service.Invoke("GetDetailedTrackingByIMEI", MyToken, TrackID, StartDate, EndDate) 
	End Function 
	 
 End Class
  
previous page
 
  |