Skip to main content
Glama

SFCC Development MCP Server

by taurgis
WebReference.md2.77 kB
## Package: dw.rpc # Class WebReference ## Inheritance Hierarchy - Object - dw.rpc.WebReference ## Description Represents a web service defined in a WSDL file. The implementation is backed by a JAX-RPC framework. You should use the newer dw.ws package and WebReference2 class instead, which is based on JAX-WS. 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. ## Properties ### defaultService **Type:** Stub (Read Only) The default service of the WebReference object. If you have more than one service defined in your WSDL, the default service is the first service alphabetically. If the service has multiple ports defined, the default service uses the SOAP port name that is first alphabetically. ## Constructor Summary WebReference() ## Method Summary ### getDefaultService **Signature:** `getDefaultService() : Stub` Returns the default service of the WebReference object. ### getService **Signature:** `getService(service : String, port : String) : Stub` Returns a specific service from this WebReference. ## Constructor Detail ## Method Detail ## Method Details ### getDefaultService **Signature:** `getDefaultService() : Stub` **Description:** Returns the default service of the WebReference object. If you have more than one service defined in your WSDL, the default service is the first service alphabetically. If the service has multiple ports defined, the default service uses the SOAP port name that is first alphabetically. **Deprecated:** use webreferences2 instead **Returns:** the default service of the WebReference object. --- ### getService **Signature:** `getService(service : String, port : String) : Stub` **Description:** Returns a specific service from this WebReference. **Deprecated:** use webreferences2 instead **Parameters:** - `service`: the service to locate. - `port`: the port name to use. var port = webref.getService("SampleServiceName","SamplePortName"); **Returns:** a specific service from this WebReference. ---

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/taurgis/sfcc-dev-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server