add context-handlers.xml
ppoliani Dec 3, 2011 7:44 PMAs i read in the development guide about ws-atomic tramsaction, i have ti register the JAX-WS server-side context handler with the deployed web services. As i understand, i have to include the context-handler.xml
file into the project and then use the javax.jws.HandlerChain
annotation.
I develop my servives following the WSDL to java approach and build the project with maven in eclipse. How can i accomplish this task. I have been searching but could not find anything.
I managed to register my client for the transaction (following the example provided with jbossTS), however i am strugling to do the same for the service.
When the clients calls the service, i get the following exception:
javax.xml.ws.soap.SOAPFaultException: MustUnderstand headers: [{http://docs.oasis-open.org/ws-tx/wscoor/2006/06}CoordinationContext] are not understood.
org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:84)
org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:107)
org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
org.jboss.ws.core.CommonClient.invoke(CommonClient.java:381)
org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
$Proxy572.checkFlightAvailability(Unknown Source)
org.comp6017.JaxWsClient.Client.testTransaction(Client.java:247)
org.comp6017.JaxWsClient.Client.doGet(Client.java:185)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)