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

wsdl2java command generated nested inner classes with same name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.7.2
    • Invalid
    • JAX-WS Runtime
    • None
    • Windows and Unix

    • Unknown

    Description

      We are using wsdl2java command for generating java classes from a wsdl url. The details are:

      Apache CXF version: 2.7.2
      Java version: 1.7.0_10

      The CA certificate for specified hostname in the wsdl url is added to jre/lib/security/cacerts trusted store, and the wsdl2java using the same java command. The command we are executing given below:

      >./wsdl2java -d /home/ibs01/generated/ <wsdlurl>

      The wsdlurl looks like : https://hostaname/aa/XXX_BookingManager?WSDL

      Note: For security issues we cannot publish the full url

      The command executed successfully and generated java classes output to specified directory. But some of the classes doesn’t compile due to following issues;

      1. Some classes contain nested inner classes (static) with same name

      Eg:

      Class Response {

      public static class AbcType{

      @XmlElement(name = "AbcType", nillable = true)
      protected AbcType abcType;;

      public static class AbcType

      { //Duplicated inner class }

      }

      }
      2. Some classes refer static variable from non-static manner

      Can you please guide us to resolve this issue. We are sure the web services implementation must be perfect (it is a production environment and using by many consumers). We suspect we missed something here, if anyone came across with this type of issue please help us. If we missed any option in wsdl2java command or missed any configuration please guide. We get to know that the web services implemented in .Net framework.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              binu.surendran@ibsplc.com Binu Surendran
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: