Demandware recommends a low timeout to ensure responsiveness of the site and to avoid thread exhaustion. Use the Services module in Business Manager to set timeout values, not the methods for this class. The Services module provides better analytics and timeout management.
The default timeout, if not set, is 15 minutes when the web service is used in a job,
and 2 minutes otherwise. If the timeout of the calling script is lower,
the script timeout is used.
// get WebReference
var webref : WebReference = webreferences.myWSDLname;
// get service stub
var stub : Stub = webref.defaultService;
Note: this method handles sensitive security-related data. Pay special attention to PCI DSS v3. requirements 2, 4, and 12.
Note: the _setProperty
method may not
perform a validity check on a configured property value. An
example is the standard property for the target service
endpoint address, which is not checked for validity in the
_setProperty
method.
In this case, stub configuration errors are detected at
the remote method invocation.
Note: this method handles sensitive security-related data. Pay special attention to PCI DSS v3. requirements 2, 4, and 12.
Note: this method handles sensitive security-related data. Pay special attention to PCI DSS v3. requirements 2, 4, and 12.
This timeout value controls "read timeout" (how long, after connecting, it will wait without any data being read). To control "connection timeout" you use the _setProperty(String, Object) method where the name parameter is CONNECTION_TIMEOUT.