2 Replies Latest reply on Jan 26, 2006 2:05 PM by Jason Greene

    JBossWS WSDL not creating type for Array Object

    Julian Htun Newbie

      JBossWS is not generating the type information for Array Type Object. The type information for class Result is missing in WSDL.

      If you look at the class below, the "Hacked" Result class will generate WSDL correctly.

      Definitely it's a bug.

      class MyObject
      {
       protected String name;
       MyObject() {};
       String getName() { return "myName"; }
       void setName(String value) { name = value; }
      }
      
      
      /** Normal Result Class */
      
      class Result
      {
       Result() {}
       protected long id;
       protected MyObject[] myObjects;
      
       long getId() { return id; }
       void getId(long value) { id = value; }
      
       MyObject[] getMyObjects() { return myObjects; }
       void setMyObjects(MyObject[] values) { myObjects = values; }
      }
      
      /** Hacked Result Class */
      
      class Result
      {
       Result() {}
       protected long id;
       protected MyObject[] myObjects;
      
       long getId() { return id; }
       void getId(long value) { id = value; }
      
       /** A hack to fool JBossWS to generate the type information */
       MyObject getMyObject() { return myObject; }
       void setMyObject(MyObject value) { myObject = value; }
      
       MyObject[] getMyObjects() { return myObjects; }
       void setMyObjects(MyObject[] values) { myObjects = values; }
      }
      
      
      WS SEI:
      
      Result getResult() { return result; }