title: CXF How to set SoapVersion on CXF port without Spring
body: <p>I am currently working on a Web Service client using CXF without Spring configuration files.</p>
  
  <p>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:</p>
  
  <pre><code>&lt;jaxws:binding&gt;
      &lt;soap:soapBinding version="1.2"/&gt;
  &lt;/jaxws:binding&gt;
  </code></pre>
  
  <p>Do you guys know how to do this in the Java code (on the Port, on the SOAPBinding...)?</p>
  
  <p>Thanks in advance for your help!</p>
  
  <p>EDIT----------------------</p>
  
  <p>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...</p>
  
  <p>Any ideas?</p>
  
  <p>EDIT----------------------</p>
  
  <p>Problem solved! Actually I answered my own question: see below...</p>
  
  <p>Thanks!</p>