Hello! I try to create a own STS service, and I need to use soap 1.2 First I created a own service based on the DefaultSecurityTokenServiceProvider:
@WebService(targetNamespace = "http://docs.oasis-open.org/ws-sx/ws-trust/200512/", portName = "UT_Port", serviceName = "SecurityTokenService", wsdlLocation = "WEB-INF/wsdl/ws-trust-1.4-service.wsdl") @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_MTOM_BINDING) public class SecurityTokenServiceProvider extends org.apache.cxf.ws.security.sts.provider.SecurityTokenServiceProvider { (the body is exactly the same, I'd like to rewrite later) I set up the cxf-servlet.xml: <jaxws:endpoint xmlns:tns="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" id="securitytokenserviceprovider" implementor="myclass.sts.SecurityTokenServiceProvider" wsdlLocation="WEB-INF/wsdl/ws-trust-1.4-service.wsdl" endpointName="tns:UT_Port" serviceName="tns:SecurityTokenService" address="/SecurityTokenServiceProvider" > <jaxws:binding> <soap:soapBinding mtomEnabled="true" version="1.2"/> </jaxws:binding> <jaxws:features> <bean class="org.apache.cxf.feature.LoggingFeature" /> </jaxws:features> </jaxws:endpoint> but, when I send the test request with soap 1.2 i get the error <faultcode>soap:VersionMismatch</faultcode> <faultstring>A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint.</faultstring> I try everything what i found in the internet (@BindingType etc) but don't work. I use cxf v3.2.1 Please some advice on how to solve this? Thanx Csaba