Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-3457

JBossWS - wsprovide tool sets returning object's name to the "return" in the java file when no name is provided in the endpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.3.0.GA_CP08
    • 4.3.0.GA_CP06
    • Web Services
    • None
    • Release Notes
    • Workaround Exists
    • Hide

      The workaround is to annotate the endpoint to define names for the return object in each webmethod

      Show
      The workaround is to annotate the endpoint to define names for the return object in each webmethod

    Description

      I use JBDS to create a "web service" based on a POJO. It generates some artifacts included some java source files.
      In the file named XXXResponse.java, there's some error code like:

      @XmlElement(namespace = "", name = "return")
      private String return;
      public String getReturn()

      { return this.return; }

      public void setReturn(String return1)

      { this.return = return; }

      "return" is a java key word, and can not be used as variable. This has been verified by
      a) JBDS generation of the webservice (Bottom-Up)
      b) wsprovide.sh (myself) -k
      c) wsprovide.bat (customer) by running JBDS on Windows

      The class itself when decompiled seems to have correctly the name to "_return"

      Hence, there seems to be an error in wsprovide tool creating the .java files (perhaps the wsdl as well)

      Attachments

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              skoussou Stelios Koussouris (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: