4.4 Event Subscription Example
This section provides an example of a subscription message.
-
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <s:Header> <wsa:To>http://RAVIBPERF59D.MIG.NET:80/wsman</wsa:To> <wsman:ResourceURI s:mustUnderstand="true"> http://schemas.microsoft.com/wbem/wsman/1/windows/EventLog </wsman:ResourceURI> <wsa:ReplyTo> <wsa:Address s:mustUnderstand="true"> http://schemas.xmlsoap.org/ ws/2004/08/addressing/role/anonymous </wsa:Address> </wsa:ReplyTo> <wsa:Action s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe </wsa:Action> <wsman:MaxEnvelopeSize s:mustUnderstand="true"> 153600 </wsman:MaxEnvelopeSize> <wsa:MessageID> uuid:5E7FE85C-6A5B-4033-A94D-B892A7C528EB </wsa:MessageID> <wsman:Locale xml:lang="en-US" s:mustUnderstand="false" /> <wsman:OptionSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <wsman:Option Name="Compression">SLDC</wsman:Option> <wsman:Option Name="CDATA" xsi:nil="true"/> <wsman:Option Name="ContentFormat">RenderedText</wsman:Option> <wsman:Option Name="IgnoreChannelError" xsi:nil="true"/> </wsman:OptionSet> </s:Header> <s:Body> <wse:Subscribe=""> <wse:EndTo> <wsa:Address> HTTP://RAVIBPERF90D.MIG.NET:80/wsman/ subscriptions/07C41EF8-1EE6-4519-86C5-47A78FB16DEC </wsa:Address> <wsa:ReferenceProperties> <wse:Identifier> 430055A3-8146-49AA-A5C1-D87DC542AB0C </wse:Identifier> </wsa:ReferenceProperties> </wse:EndTo> <wse:Delivery="" Mode="http://schemas.dmtf.org/wbem/wsman/1/wsman/Events"> <wsman:Heartbeats>PT3600.000S</wsman:Heartbeats> <wse:NotifyTo> <wsa:Address> HTTP://RAVIBPERF90D.MIG.NET:80/wsman/ subscriptions/07C4 1EF8-1EE6-4519-86C5-47A78FB16DEC </wsa:Address> <wsa:ReferenceProperties> <wse:Identifier=""> 430055A3-8146-49AA-A5C1-D87DC542AB0C </wse:Identifier> </wsa:ReferenceProperties> </wse:NotifyTo> <wsman:MaxElements>20</wsman:MaxElements> <wsman:MaxTime>PT30.000S</wsman:MaxTime> <wsman:MaxEnvelopeSize Policy="Notify"> 153600 </wsman:MaxEnvelopeSize> <wsman:Locale xml:lang="en-US"/> <wsman:ContentEncoding=""> UTF-8 </wsman:ContentEncoding> </wse:Delivery> <wse:Expires>PT3960732748.184S</wse:Expires> <wsman:Filter> <QueryList> <Query Id="0"> <Select Path="Application">*</Select> </Query> </QueryList> </wsman:Filter>] <wsman:SendBookmarks/> </wse:Subscribe> </s:Body> </s:Envelope>