Optimize 10.5 | webMethods Optimize Documentation | Administering webMethods Optimize | For Developers | Configuring and Using the Web Service Data Collector | Sending Event and Dimensional Data | addEventWithCallback
 
addEventWithCallback
The addEventWithCallback method sends a single event and supports Web service callbacks.
Input Parameters (all parameters are required unless specified as optional)
The following table describes the input parameters.
event
Document Container for the list of event attributes.
attributes
Document List Container for the event attribute information.
Parameter
Value
name
String Attribute name (such as Revenue).
value
String or key/value Attribute value (such as 500).
eventType
String Type of the event (such as OrderProcess).
time
String Time to associate with the eventType. The time zone parameter of the date must be set to "GMT" in Designer. For input from Integration Server or Designer, the time must be in the following format:
yyyy-MM-dd’T’HH:mm:ss.SSS’Z’
yyyy-MM-dd’T’HH:mm:ss.SSSZ
yyyy-MM-dd’T’HH:mm:ss.SSS
yyyy-MM-dd HH:mm:ss.SSS
Note:
If left blank, this field defaults to the current data and time.
callbackEndpoint
String (Optional) Location of the Web service published using the EventCallback.wsdlWSDL located in the Optimize_directory/dataCollector/conf/glue/wsdl directory. Use the following format:
http://{host}:{port}/{path}/{serviceName}.wsdl
If the value is null, the event will be processed but the callback will not be issued.
timeoutMS
Int (Optional) Overrides the Analytic Engine's configured default event processing timeout value (currently set to 100000 milliseconds). Value must be greater than the Analytic Engine's configured default to override.
correlationId
String (Optional) Unique identifier generated by the client sent back to the Web service during the callback operation. If value is null, the event will be processed but callback will not be issued.
notifyOnFailureOnly
Boolean (Optional) If true, Web service calls are issued only when a failure occurs.
auth
Not used.
_port
Not used.