Jax-ws binding - the method is not renamed, but the classes

I feel stuck.

Here is the wsdl: http://www.doffin.no/ws/tdeservice.asmx?wsdl

I generate classes using the apache maven cxf plugin. Because of the names with the sequence "X0020", I have two classes that I want to rename.

  • one generated for wsdl: definitions / wsdl: service [@ name = 'TDE_x0020_Connect'];

  • another for wsdl: definitions / wsdl: portType [@ name = 'TDE_x0020_ConnectSoap'].

I also want the getter method of the first class that returns the second to be renamed. I tried using the bindings file:

<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">
    <jaxws:bindings node="wsdl:definitions/wsdl:service[@name='TDE_x0020_Connect']">
        <jaxws:class name="TdeConnect"/>
    </jaxws:bindings>
    <jaxws:bindings node="wsdl:definitions/wsdl:portType[@name='TDE_x0020_ConnectSoap']">
        <jaxws:class name="TdeConnectSoap"/>
    </jaxws:bindings>
    <jaxws:bindings node="wsdl:definitions/wsdl:service[@name='TDE_x0020_Connect']/wsdl:port[@name='TDE_x0020_ConnectSoap']">
        <jaxws:method name="getTdeConnectSoap"/>
    </jaxws:bindings>
</jaxws:bindings>

However, the classes are renamed, and the method is not:

@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);
}

I feel like I am doing something wrong, could you give a hint or a link to a comprehensive guide to the problem?

+3
1

, CXF ( CXF-5783).

, , Apache.

0

All Articles