Shazad,

Why don't you just attach ShibbolethBrowserSessionService.java AND
AbstractShibbolethBrowserSessionService.java to the email so we can see
what is going on...

Stefan was partially correct...You should look at
AbstractShibbolethBrowserSessionService to see if destroy was defined.

We generate all the spec operations "plumming" in the Abstract...Service
so you (the implementor) can focus primarily on you custom operations
(which are generated in the concrete Service class)

Send the files and we'll take a look...

-S

-----Original Message-----
From: Stefan Lischke [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 23, 2005 9:15 PM
To: [email protected]
Subject: Re: Destroy a resource...

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.Destro
yDocument
requestDoc )
   {
      return new
org.apache.ws.resource.lifetime.v1_2_draft01.porttype.impl.ImmediateReso
urceTerminationPortTypeImpl(
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://lo
> calhost: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://lo
> calhost:8080/wsrf/services/ShibbolethBrowserSessionDestroy/Destroy</ws
> a: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%3ESh
> ibbolethBrowserSessionResource7%3C/shibbw:ResourceID>>
> </soapenv:Header>
> <soapenv:Body>
>   <wsrl:Destroy
> xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLi
> fetime-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%3
> Cwsa: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/ws
> rf/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://lo
> calhost:8080/wsrf 
> <http://schemas.xmlsoap.org/ws/2004/03/addressing%22%3Ehttp://localhos
> t: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%3ESh
> ibbolethBrowserSessionResource7%3C/shibbw:ResourceID%3E%3C/s>
> oapenv:Header><soapenv:Body><wsrl:Destroy
> xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLi
> fetime-1.2-draft-01.xsd"/></soapenv:Body></soapenv:Envelope
>
<http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-dr
aft-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.ShibbolethBrowse
> rSessionService
> 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.ShibbolethBrowserS
essionService
> 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-ResourceLife
time-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.ShibbolethBrowserS
essionService.
>         at
>
org.apache.ws.resource.handler.ResourceHandler.getServiceMethod(Resource
Handler.java:374)
>         at
>
org.apache.ws.resource.handler.ResourceHandler.handleRequest(ResourceHan
dler.java:151)
>         at
>
org.apache.ws.resource.handler.axis.ResourceProvider.invoke(ResourceProv
ider.java:203)
>         at
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava: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.j
ava:301)
>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
>         at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
>         at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
>         at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
>         at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
>         at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
>         at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
>         at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
>         at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
>         at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:118)
>         at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
>         at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
>         at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
>         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:79
9)
>         at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
>         at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
>         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.ShibbolethBrowserS
essionService.
>  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.ShibbolethBrowserS
essionService.
>         at
>
org.apache.ws.resource.handler.ResourceHandler.handleRequest(ResourceHan
dler.java:191)
>         at
>
org.apache.ws.resource.handler.axis.ResourceProvider.invoke(ResourceProv
ider.java:203)
>         at
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava: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.j
ava:301)
>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
>         at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
>         at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
>         at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
>         at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
>         at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
>         at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
>         at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
>         at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
>         at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:118)
>         at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
>         at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
>         at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
>         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:79
9)
>         at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
>         at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
>         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]


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

Reply via email to