prasadpav
12 years agoNew Contributor
SOAP/JMS binding import
Hi,
I'm trying to import WSDL 1.1 with SOAP/JMS bindings. The actual WSDL example which I'm using is from W3C.org website - "http://www.w3.org/TR/soapjms/". Section "C Complete WSDL 1.1 Example (Non-Normative)". The SOAP version that is used in this WSDL is SOAP 1.1. However, when I import the WSDL and create a test suite messages, the request/response messages are generated in SOAP 1.2 envelope. When I checked the SOAPUI source code "com.eviware.soapui.impl.wsdl.support.soap.SoapJMSBindingImporter", it appears that SOAP 1.2 is always used. Relevant code below:
Shouldn't the SOAP version be derived from the WSDL namespace - "http://schemas.xmlsoap.org/wsdl/soap/"?
i.e.
SOAP 1.1 if the WSDL uses "http://schemas.xmlsoap.org/wsdl/soap/" namespace and
SOAP 1.2 if the WSDL uses "http://schemas.xmlsoap.org/wsdl/soap12/"
Thanks.
I'm trying to import WSDL 1.1 with SOAP/JMS bindings. The actual WSDL example which I'm using is from W3C.org website - "http://www.w3.org/TR/soapjms/". Section "C Complete WSDL 1.1 Example (Non-Normative)". The SOAP version that is used in this WSDL is SOAP 1.1. However, when I import the WSDL and create a test suite messages, the request/response messages are generated in SOAP 1.2 envelope. When I checked the SOAPUI source code "com.eviware.soapui.impl.wsdl.support.soap.SoapJMSBindingImporter", it appears that SOAP 1.2 is always used. Relevant code below:
WsdlInterface iface = ( WsdlInterface )project.addNewInterface( name, WsdlInterfaceFactory.WSDL_TYPE );
iface.setBindingName( binding.getQName() );
iface.setSoapVersion( SoapVersion.Soap12 );
Shouldn't the SOAP version be derived from the WSDL namespace - "http://schemas.xmlsoap.org/wsdl/soap/"?
i.e.
SOAP 1.1 if the WSDL uses "http://schemas.xmlsoap.org/wsdl/soap/" namespace and
SOAP 1.2 if the WSDL uses "http://schemas.xmlsoap.org/wsdl/soap12/"
Thanks.