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.
Services preview support is not enabled.
About this task
Procedure
- Open the WebSphere Commerce configuration file
-
Within the
<InstanceProperties>
tag, add the following code:<ServicesPreview enable="true"/>
- Republish the WebSphere Commerce application.
- Propagate the changes to the WebSphere Commerce configuration file.