Cert++
Close

Service, service profile and service credential configuration roles

Key Takeaway

The service credential stores the URL, username and password. The service profile stores the timeout, rate limit and circuit breaker settings. The service configuration links a credential and a profile and is the name your code uses.

B2C Commerce has a web service framework that manages calls to third-party web services. The framework enforces the call limits you set and collects analytics on those calls. Each web service needs three configurations in Business Manager, each with its own job. The service credential is the address and login for the remote system. The service profile is a shared policy for how calls behave. The service configuration is the hub that ties the two together, and your code uses its name to create the service.

The service configuration

The service configuration specifies which credential and which profile B2C Commerce uses when it calls the web service. Each service configuration generates a ServiceConfig object.

Besides the credential and the profile, the service configuration holds these settings:

  • The service name
  • The service type
  • The "Enabled" checkbox
  • The "Service Mode", which is Live or Mocked
  • The log file prefix
  • The communication log settings

The service type determines the underlying class used to make the call. Each service type also adds methods to the ones inherited from the Service class.

Service typeUnderlying class
HTTPdw.net.HTTPClient
HTTP Formdw.net.HTTPClient
FTPdw.net.FTPClient
SFTPdw.net.SFTPClient
SOAPdw.ws.webReference2
GenericDoesn't wrap any class; used for custom calls

For service names, Salesforce recommends the pattern {cartridge}.{protocol}.{service}.{operation}, for example mycartridge.http.payment.get. Including the cartridge in the name groups logging information. The cartridge also keeps service names unique when you have several integrations.

B2C Commerce Developer Study Guide

Checklist progress

0/237Learned

Given a service configuration, recognize how they are applicable to the development process

0/5

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other B2C Commerce Developer studiers.