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

CXF codegen: incorrect portName annotation.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.2
    • 2.1.3
    • None
    • None

    Description

      I'm generating sources with CXF maven plugin

      <artifactId>cxf-codegen-plugin</artifactId>
      <version>2.1.2</version>

      I have just noticed that I get incorrect portName annotation.

      The full service description and other relative files are available at http://docs.oasis-open.org/wsrp/v2/

      (http://docs.oasis-open.org/wsrp/v2/wsrp-service.wsdl)
      === service.wsdl =================================
      ...
      <wsdl:service name="WSRPService">
      ...
      <wsdl:port binding="v2bind:WSRP_v2_ServiceDescription_Binding_SOAP"
      name="WSRP_v2_ServiceDescription_Service">
      <soap:address location="http://my.service:8082/WSRPService"/>
      </wsdl:port>
      <wsdl:port binding="v2bind:WSRP_v2_Registration_Binding_SOAP"
      name="WSRP_v2_Registration_Service">
      <soap:address location="http://my.service:8082/WSRPService"/>
      </wsdl:port>
      ...
      =============================================

      Generated sources:

      ===WSRPV2RegistrationPortTypeImpl=================================
      @javax.jws.WebService(name = "WSRPV2RegistrationPortType",
      serviceName = "WSRPService",
      portName =
      "WSRP_v2_ServiceDescription_Service",.....) <<--- HERE is an error
      public class WSRPV2RegistrationPortTypeImpl implements
      WSRPV2RegistrationPortType {
      =============================================================

      ===WSRPV2ServiceDescriptionPortTypeImpl=================================
      @javax.jws.WebService(name = "WSRPV2ServiceDescriptionPortType",
      serviceName = "WSRPService",
      portName = "WSRP_v2_ServiceDescription_Service",.....)
      public class WSRPV2ServiceDescriptionPortTypeImpl implements
      WSRPV2ServiceDescriptionPortType {
      ==================================================================

      PS: related mail thread at http://www.nabble.com/CXF-codegen%3A-incorrect-portName-annotation.-to20441105.html

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dkulp Daniel Kulp
            exoman Alexey Zavizionov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment