Hi,

I am using filesystem example. I have subscribed for "MountPointDirectory". I am able to receive notifications whenever "MountPointDirectory" property changed. But, I don't want notifications for every change of the "MountPointDirectory" property which I have subscribed earlier. So, I am using filters in the subscribe request. I have added the following line to the subscribe request:

<wsnt:Precondiion Dialect=" http://www.w3.org/TR/1999/REC-xpath-1999111 ">boolean(fs: MountPointDirectory = "Hello")</wsnt:Precondition>

I want notification when "MountPointDirectory" property has value "Hello".

I am able to subscribe, but the thing is that I am not getting notification even though "MountPointDirectory" property has a value "Hello".

Please find an attached subscribe request and let me know solution.

Regards,
Naga Muni Reddy
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"; 
          xmlns:fs="http://ws.apache.org/resource/example/filesystem";
          xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing";
          
xmlns:wsnt="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd";>

   <Header>
      <wsa:To 
mustUnderstand="1">http://localhost:8080/muse/services/filesystem</wsa:To>
      <wsa:Action 
mustUnderstand="1">http://ws.apache.org/resource/example/filesystem/FileSystemPortType/SubscribeRequest</wsa:Action>
      <fs:ResourceIdentifier 
mustUnderstand="1">/dev/vg00/lvol1</fs:ResourceIdentifier>
   </Header>

   <Body>
      <wsnt:Subscribe>                             
         <wsnt:ConsumerReference 
xmlns:cs="http://localhost:8080/muse/services/consumer";>
               
<wsa:Address>http://localhost:8080/muse/services/consumer</wsa:Address>
             </wsnt:ConsumerReference>
             <wsnt:TopicExpression 
Dialect="http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Simple";>fs:MountPointDirectory</wsnt:TopicExpression>
       <wsnt:UseNotify>true</wsnt:UseNotify>
                <wsnt:Precondition 
Dialect="http://www.w3.org/TR/1999/REC-xpath-1999111";>boolean(fs:MountPointDirectory
 = "Hello")</wsnt:Precondition>
      </wsnt:Subscribe>
   </Body>

</Envelope>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to