OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsn message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [wsn] NP Topics resource property clarification



Bryan,
Thanks, appreciate the timely and complete response.


"Murray, Bryan P." <bryan.murray@hp.com> wrote on 04/07/2005 18:04:38:

> I see from your examples that you are using the June 2004 version of the
> WS-BaseN spec. This version does have an inconsistency between the text
> and the schema for the name of the resource property. My recommendation
> is to use baseN:Topic for the name of the resource property as that is
> the one used in the schema.
>
> The most recent version of the WS-BaseN spec has renamed this property
> to 'TopicExpression' and changed the value of minOccurs to '0'.
>
> An example request (version June 2004) looks like:
> <s:Body>
>   <rp:GetResourceProperty>
>     baseN:Topic
>   </rp:GetResourceProperty>
> </s:Body>
>
> The corresponding response for a resource supporting all of the topics
> in the 2 TopicSpaces you provided might look like:
> <s:Body>
>   <rp:GetResourcePropertyResponse>
>     <baseN:Topic
> Dialect="http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Simple">
>       ts1:t1
>     </baseN:Topic>
>     <baseN:Topic
> Dialect="http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Simple">
>       ts2:t2
>     </baseN:Topic>
>     <baseN:Topic
> Dialect="http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Simple">
>       ts2:t22
>     </baseN:Topic>
>   </rp:GetResourcePropertyResponse>
> </s:Body>
>
> As you can see I have listed all of the topics individually using either
> the Simple or Concrete topic expression dialects. I recommend this
> approach for the Topic resource property, rather than using Full topic
> expression, for the best chance at interoperability and for providing
> the most information to an interested client.
>
> Bryan
>
>
> -----Original Message-----
> From: rineholt@us.ibm.com [mailto:rineholt@us.ibm.com]
> Sent: Thursday, April 07, 2005 1:08 PM
> To: wsn@lists.oasis-open.org
> Subject: [wsn] NP Topics resource property clarification
>
> I'm a little confused by the resource property a Notification Producer
> should have that advertises which topics it supports. Basically Section
> 4.1 of WS-BaseNotification /wsnt:Topics.  The specification mentions
> wsnt:Topics as the resource that contains the topics supported by the
> NP.  Ok. But then it mentions "The set of topics is expressed using one
> or more wsnt:Topic resource property element(s) ..what are these?
> are they just child elements of the /wsnt:Topics RP ?  Are these RP in
> their own right?
>
> The RP attribute in the WSDL has:
> <xsd:element name="NotificationProducerRP">
>   <xsd:complexType>
>    <xsd:sequence>
>      <xsd:element ref="wsnt:Topic" minOccurs="1" maxOccurs="unbounded"
> />
>
> If I understand correctly, The QName for this RP should be "wsnt:Topic"
> which is a multivalued RP.
> But then where does wsnt:Topics come into the picture?
>
> I'd like to see given a concrete example lets say A NP that supports
> notification on two topicspaces <wstop:topicSpace name="TSName1"
> targetNamespace="http://example.org/name1"
>  <wstop:topic name="t1"/>
> </wstop:topicSpace>
> <wstop:topicSpace name="TSName2"
> targetNamespace="http://example.org/name2"
>  <wstop:topic name="t2"/>
>  <wstop:topic name="t22"/>
> </wstop:topicSpace>
>
> What should the GetRP request be to obtain the topics supported:
> ...
> <soapenv:Body>
>   <wsrp:GetResourceProperty">
>    <!-- what qname please? -->
>   </wsrp:GetResourceProperty>
> </soapenv:Body>
> ...
>
> and what whould the GetRP response be for this specific NP: (I'll settle
> for any dialect :-) <soapenv:Body>
>   <wsrp:GetResourcePropertyResponse">
>    <!-- how should this response look like -->
>   </wsrp:GetResourcePropertyResponse>
> </soapenv:Body>
>
>
> Thanks


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]