Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2477

Support generics in wrapper classes

XMLWordPrintable

      When running wsprovide with -keep option (ie. generating and keeping the artifacts sources), we currently do not support generics in wrapper classes.
      So for a SEI like this:
      @WebService(targetNamespace = "http://foo.bar.com/calculator")
      public class CalculatorBean
      {
      @WebMethod
      public Set<Integer> getKeys(HashMap<Integer, String> map)

      { if (map != null) return map.keySet(); else return null; }

      }

      we get the following wrapper
      @XmlRootElement(name = "getKeys", namespace = "http://foo.bar.com/calculator")
      @XmlType(name = "getKeys", namespace = "http://foo.bar.com/calculator")
      @XmlAccessorType(XmlAccessType.FIELD)
      public class GetKeys {

      @XmlElement(name = "arg0", namespace = "")
      private HashMap arg0;

      public HashMap getArg0()

      { return this.arg0; }

      public void setArg0(HashMap arg0) { this.arg0 = arg0; }

      }

      instead of

      @XmlRootElement(name = "getKeys", namespace = "http://foo.bar.com/calculator")
      @XmlType(name = "getKeys", namespace = "http://foo.bar.com/calculator")
      @XmlAccessorType(XmlAccessType.FIELD)
      public class GetKeys {

      @XmlElement(name = "arg0", namespace = "")
      private HashMap<Integer, String> arg0;

      public HashMap<Integer, String> getArg0() { return this.arg0; }

      public void setArg0(HashMap<Integer, String> arg0)

      { this.arg0 = arg0; }

      }

              rhn-support-asoldano Alessio Soldano
              rhn-support-asoldano Alessio Soldano
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: