You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-user@ws.apache.org by Shawn Mulkey <Sh...@reuters.com> on 2005/09/13 20:54:53 UTC
Subscription Delete Problem
Hi All,
I have deployed a simple WSN Web Service similar to the file system
example and everything seems to be working more or less. However, I am
having a problem with subscriptions which I don't quite understand.
I can create a subscription and receive notifications without problems,
but I receieve an error when I go to delete the subscription using this
SOAP envelope:
==================================================================
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsnt="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotificati
on-1.2-draft-01.xsd"
xmlns:wsrlw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLif
etime-1.2-draft-01.xsd"
xmlns:sub="http://ws.apache.org/notification/base/service/SubscriptionMa
nager">
<Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<wsa:To
mustUnderstand="1">http://localhost:8080/pubscribe/services/Subscription
Manager</wsa:To>
<wsa:Action
mustUnderstand="1">http://localhost:8080/pubscribe/services/Subscription
Manager/yourWsdlRequestName</wsa:Action>
<sub:ResourceIdentifier
mustUnderstand="1">2ea5c2f0-ab39-44c9-8e86-e5f24722a600</sub:ResourceIde
ntifier>
</Header>
<Body>
<wsrlw:Destroy />
</Body>
</Envelope>
================================================================
The fault reads:
================================================================
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>The expected resource identifier reference parameter
named {http://news.my.services.com/resource/headlines}ResourceIdentifier
was not found in the SOAP header.</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
=================================================================
I get a successful deletion if I modify the subscription to include a
resource identifier like so:
=================================================================
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsnt="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotificati
on-1.2-draft-01.xsd"
xmlns:wsrlw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLif
etime-1.2-draft-01.xsd"
xmlns:sub="http://ws.apache.org/notification/base/service/SubscriptionMa
nager"
xmlns:mns=http://foo.service.namespace
>
<Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<wsa:To
mustUnderstand="1">http://localhost:8080/pubscribe/services/Subscription
Manager</wsa:To>
<wsa:Action
mustUnderstand="1">http://localhost:8080/pubscribe/services/Subscription
Manager/yourWsdlRequestName</wsa:Action>
<sub:ResourceIdentifier
mustUnderstand="1">2ea5c2f0-ab39-44c9-8e86-e5f24722a600</sub:ResourceIde
ntifier>
<mns:ResourceIdentifier
mustUnderstand="1">foo</mns:ResourceIdentifier>
</Header>
<Body>
<wsrlw:Destroy />
</Body>
</Envelope>
================================================================
However, this removes the entire "foo" resource from the system and no
other requests or subscriptions can be made against it until it is
re-added.
Does anyone know what could be happening here?
Thanks.
-SPM
-----------------------------------------------------------------
Visit our Internet site at http://www.reuters.com
To find out more about Reuters Products and Services visit http://www.reuters.com/productinfo
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Reuters Ltd.