|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (53)
View Page HistoryBasic WS-Notification usecases consist on sending "notification" requests - Subscribe, Unsubscribe, RegisterPublisher, DestroyRegistration or Notify requests - to the petals-se-notification component from other components that acts as Notification consumer or Notification Producer. Two components named petals-se-Wsnconsumer and petals-se-WsnProducer are available on Petals website under the [Download/tool section|http://petals.ow2.org/download-tools.html]
{note}Note : these two components are only "template component" and can help you to implement your own ones.{note}
You can test Petals ESB WS-Notification features using the webconsole test section or you can deploy and start petals-se-Wsn Producer/Consumer components that will automatically process Notification Requests("Subscribe" and "RegisterPublisher requests on start;"Notify" request each 30 seconds) when their services assemblies are deployed and started.
h3. using petals-se-Wsn{Producer/Consumer} componentsInstalling petals-se-Wsn {Producer/Consumer} components and their service assemblies will automatically launch usecases. No interactions are needed. On Service assembly start, the petals-se-WsnProducer sends a RegisterPublisher request to the petals-se-notification and the petals-se-WsnConsumer do the same by sending a "Subscribe" request to the petals-se-notification component. Its Subscribe request is then forwarded to the petals-se-WsnProducer as soon as the petals-se-WsnProducer is registered.
name="WS-BrokeredNotification" targetNamespace="http://petals.ow2.org/petals-se-notification">
<\!-\- ================================================== \-->
<\!-\- ================== imports ======================= \-->
<\!-\- ================================================== \-->
<wsdl:import location="brw-2.wsdl"
namespace="http://docs.oasis-open.org/wsn/brw-2" />
<wsdl:import location="bw-2.wsdl" namespace="http://docs.oasis-open.org/wsn/bw-2" />
namespace="http://docs.oasis-open.org/wsn/brw-2" />
<wsdl:import location="bw-2.wsdl" namespace="http://docs.oasis-open.org/wsn/bw-2" />
<\!-\- ========================================================= \-->
<\!-\- ========= Extended or Custom Types Definitions ========== \-->
<\!-\- \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\~ \-->
<\!-\- this section describes some custom types used in child \-->
<\!-\- nodes where allowed element type - see associated \-->
<\!-\- XML schema - is "anyType". For example "QueryExpressionType" \-->
<\!-\- defined in the "b-2.xsd" XML schema file - which is a part of \-->
<\!-\- "WS-BaseNotification" specification - allowed "anyType" child \-->
<\!-\- node. In this specific case a simple "string" child node \-->
<\!-\- called "xpath" is used. Of course, this choice is not \-->
<\!-\- restrictive and "any other type" child node can still be used instead \-->
<\!-\- \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\~ \-->
<\!-\- ========================================================= \-->
</wsdl:types>
<\!-\- ================================================== \-->
<\!-\- ========= Message part definition ================ \-->
<\!-\- ================================================== \-->
<wsdl:message name="EmptyMessage"/>
<wsdl:message name="EmptyMessage"/>
</wsdl:message>
<\!-\- =============================================== \-->
<\!-\- ========= PortType definition ================ \-->
<\!-\- =============================================== \-->
<wsdl:portType name="SupportedTopicsSet">
<wsdl:portType name="SupportedTopicsSet">
</wsdl:portType>
<\!-\- ============================================= \-->
<\!-\- ========== Binding definition =============== \-->
<\!-\- ============================================= \-->
<\!-\- NotificationBroker binding definition \-->
<wsdl:binding name="NotificationBrokerBinding" type="wsn-brw:NotificationBroker">
<soap:binding style="document"
<soap:binding style="document"
<wsdl:operation>
</wsdl:binding>
</wsdl:binding>
<\!-\- PublisherRegistrationManager binding definition \-->
<wsdl:binding name="PublisherRegistrationManagerBinding"
type="wsn-brw:PublisherRegistrationManager">
type="wsn-brw:PublisherRegistrationManager">
</wsdl:operation>
</wsdl:binding>
</wsdl:binding>
<\!-\- SubscriptionManager binding definition \-->
<wsdl:binding name="SubscriptionManagerBinding" type="wsn-bw:SubscriptionManager">
<soap:binding style="document"
<soap:binding style="document"
</wsdl:binding>
<\!\-- SupportedTopicsSet portType Service binding definition \-->
<wsdl:binding name="SupportedTopicsSetBinding"
type="tns:SupportedTopicsSet">
type="tns:SupportedTopicsSet">
<\!-\- ============================================= \--v
<\!-\- =========== Service part definition ========= \-->
<\!-\- ============================================= \-->
<wsdl:service name="NotificationBrokerService">
<wsdl:port name="NotificationBrokerServiceEndpoint" binding="tns:NotificationBrokerBinding">
<wsdl:port name="NotificationBrokerServiceEndpoint" binding="tns:NotificationBrokerBinding">
</wsdl:port>
</wsdl:service>
</wsdl:service>
</wsdl:definitions></screen></para>
</section>
<section id="filet-request-templates">
<title>Ws-Notification requests templates</title>
<para>Subscribe Request Payload template : <screen><wsnt:Subscribe
</section>
<section id="filet-request-templates">
<title>Ws-Notification requests templates</title>
<para>Subscribe Request Payload template : <screen><wsnt:Subscribe
</wsdl:definitions>{code}
h2. Ws-Notification requests templates
Subscribe Request Payload template :
{code}<wsnt:Subscribe
h2. Ws-Notification requests templates
Subscribe Request Payload template :
{code}<wsnt:Subscribe
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
<wsnt:InitialTerminationTime>PT1H</wsnt:InitialTerminationTime>
<wsnt:SubscriptionPolicy/>
<wsnt:SubscriptionPolicy/>
</wsnt:Subscribe></screen></para>
<para>Unsubscribe Request Payload template : <screen><wsnt:Unsubscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
</wsnt:Subscribe>{code}
Unsubscribe Request Payload template :
{code}<wsnt:Unsubscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
Unsubscribe Request Payload template :
{code}<wsnt:Unsubscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:ebm="http://www.ebmwebsourcing.com/wsnotification/specificTypes"
xmlns:ebm="http://www.ebmwebsourcing.com/wsnotification/specificTypes"
<ebm:Uuid>\[Copy_and_Paste_Uuid_value_returned_in_SubscribeResponse\]</ebm:Uuid>
</ebm:ResourceUuidList>
</ebm:ResourceUuidList>
</wsnt:Unsubscribe></screen></para> </wsnt:Unsubscribe>{code}
<para>RegisterPublisher Request Payload template : <screen><wsn-br:RegisterPublisher
RegisterPublisher Request Payload template :
{code}<wsn-br:RegisterPublisher
{code}<wsn-br:RegisterPublisher
xmlns:wsn-br="http://docs.oasis-open.org/wsn/br-2"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
<wsn-br:Demand>true</wsn-br:Demand>
<wsn-br:InitialTerminationTime>2009-12-25T00:00:00.00000Z</wsn-br:InitialTerminationTime>
<wsn-br:InitialTerminationTime>2009-12-25T00:00:00.00000Z</wsn-br:InitialTerminationTime>
</wsn-br:RegisterPublisher></screen></para> </wsn-br:RegisterPublisher>{code}
<para>DestroyRegistration Request Payload template : <screen><wsn-br:DestroyRegistration
DestroyRegistration Request Payload template :
{code}<wsn-br:DestroyRegistration
{code}<wsn-br:DestroyRegistration
xmlns:wsn-br="http://docs.oasis-open.org/wsn/br-2"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
<ebm:Uuid>\[Copy_and_Paste_Uuid_value_returned_in_RegisterPublisherResponse\]</ebm:Uuid>
</ebm:ResourceUuidList>
</ebm:ResourceUuidList>
</wsn-br:DestroyRegistration></screen></para> </wsn-br:DestroyRegistration>{code}
<para>Notify Request Payload template : <screen><wsnt:Notify xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
Notify Request Payload template :
{code}<wsnt:Notify xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
{code}<wsnt:Notify xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:ebm="http://www.ebmwebsourcing.com/wsnotification/specificTypes"
xmlns:ebm="http://www.ebmwebsourcing.com/wsnotification/specificTypes"
</wsnt:Message>
</wsnt:NotificationMessage>
</wsnt:NotificationMessage>
</wsnt:Notify></screen></para> </wsnt:Notify>{code}
</section>
</chapter>
</chapter>
</book>
{column}
{column:width=350px}
{column:width=350px}
{panel:title=Contributors}{contributors:order=name|mode=list}{panel}
{column}
{column}
{section}h3.