dw.rpc.WebReference
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.
To create an instance of a WebReference object, in a B2C Commerce Script file, reference a WSDL file in the webreferences
directory and request the service Stub using one of the get service methods.
For example, if your WSDL file is MyWSDL.wsdl,
to create an instance of WebReference and access the Stub:
var webref : WebReference = webreferences.MyWSDL;
var stub : Stub = webref.getDefaultService();
Note: script classes representing your WSDL file are are generated by the platform and then placed in the WebReferences
package. You do not need to include the importPackage
statement in your B2C Commerce Script file to use classes in the WebReferences package.collectionType=indexed may be helpful. Setting this in the property file for the WSDL will make the generated API more closely resemble the API generated by webreferences.