-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
jbossws-1.0RC1
-
None
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.
Code:
class MyObject
{
protected String name;
MyObject() {};
String getName()
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()
void setMyObject(MyObject value)
{ myObject = value; }MyObject[] getMyObjects()
{ return myObjects; }void setMyObjects(MyObject[] values)
{ myObjects = values; }}
WS SEI:
Result getResult()
{ return result; }