Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5783

Port getter method not renamed in the generated Service class

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Unknown

      Description

      I have the following WSDL service definition:

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

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

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

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

        Attachments

        1. test.wsdl
          2 kB
          Sandor Racz
        2. test_binding.xml
          0.6 kB
          Sandor Racz

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              ralex Sandor Racz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: