Hi
I am trying to talk to a WebService, which when i use SOAPUI responds
fine with soap 1.1 but resturns not supported when using soap 1.2.
I generate java classes with maven and wsdl2java
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>2.1.2</version>
I also tried to apply a bindings file which looks like this:
<jaxws:bindings xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" wsdlLocation="Parka.wsdl"
xmlns="http://java.sun.com/xml/ns/jaxws"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws">
<jaxws:binding>
<wsdl:soapBinding version="1.1" />
</jaxws:binding>
</jaxws:bindings>
I connect with the JaxWsProxyFactoryBean below.
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(PortalSoap.class);
factory.setAddress(url);
client = (PortalSoap) factory.create();
When using logging interceptor i send a request and receive nothing.
Which corresponds to the behavior in soap ui when using soap 1.2. Then
i get content-length 0 respons.
There are two ports in the wsdl
<wsdl:service name="Portal">
<wsdl:port name="PortalSoap" binding="tns:PortalSoap">
<soap:address location="http://hidden/Service.asmx"/>
</wsdl:port>
<wsdl:port name="PortalSoap12" binding="tns:PortalSoap12">
<soap12:address location="http://hidden/Service.asmx"/>
</wsdl:port>
</wsdl:service>
Is there a way to force or check if cxf uses soap 1.1 or 1.2?
--
Idar