Hi Shahzad ,

Just an idea:

Is your Service Implementing the ImmediateResourceTerminationPortType Interface? There is the destroy method defined.

So your Service has to implement this Interface and use delegater pattern to call this method on the impl. So your Service code should look like this.
--
public DestroyResponseDocument destroy( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceLifetime12Draft01.DestroyDocument requestDoc )
{
return new org.apache.ws.resource.lifetime.v1_2_draft01.porttype.impl.ImmediateResourceTerminationPortTypeImpl( getResourceContext( ) ).destroy( requestDoc );
}
--


hope this helps

stefan
Shahzad Younas wrote:

Hi,
I am trying to send a message to destroy a resource. My wsdl is attached.
However, when i send the message below to my service, I get the error below:
What am i doing wrong? I have looked at the examples and I cant see anything wrong.
I have even looked in my AbstractXXService and I have a destroy method already defined there.
Thanks
Shahzad
SENT MESSAGE
====================
<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:Header>
<wsa:To soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; soapenv:mustUnderstand="1" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing";>http://localhost:8080/wsrf/services/ShibbolethBrowserSession</wsa:To <http://schemas.xmlsoap.org/ws/2004/03/addressing%22%3Ehttp://localhost:8080/wsrf/services/ShibbolethBrowserSession%3C/wsa:To>>
<wsa:Action soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; soapenv:mustUnderstand="1" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing";>http://localhost:8080/wsrf/services/ShibbolethBrowserSessionDestroy/Destroy</wsa:Action <http://schemas.xmlsoap.org/ws/2004/03/addressing%22%3Ehttp://localhost:8080/wsrf/services/ShibbolethBrowserSessionDestroy/Destroy%3C/wsa:Action>>
<shibbw:ResourceID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; soapenv:mustUnderstand="1" xmlns:shibbw="http://ShibbolethBrowserSession/ShibbolethBrowserSession.wsdl";>ShibbolethBrowserSessionResource7</shibbw:ResourceID <http://ShibbolethBrowserSession/ShibbolethBrowserSession.wsdl%22%3EShibbolethBrowserSessionResource7%3C/shibbw:ResourceID>>
</soapenv:Header>
<soapenv:Body>
<wsrl:Destroy xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"/ <http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd%22/>>
</soapenv:Body>
</soapenv:Envelope>
====================


DEBUG 2005-03-23 19:54:13,875 (org.apache.ws.resource.handler.ResourceHandler:123) - Recieved Request
DEBUG 2005-03-23 19:54:13,875 (org.apache.ws.resource.handler.ResourceHandler:130) - The request envelope:
<?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:Header><wsa:To <http://www.w3.org/2001/XMLSchema-instance%22%3E%3Csoapenv:Header%3E%3Cwsa:To> soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; soapenv:mustUnderstand="1" xmlns:wsa="http
://schemas.xmlsoap.org/ws/2004/03/addressing">http://localhost:8080/wsrf/services/ShibbolethBrowserSession</wsa:To><wsa:Action soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; soapenv:mustUnderstand="1" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing";>http://localhost:8080/wsrf <http://schemas.xmlsoap.org/ws/2004/03/addressing%22%3Ehttp://localhost:8080/wsrf>
/services/ShibbolethBrowserSessionDestroy/Destroy</wsa:Action><shibbw:ResourceID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; soapenv:mustUnderstand="1" xmlns:shibbw="http://ShibbolethBrowserSession/ShibbolethBrowserSession.wsdl";>ShibbolethBrowserSessionResource7</shibbw:ResourceID></s <http://ShibbolethBrowserSession/ShibbolethBrowserSession.wsdl%22%3EShibbolethBrowserSessionResource7%3C/shibbw:ResourceID%3E%3C/s>
oapenv:Header><soapenv:Body><wsrl:Destroy xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"/></soapenv:Body></soapenv:Envelope <http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd%22/%3E%3C/soapenv:Body%3E%3C/soapenv:Envelope>>
DEBUG 2005-03-23 19:54:13,875 (org.apache.ws.resource.handler.ResourceHandler:272) - Retrieved Service Class name: shibbolethBrowserSession.shibbolethBrowserSessionWsdl.ShibbolethBrowserSessionService from ResourceHome.
DEBUG 2005-03-23 19:54:13,890 (org.apache.ws.resource.handler.ResourceHandler:403) - Creating an instance of service class: class shibbolethBrowserSession.shibbolethBrowserSessionWsdl.ShibbolethBrowserSessionService
DEBUG 2005-03-23 19:54:13,890 (org.apache.ws.resource.handler.ResourceHandler:351) - Deriving the service method name from the request: <wsrl:Destroy xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelo
pe/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/ <http://www.w3.org/2001/XMLSchema-instance%22/>>
javax.xml.rpc.JAXRPCException: Unable to find method destroy with valid signature in service class shibbolethBrowserSession.shibbolethBrowserSessionWsdl.ShibbolethBrowserSessionService.
at org.apache.ws.resource.handler.ResourceHandler.getServiceMethod(ResourceHandler.java:374)
at org.apache.ws.resource.handler.ResourceHandler.handleRequest(ResourceHandler.java:151)
at org.apache.ws.resource.handler.axis.ResourceProvider.invoke(ResourceProvider.java:203)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:653)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
DEBUG 2005-03-23 19:54:13,906 (org.apache.ws.resource.handler.axis.ResourceProvider:219) - Fault:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: javax.xml.rpc.JAXRPCException: Unexpected error. Cause: javax.xml.rpc.JAXRPCException: Unable to find method destroy with valid signature in service class shibbolethBrowserSession.shibbolethBrowserSessionWsdl.ShibbolethBrowserSessionService.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:javax.xml.rpc.JAXRPCException: Unexpected error. Cause: javax.xml.rpc.JAXRPCException: Unable to find method destroy with valid signature in service class shibbolethBrowserSession.shibbolethBrowserSessionWsdl.ShibbolethBrowserSessionService.
at org.apache.ws.resource.handler.ResourceHandler.handleRequest(ResourceHandler.java:191)
at org.apache.ws.resource.handler.axis.ResourceProvider.invoke(ResourceProvider.java:203)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:653)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
My place : http://user.cs.tu-berlin.de/~lischke


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to