You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by lu...@mail.polimi.it on 2008/05/05 03:16:22 UTC

RE: How to unsubscribe a consumer

When I call client.destroy() I get the following exception:

org.apache.muse.ws.addressing.soap.SoapFault: ServiceClass does not  
implement required method of the form OMElement Destroy(OMElement e)
	at  
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:298)
	at  
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
	at  
org.apache.muse.ws.resource.remote.WsResourceClient.destroy(WsResourceClient.java:109)
	at WsnTestClient.main(WsnTestClient.java:304)


> SubscriptionClient client = resource.subscribe(
>  source, new TopicFilter(someTopicQName), null); .. .. client.destroy() ..
>


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


RE: How to unsubscribe a consumer

Posted by Ch...@swisscom.com.
Hi Luca,

OMElement is an Axis 2 component not a Muse one.  Your code is correct
for how to unsubscribe a consumer.

The problem is on the server side, the SoapFault is what has been
returned from the server.  If its a Muse server could you reply with
some server logs and perhaps we can help.  

I assume however its an Axis 2 server and that this error is because the
Destroy function isn't implemented on the WS-N subscription resource.
This could be because the wsdl didn't have it, but my knowledge on Axis
2 is limited I'm afraid.

cheers,
Chris

-----Original Message-----
From: luca.cavagnoli@mail.polimi.it
[mailto:luca.cavagnoli@mail.polimi.it] 
Sent: Monday, May 05, 2008 3:16 AM
To: muse-user@ws.apache.org
Subject: RE: How to unsubscribe a consumer

When I call client.destroy() I get the following exception:

org.apache.muse.ws.addressing.soap.SoapFault: ServiceClass does not
implement required method of the form OMElement Destroy(OMElement e)
	at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:298)
	at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:254)
	at
org.apache.muse.ws.resource.remote.WsResourceClient.destroy(WsResourceCl
ient.java:109)
	at WsnTestClient.main(WsnTestClient.java:304)


> SubscriptionClient client = resource.subscribe(  source, new 
> TopicFilter(someTopicQName), null); .. .. client.destroy() ..
>


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org