I am using dynamic client to access web services and it works fine if I use
bean as a return value.
But I have a problem to get back list of beans, for ex. I have a method
defined as
List<SimpleBean> foo();
How should I register List<SimpleBean> datatype?
I tried the following code without success:
BeanType bt2 = new BeanType();
bt2.setSchemaType(new QName("http://acme.com",
"ArrayOfSimpleBean"));
bt2.setTypeClass(List.class);
typeMapping.register(bt2);
BeanType bt3 = new BeanType();
bt3.setSchemaType(new QName("http://acme.com", "SimpleBean"));
bt3.setTypeClass(SimpleBean.class);
typeMapping.register(bt3);
....
List<SimpleBean> listOfBeans= (List<SimpleBean>) response[0];
trying to access listOfBeans causes an exception.
Any ideas or pointers how to do it?
Thank you,
Roman
--
View this message in context:
http://www.nabble.com/dynamic-client-and-generics-tf3523320.html#a9829446
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email