cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Pintilie (JIRA)" <>
Subject [jira] [Created] (CXF-7302) Soap binding detection from wsdl hardcoded to soap 1.1
Date Wed, 29 Mar 2017 09:40:41 GMT
Alex Pintilie created CXF-7302:

             Summary: Soap binding detection from wsdl hardcoded to soap 1.1
                 Key: CXF-7302
             Project: CXF
          Issue Type: Bug
    Affects Versions: 3.1.10
         Environment: Windows 7 Pro SP1, JDK 1.8.1_u111
            Reporter: Alex Pintilie
            Priority: Blocker


I debugged how CXF detects the soap version from the wsdl file and found a *hardcoded* call
(there no other calls) :(
public static SOAPAddress setAddrElement(Definition wsdlDefinition, Port port, ExtensionRegistry
extReg) throws Exception {
    SOAPAddress address  = SOAPBindingUtil.createSoapAddress(extReg, false); // isSOAP12 =
false !
    return address;

// Please call this method in such a way that soap 1.2 detection from wsdl is possible
public static SOAPOperation createSoapOperation(ExtensionRegistry extReg, boolean isSOAP12)
throws WSDLException {
	ExtensibilityElement extElement = null;
	if (isSOAP12) {
		extElement = extReg.createExtension(BindingOperation.class, 
		        new QName(WSDLConstants.NS_SOAP12, "operation"));
	} else {
		extElement = extReg.createExtension(BindingOperation.class, 
		        new QName(WSDLConstants.NS_SOAP11, "operation"));
	return getSoapOperation(extElement);

The wsdl file has Soap 1.2 declared:

{{xmlns:soap = ""}}.

I call the server and get a response back followed by this exception:

{{org.apache.cxf.binding.soap.SoapFault: A SOAP 1.2 message is not valid when sent to a SOAP
1.1 only endpoint.}}

// setting the soap12 binding has no effect

return jaxWsProxyFactoryBean.create();

Please correct me if I'm wrong.


This message was sent by Atlassian JIRA

View raw message