[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [wsn] WSN-Policy allocations reminder
Notification consumers might only be interested in a portion of the notification message. In many cases, this is handled at the consumer's side, by simply discarding the unwanted information. But in some cases (for example if the notification messages are very large and only a small subset is of interest to the consumer), it is advantageous to have the transformation take place on the notification producer's side.
For this purpose, we define a "NotificationTransformPolicy" policy element to advertise the fact that the notification producer provides the ability to transform the message before sending it.
Options
The "NotificationTransformPolicy" element has the following pseudo-schema:
<NotificationTransformPolicy ...>
<SupportedDialect>xs:anyURI<SupportedDialect> +
<xs:any/> *
</NotificationTransformPolicy>
The "SupportedDialect" element contains a URI describing a dialect supported by the notification producer for transformation. The following dialect, "http://www.w3.org/TR/1999/REC-xpath-19991116", represent use of XPath 1.0. Other dialects can be supported.
Let's assume that the following message is an example notification message:
<s:envelope>
<!-- headers -->
<s:body>
<foo>
<bar1>bar1value</bar1>
<bar2>bar2value</bar2>
</foo>
</s:body>
</s:envelope>
If the subscribe message had included the following header and if this header was accepted by the notification producer:
<NotificationTransform dialect="http://www.w3.org/TR/1999/REC-xpath-19991116">/foo/bar2</NotificationTransform>
Then the notification message would instead be:
<s:envelope>
<!-- headers -->
<s:body>
<TransformedNotification>
<bar2>bar2value</bar2>
</TransformedNotification>
</s:body>
</s:envelope>
The notifification producer can advertise the following policy element to communicate the fact that it supports this feature:
<NotificationTransformPolicy>
<SupportedDialect>http://www.w3.org/TR/1999/REC-xpath-19991116<SupportedDialect>
</NotificationTransformPolicy>
Regards,
William
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]