You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Mohammad Shamsi <m....@gmail.com> on 2008/04/28 08:54:12 UTC

can i send and receive java.util.List as a JAX WS WebService Parameter ???

hi all,

i want know that what kind of Java Data Types i can use as JAX WS parameters
or return type. (sand and received SOAP object)

-- 
sincerely yours
M. H. Shamsi

Re: can i send and receive java.util.List as a JAX WS WebService Parameter ???

Posted by Daniel Kulp <dk...@apache.org>.
On Monday 28 April 2008, Mohammad Shamsi wrote:
> hi all,
>
> i want know that what kind of Java Data Types i can use as JAX WS
> parameters or return type. (sand and received SOAP object)

java.util.List is one of the types that is mandated by the JAX-WS and 
JAXB specifications, so that should work fine.

The other collection types require a bit of work on your part though.  
With 2.1, we have a sample (java_first_jaxws) that shows how to send a 
Map.  You basically need to write special type adapters that map the 
type you "want" to the types that JAXB supports.  For the most part, 
it's pretty simple, but it can become a bit complex.


-- 
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog