0 Replies Latest reply on Sep 2, 2009 9:59 AM by Earnest Dyke

    WS-Eventing SubscriptionEnd problem

    Earnest Dyke Novice

      Greetings all,

      I am trying to trap the SubscriptionEnd messages but an having no luck. Below are my Class, WSDL and Stacktrace. I am sure it is something small I am overlooking but I can't see it. Any and all help is appreciated.

      Earnie!

      Class

      package org.ebsinc.targeteer.ws;
      
      import javax.jws.WebMethod;
      import javax.jws.WebParam;
      import javax.jws.WebService;
      import javax.xml.ws.addressing.Action;
      
      import org.jboss.logging.Logger;
      import org.jboss.ws.annotation.EndpointConfig;
      import org.jboss.ws.extensions.eventing.jaxws.AbstractEventSourceEndpoint;
      import org.jboss.ws.extensions.eventing.jaxws.SubscriptionEnd;
      
      @WebService(name = "EventSource", portName = "EventSourcePort", targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/eventing",
      wsdlLocation = "/WEB-INF/wsdl/target.wsdl", endpointInterface = "org.jboss.ws.extensions.eventing.jaxws.EventSourceEndpoint")
      @EndpointConfig(configName = "Standard WSAddressing Endpoint")
      public class TargeteerRegistrationEndpoint extends AbstractEventSourceEndpoint {
       private static final Logger log = Logger
       .getLogger(TargeteerRegistrationEndpoint.class);
      
       @Override
       protected Logger getLogger() {
       return log;
       }
      
       @WebMethod(operationName = "SubscriptionEnd")
       @Action(input = "http://schemas.xmlsoap.org/ws/2004/08/eventing/SubscriptionEnd")
       public void subscriptionEnd(
       @WebParam(name = "SubscriptionEnd", targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/eventing",
      partName = "body") SubscriptionEnd subEnd) {
       log.debug("Subscription is ending " + subEnd);
       }
      
      }
      


      WSDL
      <wsdl:definitions targetNamespace='http://schemas.xmlsoap.org/ws/2004/08/eventing' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:wsa10='http://www.w3.org/2005/08/addressing' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns:wse='http://schemas.xmlsoap.org/ws/2004/08/eventing' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
       <wsdl:types>
       <xs:import namespace='http://schemas.xmlsoap.org/ws/2004/08/eventing' schemaLocation='http://localhost:8080/targeteer/subscribe?wsdl&resource=ws-eventing.xsd'/>
       </wsdl:types>
       <wsdl:message name='GetStatusResponseMsg'>
       <wsdl:part element='wse:GetStatusResponse' name='body'></wsdl:part>
       </wsdl:message>
       <wsdl:message name='GetStatusMsg'>
       <wsdl:part element='wse:GetStatus' name='body'></wsdl:part>
      
       </wsdl:message>
       <wsdl:message name='RenewResponseMsg'>
       <wsdl:part element='wse:RenewResponse' name='body'></wsdl:part>
       </wsdl:message>
       <wsdl:message name='SubscriptionEnd'>
       <wsdl:part element='wse:SubscriptionEnd' name='body'></wsdl:part>
       </wsdl:message>
       <wsdl:message name='RenewMsg'>
       <wsdl:part element='wse:Renew' name='body'></wsdl:part>
      
       </wsdl:message>
       <wsdl:message name='SubscribeMsg'>
       <wsdl:part element='wse:Subscribe' name='body'></wsdl:part>
       </wsdl:message>
       <wsdl:message name='SubscribeResponseMsg'>
       <wsdl:part element='wse:SubscribeResponse' name='body'></wsdl:part>
       </wsdl:message>
       <wsdl:message name='UnsubscribeMsg'>
       <wsdl:part element='wse:Unsubscribe' name='body'></wsdl:part>
      
       </wsdl:message>
       <wsdl:message name='UnsubscribeResponseMsg'></wsdl:message>
       <wsdl:portType name='SubscriptionManager'>
       <wsdl:operation name='RenewOp'>
       <wsdl:input message='wse:RenewMsg' wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew'></wsdl:input>
       <wsdl:output message='wse:RenewResponseMsg' wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/RenewResponse'></wsdl:output>
       </wsdl:operation>
       <wsdl:operation name='GetStatusOp'>
       <wsdl:input message='wse:GetStatusMsg' wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatus'></wsdl:input>
      
       <wsdl:output message='wse:GetStatusResponseMsg' wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatusResponse'></wsdl:output>
       </wsdl:operation>
       <wsdl:operation name='UnsubscribeOp'>
       <wsdl:input message='wse:UnsubscribeMsg' wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe'></wsdl:input>
       <wsdl:output message='wse:UnsubscribeResponseMsg' wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/UnsubscribeResponse'></wsdl:output>
       </wsdl:operation>
       </wsdl:portType>
       <wsdl:portType name='EventSource'>
       <wsdl:operation name='SubscribeOp'>
      
       <wsdl:input message='wse:SubscribeMsg' wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe'></wsdl:input>
       <wsdl:output message='wse:SubscribeResponseMsg' wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/SubscribeResponse'></wsdl:output>
       </wsdl:operation>
       <wsdl:operation name='SubscriptionEnd'>
       <wsdl:output message='wse:SubscriptionEnd'></wsdl:output>
       </wsdl:operation>
       </wsdl:portType>
       <wsdl:binding name='SubscriptionManagerBinding' type='wse:SubscriptionManager'>
       <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
      
       <wsdl:operation name='GetStatusOp'>
       <soap:operation soapAction=''/>
       <wsdl:input>
       <soap:body use='literal'/>
       </wsdl:input>
       <wsdl:output>
       <soap:body use='literal'/>
       </wsdl:output>
       </wsdl:operation>
      
       <wsdl:operation name='RenewOp'>
       <soap:operation soapAction=''/>
       <wsdl:input>
       <soap:body use='literal'/>
       </wsdl:input>
       <wsdl:output>
       <soap:body use='literal'/>
       </wsdl:output>
       </wsdl:operation>
      
       <wsdl:operation name='UnsubscribeOp'>
       <soap:operation soapAction=''/>
       <wsdl:input>
       <soap:body use='literal'/>
       </wsdl:input>
       <wsdl:output>
       <soap:body use='literal'/>
       </wsdl:output>
       </wsdl:operation>
      
       </wsdl:binding>
       <wsdl:binding name='EventSourceBinding' type='wse:EventSource'>
       <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
       <wsdl:operation name='SubscribeOp'>
       <soap:operation soapAction=''/>
       <wsdl:input>
       <soap:body use='literal'/>
       </wsdl:input>
       <wsdl:output>
      
       <soap:body use='literal'/>
       </wsdl:output>
       </wsdl:operation>
       <wsdl:operation name='SubscriptionEnd'>
       <soap:operation soapAction=''/>
       <wsdl:output>
       <soap:body use='literal'/>
       </wsdl:output>
       </wsdl:operation>
      
       </wsdl:binding>
       <wsdl:service name='EventingService'>
       <wsdl:port binding='wse:SubscriptionManagerBinding' name='SubscriptionManagerPort'>
       <soap:address location='http://localhost:8080/targeteer/manage'/>
       </wsdl:port>
       <wsdl:port binding='wse:EventSourceBinding' name='EventSourcePort'>
       <soap:address location='http://localhost:8080/targeteer/subscribe'/>
       </wsdl:port>
       </wsdl:service>
      
      </wsdl:definitions>


      StackTrace
      09:51:23,562 ERROR [SOAPFaultHelperJAXRPC] SOAP request exception
      javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://schemas.xmlsoap.org/ws/2004/08/eventing}EventSourcePort does not contain operation meta data for: {http://schemas.xmlsoap.org/ws/2004/08/eventing}SubscriptionEnd
       at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.exceptionToFaultMessage(SOAPFaultHelperJAXRPC.java:189)
       at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:183)
       at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:102)
       at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:671)
       at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:285)
       at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:474)
       at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
       at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
       at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
       at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
       at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
       at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
       at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:619)