Petals-SE-Notification

compared with
Version 8 by Thierry Dejean
on Jul 09, 2010 17:01.

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

Changes (41)

View Page History



{note}Note : these two components are only "template component" and can help you to implement your own ones.{note}

h2. Petals-se-notification associated wsdl file

Subscribe Request Payload template :
{code}

{code}
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
&nbsp;&nbsp; &nbsp;xmlns:tns="http://petals.ow2.org/petals-se-notification" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
&nbsp;&nbsp; &nbsp;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 :


{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"
targetnamespace="http://docs.oasis-open.org/wsn/b-2">
<wsnt:NotificationMessage>
<wsnt:SubscriptionReference>
<wsa:Address>[http://petals.ow2.org/cdk&lt;/wsa:Address&gt];
<wsa:ReferenceParameters>
<ebm:SOAParameter>
<ebm:ServiceName xmlns:ns8="http://petals.ow2.org/petals-se-notification">ns8:SubscriptionManagerService</ebm:ServiceName>
<ebm:InterfaceName xmlns:ns8="http://docs.oasis-open.org/wsn/bw-2">ns8:SubscriptionManager</ebm:InterfaceName>
<ebm:Endpoint>SubscriptionManagerEndpoint</ebm:Endpoint>
</ebm:SOAParameter>
<ebm:ResourceUuidList>
<ebm:Uuid>f6324db3-486e-46b0-a6aa-eecc76a92eb1</ebm:Uuid>
</ebm:ResourceUuidList>
</wsa:ReferenceParameters>
</wsnt:SubscriptionReference>
<wsnt:Topic Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete"
xmlns:internalns="http://petals.ow2.org/topicNamespace/sample/Internal">internalns:rootTopic1/childTopic2/grandChildTopic21</wsnt:Topic>
<wsnt:ProducerReference>
<wsa:Address>[http://petals.ow2.org/ws-addressing/default&lt;/wsa:Address&gt];
<wsa:ReferenceParameters>
<ebm:SOAParameter>
<ebm:ServiceName xmlns:ns8="http://petals.ow2.org/petals-se-notification">ns8:NotificationProducerService</ebm:ServiceName>
<ebm:InterfaceName xmlns:ns8="http://docs.oasis-open.org/wsn/bw-2">ns8:NotificationProducer</ebm:InterfaceName>
<ebm:Endpoint>NotificationProducerEndpoint</ebm:Endpoint>
</ebm:SOAParameter>
</wsa:ReferenceParameters>
</wsnt:ProducerReference>
<wsnt:Message>
<npex:NotifyContent xmlns:npex="http://petals.ow2.org/aNamespaceSample">This is the content - payload - of the notification</npex:NotifyContent>
</wsnt:Message>
&nbsp;xmlns:wsa="http://www.w3.org/2005/08/addressing" </wsnt:NotificationMessage>
&nbsp;xmlns:ebm="http://www.ebmwebsourcing.com/wsnotification/specificTypes"
&nbsp;targetnamespace="http://docs.oasis-open.org/wsn/b-2">
&nbsp;<wsnt:NotificationMessage>
&nbsp; <wsnt:SubscriptionReference>
&nbsp;&nbsp; <wsa:Address>[http://petals.ow2.org/cdk&lt;/wsa:Address&gt];
&nbsp;&nbsp; <wsa:ReferenceParameters>
&nbsp;&nbsp;&nbsp; <ebm:SOAParameter>
&nbsp;&nbsp;&nbsp;&nbsp; <ebm:ServiceName xmlns:ns8="http://petals.ow2.org/petals-se-notification">ns8:SubscriptionManagerService</ebm:ServiceName>
&nbsp;&nbsp;&nbsp;&nbsp; <ebm:InterfaceName xmlns:ns8="http://docs.oasis-open.org/wsn/bw-2">ns8:SubscriptionManager</ebm:InterfaceName>
&nbsp;&nbsp;&nbsp;&nbsp; <ebm:Endpoint>SubscriptionManagerEndpoint</ebm:Endpoint>
&nbsp;&nbsp;&nbsp; </ebm:SOAParameter>
&nbsp;&nbsp;&nbsp; <ebm:ResourceUuidList>
&nbsp;&nbsp;&nbsp;&nbsp; <ebm:Uuid>f6324db3-486e-46b0-a6aa-eecc76a92eb1</ebm:Uuid>
&nbsp;&nbsp;&nbsp; </ebm:ResourceUuidList>
&nbsp;&nbsp; </wsa:ReferenceParameters>
&nbsp; </wsnt:SubscriptionReference>
&nbsp; <wsnt:Topic Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete"
&nbsp;&nbsp;&nbsp; xmlns:internalns="http://petals.ow2.org/topicNamespace/sample/Internal">internalns:rootTopic1/childTopic2/grandChildTopic21</wsnt:Topic>
&nbsp; <wsnt:ProducerReference>
&nbsp;&nbsp; <wsa:Address>[http://petals.ow2.org/ws-addressing/default&lt;/wsa:Address&gt];
&nbsp;&nbsp; <wsa:ReferenceParameters>
&nbsp;&nbsp;&nbsp; <ebm:SOAParameter>
&nbsp;&nbsp;&nbsp;&nbsp; <ebm:ServiceName xmlns:ns8="http://petals.ow2.org/petals-se-notification">ns8:NotificationProducerService</ebm:ServiceName>
&nbsp;&nbsp;&nbsp;&nbsp; <ebm:InterfaceName xmlns:ns8="http://docs.oasis-open.org/wsn/bw-2">ns8:NotificationProducer</ebm:InterfaceName>
&nbsp;&nbsp;&nbsp;&nbsp; <ebm:Endpoint>NotificationProducerEndpoint</ebm:Endpoint>
&nbsp;&nbsp;&nbsp; </ebm:SOAParameter>
&nbsp;&nbsp; </wsa:ReferenceParameters>
&nbsp; </wsnt:ProducerReference>
&nbsp; <wsnt:Message>
&nbsp;&nbsp; <npex:NotifyContent xmlns:npex="http://petals.ow2.org/aNamespaceSample">This is the content - payload - of the notification</npex:NotifyContent>
&nbsp; </wsnt:Message>
&nbsp;</wsnt:NotificationMessage>
</wsnt:Notify>{code}

{code}

{code}


{column}
{column:width=350px}