Thanks Dan, it works! -----Original Message----- From: Daniel Jemiolo [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 8:42 AM To: [email protected] Subject: Re: Destroy operation
Your WS-A Actions don't match - specifically, the one in your WSDL is wrong. Make sure the wsa:Action attribute in the WSDL reads: http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination/Destr oyRequest Dan "Vinh Nguyen \(vinguye2\)" <[EMAIL PROTECTED]> wrote on 02/01/2007 10:37:38 PM: > Sorry if this is a repost, the email doesn't seem to be getting thru... > > > To support the Destroy operation, do we need to implement our own > capability? > > My wsdl defines: > xmlns:wsrf-rl-w="http://docs.oasis-open.org/wsrf/rlw-2" > ... > <wsdl:operation name="Destroy"> > <wsdl:input name="DestroyRequest" message="wsrf-rl-w:DestroyRequest" > wsa:Action="http://docs.oasis > open.org/wsrf/rl-2/Destroy/DestroyRequest"/> > <wsdl:output name="DestroyResponse" > message="wsrf-rl-w:DestroyResponse" > wsa:Action="http://docs.oasis-open.org/wsrf/rl-2/Destroy/DestroyRespon > se > "/> > <wsdl:fault name="ResourceNotDestroyedFault" > message="wsrf-rl-w:ResourceNotDestroyedFault"/> > <wsdl:fault name="ResourceUnknownFault" > message="tns:ResourceUnknownFault"/> > <wsdl:fault name="ResourceUnavailableFault" > message="tns:ResourceUnavailableFault"/> > </wsdl:operation> > > Using wsdl2java, my muse.xml defines: > <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor"> > > <desc:capability-uri>http://docs.oasis-open.org/wsrf/rlw-2/ImmediateRe > so > urceTermination</desc:capability-uri> > > <desc:java-capability-class>org.apache.muse.ws.resource.lifetime.impl. > Si mpleImmediateTermination</desc:java-capability-class> > </desc:capability> > > And my service.xml defines: > <actionMapping>http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResource > Te rmination/DestroyRequest</actionMapping> > > Using the generated proxy class, I calling destroy() but get the > following error: > > org.apache.muse.ws.addressing.soap.SoapFault: [ID = > 'ActionNotSupported'] The resource at 'NamedQuery' does not expose an > operation with the WS-Action > 'http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination/De > st royRequest' through any of its capabilities. > at > org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceCli > en > t.java:279) > at > org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceCli > en > t.java:235) > at > org.apache.muse.ws.resource.remote.WsResourceClient.destroy(WsResource > Cl > ient.java:105) > > If I recall correctly, the outcome of one of the group's previous > discussions was that to destroy a resource, just call the > proxy.destroy() method. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
