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

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

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment