Tema anterior: exportObjectTema siguiente: getAttachments


generateEvent

Utilice este método para publicar un evento.

Ejemplo

<tns:generateEvent xmlns:tns="http://www.ca.com/itpam">
<tns:auth>
<!--xsd:Choice Type-->
<tns:token>token__</tns:token>
<tns:user>Joe</tns:user>
<tns:password>thisismypassword</tns:password>
<tns:auth>
<tns:eventName>test</tns:eventName>
<tns:eventType>eventType__</tns:eventType>
<tns:eventSource>testsource</tns:eventSource>
<tns:eventDestination>testdestination</tns:eventDestination>
<tns:eventExpDuration>130</tns:eventExpDuration>
<!--xsd:Choice Type-->
<tns:payload>test</tns:payload>
<tns:params>
<tns:param name="name__">param__</tns:param>
</tns:params>
<tns:toSingleSubscriber>false</tns:toSingleSubscriber>
</tns:generateEvent>

Solicitud de SOAP

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<tns:generateEvent xmlns:tns="http://www.ca.com/itpam">
<tns:auth>
<tns:user>Joe</tns:user>
<tns:password>thisismypassword</tns:password>
<tns:auth>
<tns:eventName>test</tns:eventName>
<tns:eventType>eventType__</tns:eventType>
<tns:eventSource>testsource</tns:eventSource>
<tns:eventDestination>testdestination</tns:eventDestination>
<tns:eventExpDuration>130</tns:eventExpDuration>
<tns:payload>test</tns:payload>
<tns:params>
<tns:param name="name__">param__</tns:param>
</tns:params>
<tns:toSingleSubscriber>false</tns:toSingleSubscriber>
</tns:generateEvent>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

<eventName> identifica el nombre del evento (obligatorio).

<eventType> identifica el tipo de evento (opcional).

<eventSource> identifica la fuente del evento (opcional).

<eventDestination> identifica el destino del evento (opcional).

<eventExpDuration> identifica la duración del vencimiento del evento.

<payload> y <params> identifican datos adicionales del evento. Si es un solo valor, utilice payload; de lo contrario, utilice params.

<toSingleSubscriber> identifica si el evento se puede transmitir a uno o varios suscriptores.

Respuesta de SOAP

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<generateEventResponse xmlns="http://www.ca.com/itpam">
<event>
<eventId>b1a3c218-0a7d-4667-9b7c-9eeddcbc7408</eventId>
<eventName>prueba</eventName>
<eventType>eventType__</eventType>
<eventSource>testsource</eventSource>
<eventDestination>testdestination</eventDestination>
<payload>prueba</payload>
<toSingleSubscriber>false</toSingleSubscriber>
<eventCreationTime>2012-03-01T14:05:14.692+05:30</eventCreationTime>
<eventExpirationTime>2012-03-01T14:07:24.692+05:30</eventExpirationTime>
<user>pamadmin</user>
</event>
</generateEventResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>