2 Replies Latest reply on May 11, 2011 9:30 AM by Marcos Meneghette

    does not contain operation meta data for: {http://www.w3.org

    Yong Onn Tai Newbie

      Hi all,

      I would like to implement soap encryption for web services in my application. However, after hours of trying and researching, I still get the error msg at the server side. Here is the main error msg.

      "Endpoint {http://impl.service.user.ws.login.ams.com/}WSUserServiceImplPort does not contain operation meta data for: {http://www.w3.org/2001/04/xmlenc#}EncryptedData"

      I ran the Jboss in debug mode and found the following information. Helps and some guidelines are appreciated. Thanks



      HandlerMetaDataJAXWS:
      type=POST
      name=WSSecurityHandlerOutbound
      class=class org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient
      params=[]
      protocols=##SOAP11_HTTP
      services=null
      ports=null
      16:52:24,140 DEBUG [EndpointMetaData] Configure SOAPBinding
      16:52:24,156 DEBUG [HandlerResolverImpl] initHandlerChain: PRE
      16:52:24,156 DEBUG [HandlerResolverImpl] initHandlerChain: ENDPOINT
      16:52:24,156 DEBUG [HandlerResolverImpl] initHandlerChain: POST
      16:52:24,156 DEBUG [HandlerResolverImpl] addHandler:
      HandlerMetaDataJAXWS:
      type=POST
      name=WSSecurityHandlerOutbound
      class=class org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient
      params=[]
      protocols=##SOAP11_HTTP
      services=null
      ports=null
      16:52:24,171 DEBUG [HandlerResolverImpl] getHandlerChain: [type=PRE,info=[service={http://impl.service.user.ws.login.ams.com/}WSUserServiceImplService,port={http://impl.service.user.ws.login.ams.com/}WSUserServiceImplPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]]
      16:52:24,171 DEBUG [HandlerResolverImpl] getHandlerChain: [type=POST,info=[service={http://impl.service.user.ws.login.ams.com/}WSUserServiceImplService,port={http://impl.service.user.ws.login.ams.com/}WSUserServiceImplPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]]
      16:52:24,171 DEBUG [HandlerResolverImpl] getHandlerChain: [type=ENDPOINT,info=[service={http://impl.service.user.ws.login.ams.com/}WSUserServiceImplService,port={http://impl.service.user.ws.login.ams.com/}WSUserServiceImplPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]]
      16:52:24,171 DEBUG [BindingImpl] setHandlerChain: []
      16:52:24,171 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1ca9b2, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@18386c4{ url=null ,addedOrder=0}
      16:52:24,187 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1ca9b2, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@4c326{ url=null ,addedOrder=0}
      16:52:24,218 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1ca9b2, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1839d27{ url=null ,addedOrder=0}
      16:52:24,234 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1ca9b2, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1bf4190{ url=null ,addedOrder=0}
      16:52:24,234 DEBUG [ServiceDelegateImpl] No port configuration for: {http://impl.service.user.ws.login.ams.com/}WSUserServiceImplPort
      16:53:07,484 DEBUG [MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@e4f369 (Thread http-localhost%2F127.0.0.1-8080-8)
      16:53:07,531 DEBUG [ParameterWrapping] wrapRequestParameters: com.ams.login.ws.user.service.impl.SetInactive
      16:53:07,531 DEBUG [EndpointInvocation] setRequestParamValue: [name={http://impl.service.user.ws.login.ams.com/}setInactive,value=com.ams.login.ws.user.service.impl.SetInactive]
      16:53:07,546 DEBUG [SOAP11BindingJAXWS] bindRequestMessage: {http://impl.service.user.ws.login.ams.com/}setInactive
      16:53:07,625 DEBUG [EndpointInvocation] getRequestParamValue: {http://impl.service.user.ws.login.ams.com/}setInactive
      16:53:07,625 DEBUG [EndpointInvocation] transformPayloadValue: com.ams.login.ws.user.service.impl.SetInactive -> com.ams.login.ws.user.service.impl.SetInactive
      16:53:07,671 DEBUG [HandlerChainExecutor] Create a handler executor: []
      16:53:07,671 DEBUG [HandlerChainExecutor] Create a handler executor: []
      16:53:07,671 DEBUG [HandlerChainExecutor] Create a handler executor: [WSSecurityHandlerOutbound]
      16:53:07,671 DEBUG [HandlerChainExecutor] Enter: handleOutBoundMessage
      16:53:07,687 DEBUG [WSSecurityConfigFactory] createConfiguration from: file:/D:/Dev/jboss-4.2.3.GA/server/default/deploy/abs.ear/abs.jar/META-INF/jboss-wsse-client.xml
      16:53:07,765 DEBUG [WSSecurityConfigFactory] Add keystore: file:/D:/Dev/jboss-4.2.3.GA/server/default/deploy/abs.ear/abs.jar/META-INF/client.keystore
      16:53:07,781 DEBUG [WSSecurityConfigFactory] Add truststore: file:/D:/Dev/jboss-4.2.3.GA/server/default/deploy/abs.ear/abs.jar/META-INF/client.truststore
      16:53:07,796 DEBUG [WSSecurityDispatcher] WS-Security config: org.jboss.ws.metadata.wsse.Config@1014f8d
      16:53:07,843 DEBUG [SOAPContentElement] -----------------------------------
      16:53:07,843 DEBUG [SOAPContentElement] Transitioning from OBJECT_VALID to DOM_VALID
      16:53:07,843 DEBUG [ObjectContent] getXMLFragment from Object [xmlType={http://impl.service.user.ws.login.ams.com/}setInactive,javaType=class com.ams.login.ws.user.service.impl.SetInactive]
      16:53:07,859 DEBUG [JAXBSerializer] serialize: [xmlName={http://impl.service.user.ws.login.ams.com/}setInactive,xmlType={http://impl.service.user.ws.login.ams.com/}setInactive]
      16:53:08,093 DEBUG [JAXBSerializer] serialized: <ns1:setInactive xmlns:ns1="http://impl.service.user.ws.login.ams.com/"><arg0>yapsp</arg0></ns1:setInactive>
      16:53:08,093 DEBUG [ObjectContent] xmlFragment: [source=<ns1:setInactive xmlns:ns1="http://impl.service.user.ws.login.ams.com/"><arg0>yapsp</arg0></ns1:setInactive>]
      16:53:08,109 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1ca9b2, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@8189a7{ url=null ,addedOrder=0}
      16:53:08,125 DEBUG [SOAPContentElement] -----------------------------------
      16:53:08,125 DEBUG [WSSecurityDispatcher] Encoding Message:
      <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
      <env:Header/>
      <env:Body>
      <ns1:setInactive xmlns:ns1='http://impl.service.user.ws.login.ams.com/'>
      <arg0>yapsp</arg0>
      </ns1:setInactive>
      </env:Body>
      </env:Envelope>
      16:53:08,140 DEBUG [SecurityStore] loadStore: file:/D:/Dev/jboss-4.2.3.GA/server/default/deploy/abs.ear/abs.jar/META-INF/client.keystore
      16:53:08,171 DEBUG [SecurityStore] loadStore: file:/D:/Dev/jboss-4.2.3.GA/server/default/deploy/abs.ear/abs.jar/META-INF/client.truststore
      16:53:11,781 DEBUG [HandlerChainExecutor] Exit: handleOutBoundMessage with status: true
      16:53:11,937 DEBUG [HTTPRemotingConnection] Get locator for: [addr=http://localhost:8080/amslogin/ws/WSUserService,props={javax.xml.ws.service.endpoint.address=http://localhost:8080/amslogin/ws/WSUserService}]
      16:53:12,046 DEBUG [MicroRemoteClientInvoker] org.jboss.remoting.transport.http.HTTPClientInvoker@8f1a6f connecting
      16:53:12,046 DEBUG [MicroRemoteClientInvoker] org.jboss.remoting.transport.http.HTTPClientInvoker@8f1a6f connected
      16:53:12,046 DEBUG [HTTPRemotingConnection] Remoting metadata: {NoThrowOnError=true, HEADER={SOAPAction="", Content-Type=text/xml; charset=UTF-8}}
      16:53:12,046 DEBUG [HTTPClientInvoker] Setting request header with SOAPAction : ""
      16:53:12,046 DEBUG [HTTPClientInvoker] Setting request header with Content-Type : text/xml; charset=UTF-8
      16:53:12,078 DEBUG [BaseFilter] Filter start request processing at 9/7/09 4:53 PM for uri: /amslogin/ws/WSUserService
      16:53:12,093 DEBUG [BaseFilter] Incoming request has Content-Type header with character encoding UTF-8
      16:53:12,093 DEBUG [BaseFilter] Filter request output to XML
      16:53:12,093 DEBUG [BaseXMLFilter] XML filter service start processing request
      16:53:12,093 DEBUG [Lifecycle] Session started
      16:53:12,093 INFO [Contexts] starting up: org.jboss.seam.security.identity
      16:53:12,093 DEBUG [Contexts] found in application context: org.jboss.seam.security.permissionMapper
      16:53:12,093 INFO [Contexts] starting up: org.jboss.seam.web.session
      16:53:12,093 DEBUG [Contexts] destroying: org.jboss.seam.core.events
      16:53:12,093 DEBUG [RequestHandlerImpl] doPost: /amslogin/ws/WSUserService
      16:53:12,093 DEBUG [FilterServletResponseWrapper] Create ByteArrayServletOutputStream for buffer servlet output
      16:53:12,093 DEBUG [RequestHandlerImpl] handleRequest: jboss.ws:context=amslogin,endpoint=WSUserService
      16:53:12,187 DEBUG [MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@1e62564 (Thread http-localhost%2F127.0.0.1-8080-7)
      16:53:12,187 DEBUG [RequestHandlerImpl] BEGIN handleRequest: jboss.ws:context=amslogin,endpoint=WSUserService
      16:53:12,343 DEBUG [MessageFactoryImpl] createMessage: [contentType=text/xml; charset=UTF-8]
      16:53:12,343 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@182baa7, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@15999a5{ url=null ,addedOrder=0}
      16:53:12,359 DEBUG [HandlerDelegateJAXWS] callRequestHandlerChain: POST
      16:53:12,359 DEBUG [HandlerResolverImpl] initHandlerChain: PRE
      16:53:12,359 DEBUG [HandlerResolverImpl] initHandlerChain: ENDPOINT
      16:53:12,359 DEBUG [HandlerResolverImpl] initHandlerChain: POST
      16:53:12,359 DEBUG [HandlerResolverImpl] addHandler:
      HandlerMetaDataJAXWS:
      type=POST
      name=WSSecurity Handler
      class=class org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer
      params=[]
      protocols=##SOAP11_HTTP
      services=null
      ports=null
      16:53:12,375 DEBUG [HandlerResolverImpl] addHandler:
      HandlerMetaDataJAXWS:
      type=POST
      name=Recording Handler
      class=class org.jboss.wsf.framework.invocation.RecordingServerHandler
      params=[]
      protocols=##SOAP11_HTTP
      services=null
      ports=null
      16:53:12,375 DEBUG [HandlerResolverImpl] getHandlerChain: [type=POST,info=[service={http://impl.service.user.ws.login.ams.com/}WSUserServiceImplService,port={http://impl.service.user.ws.login.ams.com/}WSUserServiceImplPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]]
      16:53:12,375 DEBUG [HandlerChainExecutor] Create a handler executor: [WSSecurity Handler, org.jboss.wsf.framework.invocation.RecordingServerHandler@be6c41]
      16:53:12,375 DEBUG [HandlerChainExecutor] Enter: handleIn BoundMessage
      16:53:12,375 DEBUG [HandlerChainExecutor] Exit: handleIn BoundMessage with status: true
      16:53:12,390 DEBUG [SOAPMessageDispatcher] getDispatchDestination: null
      16:53:12,390 DEBUG [MessageContextJAXWS] Begin response processing
      16:53:12,390 DEBUG [MessageContextAssociation] popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@1e62564 (Thread http-localhost%2F127.0.0.1-8080-7)
      16:53:12,390 DEBUG [MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@17621f4 (Thread http-localhost%2F127.0.0.1-8080-7)
      16:53:12,390 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
      org.jboss.ws.core.CommonSOAPFaultException: Endpoint {http://impl.service.user.ws.login.ams.com/}WSUserServiceImplPort does not contain operation meta data for: {http://www.w3.org/2001/04/xmlenc#}EncryptedData
      at org.jboss.ws.core.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:468)
      at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:177)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)
      at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      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.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:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      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:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      at java.lang.Thread.run(Thread.java:619)

      Helps and guidelines are needed. Thanks