I am currently working on a Web Service client using CXF without Spring configuration files.
It works pretty well but I cannot figure out how to set the binding SoapVersion using the Java Api. Using a Spring file this is done as the following:
<jaxws:binding>
<soap:soapBinding version="1.2"/>
</jaxws:binding>
Do you guys know how to do this in the Java code (on the Port, on the SOAPBinding...)?
Thanks in advance for your help!
EDIT----------------------
I'm still stuck with this problem... I tried to add the SOAPBinding annotation on the interface as suggested in one of the response below but it didn't work... I'm still searching for a way to manually configure my PortType / Binding / Bus to use Soap 1.2...
Any ideas?
EDIT----------------------
Problem solved! Actually I answered my own question: see below...
Thanks!
Object implementor = new DiscoveryLookupPortImpl(); Endpoint.publish("udp://239.255.255.250:3702", implementor);
wherepublic class DiscoveryLookupPortImpl implements DiscoveryLookupPort
– Wabble