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

Compile errors in the ADB generated stub (wsdl is attached)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4
    • None
    • adb
    • None
    • winxp, jdk15

    Description

      Type mismatch: cannot convert from String to StockQuoteStub.String compile error can be seen in the generated stub. The wsdl is attached here with.

      Steps to reproduce:
      ================
      1. Generate stub using the following options
      wsdljava -uri http://www.webservicex.net/stockquote.asmx?wsdl -o out

      2. Import the generated stub in to an IDE with the Axis2 libraries in class path. You will notice compilation failure at the following method in StockQuoteStub.java
      private static synchronized String getUniqueSuffix(){
      // reset the counter if it is greater than 99999
      if (counter > 99999)

      { counter = 0; }

      counter = counter + 1;
      return Long.toString(System.currentTimeMillis()) + "_" + counter; //Complile failure

      }

      Attachments

        1. stockquote.wsdl
          5 kB
          Charitha Kankanambe

        Activity

          People

            amilachinthaka Amila Chinthaka Suriarachchi
            charitha Charitha Kankanambe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: