I would like to offer an example of a MUWS notification message that
could be included with documentation of Muse when it is created. At a
minimum I recommend including examples such as this with the
distribution to help developers see what messages will look like. Over
time I will create examples of other MUWS notification messages.

Bryan Murray

<!-- RelationshipCreatedNotification

Namespace prefixes are not significant. All addresses and reference properties
need to be based upon the actual EPRs for resource, subscription, and consumer.
Whitespace has been added to this example to better show the various elements
of the message. An actual notification message should collapse all whitespace to
the minimum required by XML. No comments should be included in an actual
notification message.

This message is sent to the URL: http://example.org/applications/notificationConsumer.
It must include an HTTP SOAPAction header with a value of: 
  http://docs.oasis-open.org/wsn/2004/06/WS-BaseNotification/Notify
-->
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";
    xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing";>
  <s:Header>
    <wsa:To s:mustUnderstand="1">http://example.org/applications/notificationConsumer</wsa:To>
    <wsa:Action>http://docs.oasis-open.org/wsn/2004/06/WS-BaseNotification/Notify</wsa:Action>
    <!-- There could be element(s) from the ReferenceProperties of an EPR here too. -->
  </s:Header>
  <s:Body>
    <!-- This notification is formatted as if the subscribe request was sent with UseNotify='true'. -->
    <baseN:Notify xmlns:baseN="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd";>
      <baseN:NotificationMessage>
        <baseN:SubscriptionReference>
          <wsa:Address>http://example.org/subscriptions</wsa:Address>
          <wsa:ReferenceProperties>
            <ex:city xmlns:ex="http://example.org/definitions/commonTypes.xsd";>Alexandria</ex:city>
          </wsa:ReferenceProperties>
        </baseN:SubscriptionReference>
        <baseN:Topic Dialect="http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Concrete";
            xmlns:me="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2-events.xml";>
          me:RelationshipsCapability/RelationshipCreated
        </baseN:Topic>
        <baseN:ProducerReference>
          <wsa:Address>http://example.org/resources/someResourceType</wsa:Address>
          <wsa:ReferenceProperties>
            <x:Color xmlns:x="http://example.org/definitions/commonTypes.xsd";>Blue</x:Color>
          </wsa:ReferenceProperties>
        </baseN:ProducerReference>
        <baseN:Message>

          <m1:ManagementEvent ReportTime="2005-04-01T12:01:33.481Z"
              xmlns:m1="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd";
              xmlns:m2="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";
              xmlns:wsax="http://schemas.xmlsoap.org/ws/2004/08/addressing";>
            <!-- Some people use urn:uuid:... - which may actually be more correct. -->
            <m1:EventId>uuid:a5d27b2f-bb39-108a-a917-a855cb4d81d4</m1:EventId>
            <m1:SourceComponent>
              <m1:ResourceId>uuid:c2391d02-b189-2f8a-1a6e-1a2fcba7811b</m1:ResourceId>
              <m1:ComponentAddress>
                <m1:ManageabilityEndpointReference>
                  <wsax:Address>http://example.org/resources/someResourceType</wsax:Address>
                  <wsax:ReferenceProperties>
                    <x:Color xmlns:x="http://example.org/definitions/commonTypes.xsd";>Blue</x:Color>
                  </wsax:ReferenceProperties>
                </m1:ManageabilityEndpointReference>
              </m1:ComponentAddress>
            </m1:SourceComponent>

            <m2:Situation>
              <!-- Some optional elements have been omitted. -->
              <m2:SituationCategory>
                <m2:OtherSituation/>
              </m2:SituationCategory>
              <m2:SuccessDisposition>Successful</m2:SuccessDisposition> <!-- Recommendation: omit this element -->
              <m2:SituationTime>2005-04-01T12:01:33.115Z</m2:SituationTime>
              <m2:Message xml:lang="en">
                New relationship added.
              </m2:Message> <!-- Recommendation: omit this element -->
            </m2:Situtation>

            <m2:RelationshipCreatedNotification>
              <m2:Relationship>
                <!-- Some optional elements have been omitted. -->
                <m2:Type>
                  <ex:subComponent xmlns:ex="http://example.org/definitions/commonTypes.xsd";>
                    <i:contains xmlns:i="http://someIndustry.org/definitions/relationshipTypes";>
                      <i:depends/>
                    </i:contains>
                  </ex:subComponent>
                </m2:Type>
                <m2:Participant>
                  <m1:ManageabilityEndpointReference>
                    <wsax:Address>http://example.org/resources/someResourceType</wsax:Address>
                    <wsax:ReferenceProperties>
                      <x:Color xmlns:x="http://example.org/definitions/commonTypes.xsd";>Blue</x:Color>
                    </wsax:ReferenceProperties>
                  </m1:ManageabilityEndpointReference>
                  <m1:ResourceId>uuid:c2391d02-b189-2f8a-1a6e-1a2fcba7811b</m1:ResourceId>
                  <m2:Role>http://someIndustry.org/definitions/relationshipTypes/containedEntity</m2:Role>
                </m2:Participant>
                <m2:Participant>
                  <m1:ManageabilityEndpointReference>
                    <wsax:Address>http://other.org/myServices/serviceMessageReceiver</wsax:Address>
                    <wsax:ReferenceProperties>
                      <x:Fruit xmlns:x="http://other.org/myServices/spiffyNames";>Pear</x:Fruit>
                    </wsax:ReferenceProperties>
                  </m1:ManageabilityEndpointReference>
                  <m1:ResourceId>uuid:353d4dcc-3980-ac8d-7163-def622a781c7</m1:ResourceId>
                  <m2:Role>http://someIndustry.org/definitions/relationshipTypes/container</m2:Role>
                </m2:Participant>
              </m2:Relationship>
            </m2:RelationshipCreatedNotification>
          </m1:ManagementEvent>

        </baseN:Message>
      </baseN:NotificationMessage>
    </baseN:Notify>
  </s:Body>
</s:Envelope>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to