[ 
https://issues.apache.org/jira/browse/CXF-5783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sandor Racz updated CXF-5783:
-----------------------------

    Description: 
I have the following WSDL service definition:

{code:xml}
...
<wsdl:service name="SOAPService">
    <wsdl:port name="SoapPort" binding="tns:Greeter_SOAPBinding">
        <soap:address location="http://localhost:8080"; />
    </wsdl:port>
</wsdl:service>
...
{code}

During the class generation (using apache maven cxf plugin) I want to change 
the port getter method with this custom binding code fragment:

{code:xml}
...
<jaxws:bindings 
node="wsdl:definitions/wsdl:service[@name='SOAPService']/wsdl:port[@name='SoapPort']">
    <jaxws:method name="getMyCustomPort" />
</jaxws:bindings>
...
{code}

But in the generated code the method name does not change, the default  
{{getSoapPort()}} remains.

  was:
I have the following WSDL service definition:

{code:xml}
...
<wsdl:service name="SOAPService">
    <wsdl:port name="SoapPort" binding="tns:Greeter_SOAPBinding">
        <soap:address location="http://localhost:8080"; />
    </wsdl:port>
</wsdl:service>
...
{code}

I want to change the port getter method with this custom binding code fragment:

{code:xml}
...
<jaxws:bindings 
node="wsdl:definitions/wsdl:service[@name='SOAPService']/wsdl:port[@name='SoapPort']">
    <jaxws:method name="getMyCustomPort" />
</jaxws:bindings>
...
{code}

But in the generated code the method name does not change, the default  
{{getSoapPort()}} remains.


> Port getter method not renamed in the generated Service class
> -------------------------------------------------------------
>
>                 Key: CXF-5783
>                 URL: https://issues.apache.org/jira/browse/CXF-5783
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.11, 2.6.14
>            Reporter: Sandor Racz
>              Labels: jaxws, wsdl2java
>         Attachments: test.wsdl, test_binding.xml
>
>
> I have the following WSDL service definition:
> {code:xml}
> ...
> <wsdl:service name="SOAPService">
>     <wsdl:port name="SoapPort" binding="tns:Greeter_SOAPBinding">
>         <soap:address location="http://localhost:8080"; />
>     </wsdl:port>
> </wsdl:service>
> ...
> {code}
> During the class generation (using apache maven cxf plugin) I want to change 
> the port getter method with this custom binding code fragment:
> {code:xml}
> ...
> <jaxws:bindings 
> node="wsdl:definitions/wsdl:service[@name='SOAPService']/wsdl:port[@name='SoapPort']">
>     <jaxws:method name="getMyCustomPort" />
> </jaxws:bindings>
> ...
> {code}
> But in the generated code the method name does not change, the default  
> {{getSoapPort()}} remains.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to