The SmartTarget Deployment Web Service provides SDL Tridion access to Fredhopper Access Server when installed on a different machine than Content Delivery. The Web service receives content from Content Delivery and puts the content in Fredhopper.
Before you begin
Install the SmartTarget Deployment Web service on a Java Web application server supported by Content Delivery (IIS is not supported). For more information, see Content Delivery prerequisites.
The SmartTarget Deployment Web service supports the same versions of the Java Virtual Machine as the Fredhopper Access Server.
Procedure
- Access the machine where you installed Fredhopper Access Server.
- Access the SmartTarget installation media.
- Access the SmartTarget Deployment Web Service folder and deploy one of the following WAR files in your Web application server, depending on whether the Web container in which you are deploying the Web service is J2EE-compliant or not:
- \J2EE\SmartTargetDeploymentWebService.war
- \nonJ2EE\SmartTargetDeploymentWebService.war
- Verify the Web service is working by opening a browser and entering:
http://localhost:8080/SmartTargetDeploymentWebService
If you are accessing the Web service from a different machine replace localhost with the domain name of the machine you are running the Web service on.
- Configure the SmartTarget Deployment Web Service:
- Navigate to the WEB_INF/classes subdirectory of your Web application.
- Open the SmartTargetDeploymentWebService_conf.xml configuration file in a text editor.
- Change the
<location> to:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Fredhopper>
<Location>BASE_DIRECTORY/INDEXER/data/fas-xml-incremental/CATALOG01</Location>
</Fredhopper>
</Configuration>
- Save and close the file.
- Configure logging for the SmartTarget Deployment Web Service:
- Navigate to the classes subdirectory of your Web application.
- Open the logback.xml configuration file in a text editor.
- Change the value of the logging folder, for example:
<property name="log.folder" value="<BASE_DIRECTORY>/data/instances<INDEXER>/log"/>
- Save and close the file.
- Optional: Set up authentication:
- Set up username/password based authentication for the Web service in your servlet container.
- Open the
smarttarget_conf.xml configuration file in a text editor and specify the username and password in the <IndexServer> element.
- Configure SmartTarget on Content Delivery to point to the SmartTarget Deployment Web Service:
- Open the
smarttarget_conf.xml configuration file, by default located in your %TRIDION_HOME%\config directory, in a text editor.
- Change the
<Location> element to point to the SmartTarget Deployment Web Service:
<Location>http://Machine:8080/SmartTargetDeploymentWebService/SmartTargetDeploymentWebService?wsdl</Location>
- Save and close the file.