The RecommendContent Web service performs a content targeting operation, taking a slot or targeter path as input and returning n content items, where n is the value of the given howMany parameter. The content is returned in XML form as an array of Repo2Xml items. A value of -1 for the howMany parameter indicates that there is no limit to the number of returned results.

If called in the context of an HTTP request, this service can resolve both request- and session-scoped targeter and slot components. If no HTTP request is present, the service can resolve only globally-scoped components.

EAR file

userprofilingWebServices.ear

WAR file

usersession.war

Context root

userprofiling/usersession

Servlet

recommendContent

Web Service URL

http://hostname:port/userprofiling/usersession/
recommendContent

WSDL URL

http://hostname:port/userprofiling/usersession/
recommendContent?WSDL

Web Service Class

webservice.ExecuteRepositoryTargeterSEIImpl

Input Parameters

String PathToSlotOrTargeter. Represents the Nucleus component path of the targeter or slot to execute.

int StartingIndex. Represents the 0-based index at which to start when returning values. For example, passing in “3” here returns an array of items starting with the fourth item that is returned from the targeting operation (in other words, the first three items are skipped).

int HowMany. Indicates how many items should be returned in total from this targeter. If this value is -1, all items are returned, starting from the StartingIndex value.

Output

String[] ContentAsXML

Nucleus Component

/atg/targeting/TargetingServices (class atg.targeting.TargetingServices)

Method

executeRepositoryTargeter (String pPathToSlotOrTargeter, int pStartingIndex, int pHowMany)

Executes within a session

Yes

Security FunctionalName

targetingOperation


Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices