This content has been marked as final.
Show 5 replies
-
1. Re: jbossws1.0.1.GA, JSR-181, Collections and an Exception
fheldt Jun 15, 2006 6:30 AM (in response to cb.betz)Hello Chris,
you cannot return a Collection in a WebService, see http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQSupportedDataTypes
Normaly the best way is to change the return type to an array and return listUsers.toArray().
Frank -
2. Re: jbossws1.0.1.GA, JSR-181, Collections and an Exception
cb.betz Jun 15, 2006 9:59 AM (in response to cb.betz)Sorry, ment Collection, which _should_ be allowed according to a JavaOne 2006 presentation on JAX-WS 2.0. But yes - I could not find any information on this in the final release of the specification.
-
3. Re: jbossws1.0.1.GA, JSR-181, Collections and an Exception
cb.betz Jun 15, 2006 10:07 AM (in response to cb.betz)Ah! I did not make a mistake in my code, but in my posting options. I ment (and typed)
Collection<UserBean>
. -
4. Re: jbossws1.0.1.GA, JSR-181, Collections and an Exception
heiko.braun Jun 16, 2006 7:25 AM (in response to cb.betz)
Sorry, ment Collection, which _should_ be allowed according to a JavaOne 2006 presentation on JAX-WS 2.0. But yes - I could not find any information on this in the final release of the specification.
The current release is based on JAXRPC-1.1. JAX-WS is on the raodmap. fheldt is right with his comments... -
5. Re: jbossws1.0.1.GA, JSR-181, Collections and an Exception
gapon Aug 10, 2006 5:16 PM (in response to cb.betz)when i use xxx.toArray() i get this exception:
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client faultSubcode: faultString: java.lang.ClassCastException: [Ljava.lang.Object; faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException: [Ljava.lang.Object; at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)