Hi, we porteted the SOAP implementation from Axis2 to CXF.
Now we recognized that with Axis2 the ReplyTo Header was set in the SOAP response. <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlsoapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header xmlwsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <ServiceGroupId xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:c5b7b50bba3d4552978c4615ec9c793</ServiceGroupId> <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To> <wsa:ReplyTo> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> <wsa:ReferenceParameters> <axis2:ServiceGroupId xmlaxis2="http://ws.apache.org/namespaces/axis2">urn:uuid:d0263a1c-8b26-4f18-9379-e0c573e1a399</axis2:ServiceGroupId> </wsa:ReferenceParameters> </wsa:ReplyTo> <wsa:MessageID>urn:uuid:7eded005-f9a4-4a4e-99c0-b027b56471a6</wsa:MessageID> <wsa:Action>urn:setMyResponse</wsa:Action> <wsa:RelatesTo>6a045fc6-1a29-4990-b209-be023d06e4bc</wsa:RelatesTo> </soapenv:Header> Because we are using TomEE 8 the addressing feature is set with the obenejb-jar.xml <openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1"> <ejb-deployment ejb-name="MyWebservice"> <properties> cxf.jaxws.in-interceptors = wss4j cxf.jaxws.features = addressingFeature,addressingFeatureResponses </properties> </ejb-deployment> </openejb-jar> In resources.xml the declaration is: <?xml version="1.0" encoding="UTF-8"?> <resources> <!-- In interceptors --> <Service id="wss4j" class-name="org.apache.openejb.server.cxf.config.WSS4JInInterceptorFactory" factory-name="create"> action = UsernameToken passwordCallbackClass = com.company.b.b.PasswordHandler </Service> <!-- Features --> <Service id="addressingFeature" class-name="org.apache.cxf.ws.addressing.WSAddressingFeature"/> <Service id="addressingFeatureResponses" class-name="org.apache.cxf.ws.addressing.WSAddressingFeature.AddressingResponses"/> </resources> I added now addressingFeatureResponses but the resopnse is 404 not found. Does anybody know how to enable the ReplyTo header with TomEE? Thanks, Markus
