Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-6015

Java code generated from WSDL does not compile if a "string" element is defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.8.1
    • None
    • None
    • Axis 1.8.0 (adb databinding)
      OpenJDK 17
      Maven 3.8.1
      Eclipse 2021-09

    Description

      If a "string" element is defined in the WSDL, these maps found in the generated client stub will try to use that local String class, instead of java.lang.String:

        // hashmaps to keep the fault mapping
        private java.util.Map<org.apache.axis2.client.FaultMapKey, String> faultExceptionNameMap =
            new java.util.HashMap<org.apache.axis2.client.FaultMapKey, String>();
        private java.util.Map<org.apache.axis2.client.FaultMapKey, String> faultExceptionClassNameMap =
            new java.util.HashMap<org.apache.axis2.client.FaultMapKey, String>();
        private java.util.Map<org.apache.axis2.client.FaultMapKey, String> faultMessageMap =
            new java.util.HashMap<org.apache.axis2.client.FaultMapKey, String>();

      If I replace these String with java.lang.String, the project compiles fine.

      Attachments

        Activity

          People

            robertlazarski Robert Lazarski
            ginko29 David
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: