0 Replies Latest reply on Jan 13, 2009 2:09 AM by narensb

    unsubscibing for an event

      I am using soapUI 2.5 to subscribe and unsubscribe for events in jboss eventing module.Already deployed the event source and manager endpoint.
      This is the subscription request (Raw xml)

      User-Agent: Jakarta Commons-HttpClient/3.1
      Host: localhost:8080
      Content-Length: 1612
      
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:even="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:add="http://www.w3.org/2005/08/addressing">
       <soapenv:Header>
       <add:Action>http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</add:Action><add:ReplyTo><add:Address>http://www.w3.org/2005/08/addressing/anonymous</add:Address></add:ReplyTo><add:From><add:Address>http://www.w3.org/2005/08/addressing/anonymous</add:Address></add:From><add:FaultTo><add:Address>http://www.w3.org/2005/08/addressing/anonymous</add:Address></add:FaultTo><add:MessageID>73e0832e-50e3-48aa-9eed-675b50b2b42c</add:MessageID><add:To>http://com.temp/ServiceEventInfo</add:To></soapenv:Header>
       <soapenv:Body>
       <even:Subscribe>
       <even:EndTo>
       <add:Address>http://localhost:8080/EventSink/EventSink</add:Address>
      
       </even:EndTo>
       <even:Delivery>
       <even:NotifyTo>
       <add:Address>http://localhost:8080/EventSink/EventSink</add:Address>
      </even:NotifyTo>
       </even:Delivery>
       </even:Subscribe>
       </soapenv:Body>
      </soapenv:Envelope>
      
      

      This is the subscription response
      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <env:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
       <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
       <wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/eventing/SubscribeResponse</wsa:Action>
       <wsa:RelatesTo>73e0832e-50e3-48aa-9eed-675b50b2b42c</wsa:RelatesTo>
       </env:Header>
       <env:Body>
       <ns2:SubscribeResponse xmlns="http://www.w3.org/2005/08/addressing" xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/eventing">
       <ns2:SubscriptionManager>
       <Address>http://localhost:8080/eventing123/ServiceManagementEndpoint</Address>
       <ReferenceParameters>
       <ns2:Identifier>urn:jbwse:4533e47c-a0f-4790-a499-f2b4788b62a2</ns2:Identifier>
       </ReferenceParameters>
       </ns2:SubscriptionManager>
       <ns2:Expires>2009-01-13T11:30:08.899+05:30</ns2:Expires>
       </ns2:SubscribeResponse>
       </env:Body>
      </env:Envelope>
      


      this is the unsubscribe request(raw xml)

      POST http://localhost:8080/eventing123/ServiceManagementEndpoint HTTP/1.1
      Content-Type: text/xml;charset=UTF-8
      SOAPAction: ""
      User-Agent: Jakarta Commons-HttpClient/3.1
      Host: localhost:8080
      Content-Length: 1039
      
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:even="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:add="http://www.w3.org/2005/08/addressing">
       <soapenv:Header>
      <even:ReferenceParameters>
      <even:Identifier>urn:jbwse:4533e47c-a0f-4790-a499-f2b4788b62a2</even:Identifier>
      </even:ReferenceParameters>
      <add:Action>http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe</add:Action><add:ReplyTo><add:Address>http://www.w3.org/2005/08/addressing/anonymous</add:Address></add:ReplyTo><add:From><add:Address>http://www.w3.org/2005/08/addressing/anonymous</add:Address></add:From><add:FaultTo><add:Address>http://www.w3.org/2005/08/addressing/anonymous</add:Address></add:FaultTo><add:MessageID>7c5478bc-cd83-41c9-8d10-40ac896b2f7e</add:MessageID><add:To>http://localhost:8080/eventing123/ServiceManagementEndpoint</add:To></soapenv:Header>
       <soapenv:Body>
       <even:Unsubscribe>
       <!--You may enter ANY elements at this point-->
       </even:Unsubscribe>
       </soapenv:Body>
      </soapenv:Envelope>
      


      This is the unsubscribe response
      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <env:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
       <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
       <wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action>
       <wsa:RelatesTo>7c5478bc-cd83-41c9-8d10-40ac896b2f7e</wsa:RelatesTo>
       </env:Header>
       <env:Body>
       <env:Fault>
       <faultcode>env:Server</faultcode>
       <faultstring>The message is not valid and cannot be processed: Cannot obtain subscription id.</faultstring>
       </env:Fault>
       </env:Body>
      </env:Envelope>
      


      I have specified the subscription id in unsubscribe request but still it gives cannot obtain subscription id
      plz help!!! wt am i missing here?