SubscribeOp

This operation returns an enumeration context, which you can then use with the PullOp operation to get batches of new or updated incidents from the service. The service maintains an event queue of new or updated incidents. If an existing incident changes several times, the service adds the incident to the event queue several times (the service does not consolidate the events).

The value of the EventQueueSize parameter on the management server constrains the size of the event queue. (See Service Configuration.) To prevent the service from deleting events from the queue, you must pull batches of updated incidents at appropriate intervals. Consider using the following procedure to manage a subscription:

  1. Use the SubscribeOp operation to get an enumeration context.
  2. Immediately after SubscribeOp returns the enumeration context, start a PullOp operation. As soon as the event queue contains events, PullOp returns a batch of incidents.

    If the event queue remains empty for the specified OperationTimeout, PullOp returns a TimedOut fault.

  3. Immediately after the PullOp returns incidents or a fault, start another PullOp operation.

    This step ensures that you always have a PullOp running, which should prevent the event queue from becoming too large.

    Caution CAUTION:
    If you restart the HPOM Incident Web Service, the service releases any enumeration contexts. The service does not maintain an event queue of new or updated incidents until the client subscribes again. This situation can also arise if the management server is part of a cluster and a failover occurs.

Input

SOAP Body

Element wse:Subscribe of type wse:SubscribeType, which contains the following subelements:

SOAP Header

For an example, see Subscribe Request SOAP Envelope Example.

Output

The SOAP body contains an element wse:SubscribeResponse (of anonymous type), which contains the following subelements:

Fault

If it cannot return the enumeration context, the service returns a fault according to the WS-Management standard.