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

wsdl2java generates compiler warning

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.2.3
    • 2.1.7, 2.2.4
    • Tooling
    • None
    • openjdk 1.6

    Description

      wsdl2java generates compiler warning for document literal bare service.
      Both javax.jws.soap.SOAPBinding and javax.jws.soap.SOAPBinding.ParameterStyle are imported, but the ParameterStyle is referenced through SOAPBinding. This generates an unused import warning on the line:
      import javax.jws.soap.SOAPBinding.ParameterStyle;

      (wsdl and generated classes are attached)

      package org.example.person;

      import javax.jws.WebMethod;
      import javax.jws.WebParam;
      import javax.jws.WebResult;
      import javax.jws.WebService;
      import javax.jws.soap.SOAPBinding;
      import javax.jws.soap.SOAPBinding.ParameterStyle;
      import javax.xml.bind.annotation.XmlSeeAlso;

      /**

      • This class was generated by Apache CXF 2.2.3
      • Wed Sep 02 11:11:05 CEST 2009
      • Generated source version: 2.2.3
      • */

      @WebService(targetNamespace = "http://www.example.org/person/", name = "PersonPortType")
      @XmlSeeAlso(

      {ObjectFactory.class}

      )
      @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
      public interface PersonPortType {

      @WebResult(name = "person", targetNamespace = "", partName = "person")
      @WebMethod(action = "http://www.example.org/person/getPerson")
      public Person getPerson(
      @WebParam(partName = "id", name = "id", targetNamespace = "")
      int id
      );
      }

      Attachments

        1. wsdl2java_compiler_warning.tgz
          3 kB
          Frode Nerbråten

        Issue Links

          Activity

            People

              dkulp Daniel Kulp
              froden Frode Nerbråten
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: