Hi,

I am not able to subscribe for a resource property (Let say "Counter") using
filters. I would like to receive notification when "Counter" value becomes
50.

------------------------------ SOAP Request to
Subscribe---------------------------------------

<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">

              <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:Counter</wsnt:TopicExpression>

      <wsnt:UseNotify>true</wsnt:UseNotify>

       <wsnt:Precondition dialect="
http://www.w3.org/TR/1999/REC-xpath-1999111
">boolean(fs:Counter="50")</wsnt:Precondition>

     </wsnt:Subscribe>

  </Body>



</Envelope>



    [echo] ========================== RESPONSE ============================

[soapClient] SOAP request failed with HTTP status: 500 Internal Server Error

[soapClient] <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soape

nv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
http://www.w3.org/2001

/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

[soapClient]  <soapenv:Body>

[soapClient]   <soapenv:Fault>

[soapClient]    <faultcode>soapenv:Client</faultcode>

[soapClient]    <faultstring>Request body element Subscribe@
http://docs.oasis-op

en.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd is not valid as
per

its schema:

[soapClient]

[soapClient]            1) error: cvc-complex-type.3.2.1: Attribute not
allowed

(no wildcards allowed): dialect in element Precondition@
http://docs.oasis-open.o

rg/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[soapClient]

[soapClient] </faultstring>

[soapClient]    <detail/>

[soapClient]   </soapenv:Fault>

[soapClient]  </soapenv:Body>

[soapClient] </soapenv:Envelope>



BUILD SUCCESSFUL

------------------------------------------------------------------------------------------------------------------------------------



Please let me know how to solve the above problem.



- Naga Muni Reddy

Reply via email to