Feature Pack 6

Enabling preview support for RESTful applications

If you are using REST services and customizing a service client to preview content, you must modify the wc-server.xml configuration file to enable <ServicesPreview>. Enabling services preview allows your service client to connect to the WebSphere Commerce server to process BOD and REST service requests and responses with a preview token.

Enabling services preview also enables preview token generation requests to be processed; otherwise, the following error message will be returned from REST:
Services preview support is not enabled.

About this task

Preview support for RESTful applications is enabled by default in Feature Pack 7 and 8. Complete this task if you are using Feature Pack 6, or have previously disabled this feature within the WebSphere Commerce configuration file.

Procedure

  1. Open the WebSphere Commerce configuration file
  2. Within the <InstanceProperties> tag, add the following code:
    <ServicesPreview enable="true"/>
  3. WebSphere Commerce Developer Republish the WebSphere Commerce application.
  4. SolarisLinuxWindowsAIXFor IBM i OS operating system Propagate the changes to the WebSphere Commerce configuration file.