Petals-SE-Notification

compared with
Version 7 by Thierry Dejean
on Jul 09, 2010 16:56.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (44)

View Page History
{section}
[petals-se-notification wsdl|^component.wsdl] {column}
{column}

h1. Abstract



{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.
h3. using petals-se-WsnProducer, petals-se-WsnConsumer components

Installing petals-se-WsnProducer and petals-se-WsnConsumer 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.
To run the usecase you must :

    name="WS-BrokeredNotification" targetNamespace="http://petals.ow2.org/petals-se-notification">

&nbsp;&nbsp; &nbsp; <\!-\- ================================================== \-->
&nbsp;&nbsp; &nbsp; <\!-\- ================== imports ======================= \-->
&nbsp;&nbsp; &nbsp; <\!-\- ================================================== \-->
&nbsp;&nbsp; &nbsp; <wsdl:import location="brw-2.wsdl"
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;namespace="http://docs.oasis-open.org/wsn/brw-2" />
&nbsp;&nbsp; &nbsp; <wsdl:import location="bw-2.wsdl" namespace="http://docs.oasis-open.org/wsn/bw-2" />
&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp; &nbsp; <\!-\- ========================================================= \-->
&nbsp;&nbsp; &nbsp; <\!-\- ========= Extended or Custom Types Definitions ========== \-->
&nbsp;&nbsp; &nbsp; <\!-\- \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\~ \-->
&nbsp;&nbsp; &nbsp; <\!-\- this section describes some custom types used in child \-->
&nbsp;&nbsp; &nbsp; <\!-\- nodes where allowed element type - see associated \-->
&nbsp;&nbsp; &nbsp; <\!-\- XML schema - is "anyType". For example "QueryExpressionType" \-->
&nbsp;&nbsp; &nbsp; <\!-\- defined in the "b-2.xsd" XML schema file - which is a part of \-->
&nbsp;&nbsp; &nbsp; <\!-\- "WS-BaseNotification" specification - allowed "anyType" child \-->
&nbsp;&nbsp; &nbsp; <\!-\- node. In this specific case a simple "string" child node&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \-->
&nbsp;&nbsp; &nbsp; <\!-\- called "xpath" is used. Of course, this choice is not \-->
&nbsp;&nbsp; &nbsp; <\!-\- restrictive and "any other type" child node can still be used instead \-->
&nbsp;&nbsp; &nbsp; <\!-\- \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\~ \-->
&nbsp;&nbsp; &nbsp; <\!-\- ========================================================= \-->
&nbsp; &nbsp;
&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp; </wsdl:types>
&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp; &nbsp; <\!-\- ================================================== \-->
&nbsp;&nbsp; &nbsp; <\!-\- ========= Message part definition ================ \-->
&nbsp;&nbsp; &nbsp; <\!-\- ================================================== \-->
&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp; &nbsp; <wsdl:message name="EmptyMessage"/>
&nbsp;&nbsp; &nbsp; </wsdl:message>

&nbsp;&nbsp; &nbsp; <\!-\- =============================================== \-->
&nbsp;&nbsp; &nbsp; <\!-\- =========&nbsp; PortType definition ================ \-->
&nbsp;&nbsp; &nbsp; <\!-\- =============================================== \-->
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp; &nbsp; <wsdl:portType name="SupportedTopicsSet">
&nbsp;&nbsp; &nbsp; </wsdl:portType>

&nbsp;&nbsp; &nbsp; <\!-\- ============================================= \-->
&nbsp;&nbsp; &nbsp; <\!-\- ========== Binding definition =============== \-->
&nbsp;&nbsp; &nbsp; <\!-\- ============================================= \-->
&nbsp;&nbsp; &nbsp; <\!-\- NotificationBroker binding definition \-->
&nbsp;&nbsp; &nbsp; <wsdl:binding name="NotificationBrokerBinding" type="wsn-brw:NotificationBroker">
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <soap:binding style="document"
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <wsdl:operation>
&nbsp;&nbsp; &nbsp; </wsdl:binding>
&nbsp;&nbsp; &nbsp; <\!-\- PublisherRegistrationManager binding definition \-->
&nbsp;&nbsp; &nbsp; <wsdl:binding name="PublisherRegistrationManagerBinding"
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;type="wsn-brw:PublisherRegistrationManager">
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; </wsdl:operation>
&nbsp;&nbsp; &nbsp; </wsdl:binding>
&nbsp;&nbsp; &nbsp; <\!-\- SubscriptionManager binding definition \-->
&nbsp;&nbsp; &nbsp; <wsdl:binding name="SubscriptionManagerBinding" type="wsn-bw:SubscriptionManager">
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <soap:binding style="document"
&nbsp;&nbsp; &nbsp; </wsdl:binding>

&nbsp;&nbsp; &nbsp; <\!\--&nbsp; SupportedTopicsSet portType Service binding definition \-->
&nbsp;&nbsp; &nbsp; <wsdl:binding name="SupportedTopicsSetBinding"
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;type="tns:SupportedTopicsSet">

&nbsp;&nbsp; &nbsp; <\!-\- ============================================= \--v
&nbsp;&nbsp; &nbsp; <\!-\- =========== Service part definition ========= \-->
&nbsp;&nbsp; &nbsp; <\!-\- ============================================= \-->
&nbsp;&nbsp; &nbsp; <wsdl:service name="NotificationBrokerService">
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <wsdl:port name="NotificationBrokerServiceEndpoint" binding="tns:NotificationBrokerBinding">

&nbsp;</wsdl:definitions>{code}

h2. Ws-Notification requests templates
&nbsp; Subscribe Request Payload template :

</wsnt:Subscribe>{code}

Unsubscribe Request Payload template :

&nbsp;</ebm:ResourceUuidList>
</wsnt:Unsubscribe>{code}

RegisterPublisher Request Payload template :

&nbsp;<wsn-br:InitialTerminationTime>2009-12-25T00:00:00.00000Z</wsn-br:InitialTerminationTime>
</wsn-br:RegisterPublisher>{code}

DestroyRegistration Request Payload template :

&nbsp;</ebm:ResourceUuidList>
</wsn-br:DestroyRegistration>{code}

&nbsp;Notify Request Payload template :

</wsnt:Notify>{code}

{code}


{column}
{column:width=350px}