title: jax-ws binding - method is not renamed, while classes are
body: <p>I feel I am stuck.</p>
  
  <p>Here is wsdl:
  <a href="http://www.doffin.no/ws/tdeservice.asmx?wsdl" rel="nofollow">http://www.doffin.no/ws/tdeservice.asmx?wsdl</a></p>
  
  <p>I generate classes using apache maven cxf plugin. Because of the names with sequence "X0020" I have two classes which I want to rename.</p>
  
  <ul>
  <li><p>one generated for wsdl:definitions/wsdl:service[@name='TDE_x0020_Connect'];</p></li>
  <li><p>another for wsdl:definitions/wsdl:portType[@name='TDE_x0020_ConnectSoap'].</p></li>
  </ul>
  
  <p>Also I want the getter method of the first class, which returns the second, to be renamed. I tried to use bindings file:</p>
  
  <pre><code>&lt;jaxws:bindings
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
      wsdlLocation="TdeService.wsdl"
      xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"&gt;
      &lt;jaxws:bindings node="wsdl:definitions/wsdl:service[@name='TDE_x0020_Connect']"&gt;
          &lt;jaxws:class name="TdeConnect"/&gt;
      &lt;/jaxws:bindings&gt;
      &lt;jaxws:bindings node="wsdl:definitions/wsdl:portType[@name='TDE_x0020_ConnectSoap']"&gt;
          &lt;jaxws:class name="TdeConnectSoap"/&gt;
      &lt;/jaxws:bindings&gt;
      &lt;jaxws:bindings node="wsdl:definitions/wsdl:service[@name='TDE_x0020_Connect']/wsdl:port[@name='TDE_x0020_ConnectSoap']"&gt;
          &lt;jaxws:method name="getTdeConnectSoap"/&gt;
      &lt;/jaxws:bindings&gt;
  &lt;/jaxws:bindings&gt;
  </code></pre>
  
  <p>However, classes are renamed while method is not:</p>
  
  <pre><code>@WebEndpoint(name = "TDE_x0020_ConnectSoap")
  public TdeConnectSoap getTDEX0020ConnectSoap() {
      return super.getPort(TDEX0020ConnectSoap, TdeConnectSoap.class);
  }
  @WebEndpoint(name = "TDE_x0020_ConnectSoap")
  public TdeConnectSoap getTDEX0020ConnectSoap(WebServiceFeature... features) {
      return super.getPort(TDEX0020ConnectSoap, TdeConnectSoap.class, features);
  }
  </code></pre>
  
  <p>I feel I am doing something wrong, could you please give a hint or a link to comprehensive manual about the problem?</p>