Shazad,
 
Your namespace versions are off....Take a look at your wsdl...
 
you defined this:  http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceLifetime-1.2-draft-04.wsdl
 
then in your request you had this: 
 
  <wsrl:Destroy xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"/>
 
Originally I assumed you had at least the namespace correct...as you can see above it is not
 
 
try again with this:


From: Shahzad Younas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 23, 2005 3:17 PM
To: [email protected]
Subject: RE: Destroy a resource...

Hi,
 
I've done as you have said, but it still does the same thing... any ideas?
 
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>
  <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>
  <shibbw:ResourceID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="1" xmlns:shibbw="http://ShibbolethBrowserSession/ShibbolethBrowserSession.wsdl">ShibbolethBrowserSessionResource9</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.wsdl"/>
</soapenv:Body>
</soapenv:Envelope>
====================
 

DEBUG   2005-03-23 20:16:02,078 (org.apache.ws.resource.handler.ResourceHandler:123) - Recieved Request
DEBUG   2005-03-23 20:16:02,078 (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 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
/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">ShibbolethBrowserSessionResource9</shibbw:ResourceID></s
oapenv:Header><soapenv:Body><wsrl:Destroy xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"/></soapenv:Body></soapenv:Envelope>
DEBUG   2005-03-23 20:16:02,078 (org.apache.ws.resource.handler.ResourceHandler:272) - Retrieved Service Class name: shibbolethBrowserSession.shibbolethBrowserSessionWsdl.ShibbolethBrowserSessionService from ResourceHome.
DEBUG   2005-03-23 20:16:02,093 (org.apache.ws.resource.handler.ResourceHandler:403) - Creating an instance of service class: class shibbolethBrowserSession.shibbolethBrowserSessionWsdl.ShibbolethBrowserSessionService
DEBUG   2005-03-23 20:16:02,093 (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.wsdl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envel
ope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
 
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)
 


From: Campana Jr., Salvatore J [mailto:[EMAIL PROTECTED]
Sent: 23 March 2005 20:12
To: [email protected]
Subject: RE: Destroy a resource...

Change your request to use the .wsdl namespace...
 
  <wsrl:Destroy xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"/> 
 
This is a common mistake...I liked it better when the spec wsdls/xsds had the same namespace


From: Shahzad Younas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 23, 2005 2:57 PM
To: [email protected]
Subject: Destroy a resource...

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>
  <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>
  <shibbw:ResourceID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="1" xmlns:shibbw="http://ShibbolethBrowserSession/ShibbolethBrowserSession.wsdl">ShibbolethBrowserSessionResource7</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"/>
</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 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
/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
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>
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"/>
 
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)
 
 

Reply via email to