Service Types
When creating a web service configuration in Business Manager, you must select a service type. The type determines the underlying class used to call your web service and adds methods to those inherited from the Service class.
-
HTTP - uses
dw.net.HTTPClient
.Has additional methods to set authentication, encoding, output file, request method (defaults to POST), an HTTP header, and additional parameters for the URI.
The
parseResponse
method gives theHTTPClient
as its extra argument. -
HTTP Form - uses
dw.net.HTTPClient
.The createRequest method takes the parameters given to call() and construct a URL encoded form POST by default.
Has the same additional methods as the HTTP type, allowing you to set authentication, encoding, output file, request method (defaults to POST), an HTTP header, and additional parameters for the URI.
As with the HTTP type, the
parseResponse
method gives theHTTPClient
as its extra argument. -
FTP - uses
dw.net.FTPClient
.Has a
ThesetOperation(String, Object...)
method to set the operation to perform when executing the call to the web service. If thesetOperation
method isn't called, the execute callback defined in the web service registry is executed when the web service is called. The callback can define any number of operations to perform.parseResponse
method gives the output of the method call specified bysetOperation
, or whatever object was returned by the custom execute callback. -
SFTP - uses
dw.net.SFTPClient
. It is otherwise identical to theFTP
type. -
SOAP - uses
dw.ws.webReference2
.Requires additional methods to get the port
-
Generic - Does not wrap any class. Used to define custom calls.