You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sandor Racz (JIRA)" <ji...@apache.org> on 2014/06/26 16:32:24 UTC
[jira] [Reopened] (CXF-5783) Port getter method not renamed in the
generated Service class
[ https://issues.apache.org/jira/browse/CXF-5783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandor Racz reopened CXF-5783:
------------------------------
Thanks for the fix.
I've made a test with the 2.6.15-SNAPSHOT. Now the port getter method name is correct - {{getMyCustomPort()}} - but if I generate a client, I have the following issues:
*1.* The generated client class name is still contains the old port name:
{code:java}
Greeter_SoapPort_Client.java
{code}
instead of
{code:java}
Greeter_MyCustomPort_Client.java
{code}
*2.* The client class didn't compile, because it contains the wrong port getter method reference:
{code:java}
Greeter port = ss.getSoapPort();
{code}
instead of
{code:java}
Greeter port = ss.getMyCustomPort();
{code}
> 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
> Assignee: Daniel Kulp
> Labels: jaxws, wsdl2java
> Fix For: 2.6.15, 2.7.12, 3.0.1
>
> 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)