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

wsdl2java fails to generate working client code if web service name or serviceName is "Service"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.0.10, 2.1.4
    • Component/s: Tooling
    • Labels:
      None
    • Environment:

      Windows XP, JDK 1.6.0_11, JAX-WS RI for the web service, and CXF for the client

      Description

      If you create a web service and set the name or serviceName to "Service" like the following,

      @WebService(name = "Service", serviceName = "Service")
      public class Service {
      ...
      }

      and you use wsdl2java to generate client code for the web service. The generated code won't compile. This is because javax.xml.ws.Service is imported in some of the files and it gets confused between this and the generated classes. It would be better if the generated code fully qualified the class names rather than importing them. Or, if knew to look for conflicts and renamed the classes to something else. i.e. maybe just call it Service2 instead.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              jemiller Jon Miller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: