You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Kaleb Walton <kd...@us.ibm.com> on 2007/09/18 23:59:12 UTC
HashMap as parameter for web service call
I cannot seem to get a HashMap to work as a parameter when making a web
service call via PHP. Has anyone else experienced this? I want to
encapsulate my parameters in a more complex object that extends HashMap.
Regards,
Kaleb
Re: HashMap as parameter for web service call
Posted by James Mao <ja...@iona.com>.
I can give you more information on this (you probably already know), in
java2wsdl, if we detected there's java.util.Date, java.util.Calendar,
we will generate the binding file automatically, so if you generate the
stub from the generated wsdl and binding files, you got the DateAdapter
already.
But we don't support the java.sql.Timestamp yet.
We can do the same for the HashMap as well.
James
> FYI , this blog shows you how to use HashMap in the JAXB.
> http://weblogs.java.net/blog/kohsuke/archive/2005/04/xmladapter_in_j.html
>
> Willem.
> James Mao wrote:
>> Jaxb is quite plugable, you can use XmlTypeAdapter to
>> marshal/unarshal to/from HashMap
>>
>> James
>>
>>> HashMap is not supported by JAXB binding. More discussions about
>>> this can be found from
>>> http://www.nabble.com/DataBinding-problems-%28Timestamp-and-HashMap%29-using-JAXB-tf4283645.html#a12193877
>>>
>>>
>>> Cheers,
>>> Jervis
>>>
>>>
>>>> -----Original Message-----
>>>> From: Kaleb Walton [mailto:kdwalton@us.ibm.com]
>>>> Sent: 2007?9?19? 5:59
>>>> To: cxf-user@incubator.apache.org
>>>> Subject: HashMap as parameter for web service call
>>>>
>>>>
>>>>
>>>> I cannot seem to get a HashMap to work as a parameter when making a
>>>> web
>>>> service call via PHP. Has anyone else experienced this? I want to
>>>> encapsulate my parameters in a more complex object that extends
>>>> HashMap.
>>>>
>>>> Regards,
>>>> Kaleb
>>>>
>>>>
>>>
>>> ----------------------------
>>> IONA Technologies PLC (registered in Ireland)
>>> Registered Number: 171387
>>> Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
>>> Ireland
>>>
>>>
>>
>
Re: HashMap as parameter for web service call
Posted by Willem Jiang <ni...@iona.com>.
FYI , this blog shows you how to use HashMap in the JAXB.
http://weblogs.java.net/blog/kohsuke/archive/2005/04/xmladapter_in_j.html
Willem.
James Mao wrote:
> Jaxb is quite plugable, you can use XmlTypeAdapter to marshal/unarshal
> to/from HashMap
>
> James
>
>> HashMap is not supported by JAXB binding. More discussions about this
>> can be found from
>> http://www.nabble.com/DataBinding-problems-%28Timestamp-and-HashMap%29-using-JAXB-tf4283645.html#a12193877
>>
>>
>> Cheers,
>> Jervis
>>
>>
>>> -----Original Message-----
>>> From: Kaleb Walton [mailto:kdwalton@us.ibm.com]
>>> Sent: 2007?9?19? 5:59
>>> To: cxf-user@incubator.apache.org
>>> Subject: HashMap as parameter for web service call
>>>
>>>
>>>
>>> I cannot seem to get a HashMap to work as a parameter when making a web
>>> service call via PHP. Has anyone else experienced this? I want to
>>> encapsulate my parameters in a more complex object that extends
>>> HashMap.
>>>
>>> Regards,
>>> Kaleb
>>>
>>>
>>
>> ----------------------------
>> IONA Technologies PLC (registered in Ireland)
>> Registered Number: 171387
>> Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
>> Ireland
>>
>>
>
Re: HashMap as parameter for web service call
Posted by James Mao <ja...@iona.com>.
Hi Kaleb,
In your types classes (the one has HashMap field), you have to add the
Adapter, and the jaxb will use this adapter automatically
You don't need to change the spring configuration.
Willem gave a quite useful link
http://weblogs.java.net/blog/kohsuke/archive/2005/04/xmladapter_in_j.html
Follow the steps, you should get the HashMap
James
> Great, at least there's some light at the end of the tunnel!
>
> Where would I plug it into a spring configuration - I'm using
> <simple:server>'s?
>
> Thanks!
>
> Regards,
> Kaleb
>
> Inactive hide details for James Mao ---09/18/2007 11:23:14 PM---Jaxb
> is quite plugable, you can use XmlTypeAdapter to marshal/uJames Mao
> ---09/18/2007 11:23:14 PM---Jaxb is quite plugable, you can use
> XmlTypeAdapter to marshal/unarshal
>
>
> From:
> James Mao <ja...@iona.com>
>
> To:
> cxf-user@incubator.apache.org
>
> Date:
> 09/18/2007 11:23 PM
>
> Subject:
> Re: HashMap as parameter for web service call
>
> ------------------------------------------------------------------------
>
>
>
> Jaxb is quite plugable, you can use XmlTypeAdapter to marshal/unarshal
> to/from HashMap
>
> James
>
> > HashMap is not supported by JAXB binding. More discussions about
> this can be found from
> http://www.nabble.com/DataBinding-problems-%28Timestamp-and-HashMap%29-using-JAXB-tf4283645.html#a12193877
> >
> > Cheers,
> > Jervis
> >
> >
> >> -----Original Message-----
> >> From: Kaleb Walton [mailto:kdwalton@us.ibm.com]
> >> Sent: 2007?9?19? 5:59
> >> To: cxf-user@incubator.apache.org
> >> Subject: HashMap as parameter for web service call
> >>
> >>
> >>
> >> I cannot seem to get a HashMap to work as a parameter when
> >> making a web
> >> service call via PHP. Has anyone else experienced this? I want to
> >> encapsulate my parameters in a more complex object that
> >> extends HashMap.
> >>
> >> Regards,
> >> Kaleb
> >>
> >>
> >
> > ----------------------------
> > IONA Technologies PLC (registered in Ireland)
> > Registered Number: 171387
> > Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
> Ireland
> >
> >
>
Re: HashMap as parameter for web service call
Posted by Kaleb Walton <kd...@us.ibm.com>.
Great, at least there's some light at the end of the tunnel!
Where would I plug it into a spring configuration - I'm using
<simple:server>'s?
Thanks!
Regards,
Kaleb
From: James Mao <ja...@iona.com>
To: cxf-user@incubator.apache.org
Date: 09/18/2007 11:23 PM
Subject: Re: HashMap as parameter for web service call
Jaxb is quite plugable, you can use XmlTypeAdapter to marshal/unarshal
to/from HashMap
James
> HashMap is not supported by JAXB binding. More discussions about this can
be found from
http://www.nabble.com/DataBinding-problems-%28Timestamp-and-HashMap%29-using-JAXB-tf4283645.html#a12193877
>
> Cheers,
> Jervis
>
>
>> -----Original Message-----
>> From: Kaleb Walton [mailto:kdwalton@us.ibm.com]
>> Sent: 2007?9?19? 5:59
>> To: cxf-user@incubator.apache.org
>> Subject: HashMap as parameter for web service call
>>
>>
>>
>> I cannot seem to get a HashMap to work as a parameter when
>> making a web
>> service call via PHP. Has anyone else experienced this? I want to
>> encapsulate my parameters in a more complex object that
>> extends HashMap.
>>
>> Regards,
>> Kaleb
>>
>>
>
> ----------------------------
> IONA Technologies PLC (registered in Ireland)
> Registered Number: 171387
> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
>
>
Re: HashMap as parameter for web service call
Posted by James Mao <ja...@iona.com>.
Jaxb is quite plugable, you can use XmlTypeAdapter to marshal/unarshal
to/from HashMap
James
> HashMap is not supported by JAXB binding. More discussions about this can be found from http://www.nabble.com/DataBinding-problems-%28Timestamp-and-HashMap%29-using-JAXB-tf4283645.html#a12193877
>
> Cheers,
> Jervis
>
>
>> -----Original Message-----
>> From: Kaleb Walton [mailto:kdwalton@us.ibm.com]
>> Sent: 2007?9?19? 5:59
>> To: cxf-user@incubator.apache.org
>> Subject: HashMap as parameter for web service call
>>
>>
>>
>> I cannot seem to get a HashMap to work as a parameter when
>> making a web
>> service call via PHP. Has anyone else experienced this? I want to
>> encapsulate my parameters in a more complex object that
>> extends HashMap.
>>
>> Regards,
>> Kaleb
>>
>>
>
> ----------------------------
> IONA Technologies PLC (registered in Ireland)
> Registered Number: 171387
> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
>
>
RE: HashMap as parameter for web service call
Posted by "Liu, Jervis" <jl...@iona.com>.
HashMap is not supported by JAXB binding. More discussions about this can be found from http://www.nabble.com/DataBinding-problems-%28Timestamp-and-HashMap%29-using-JAXB-tf4283645.html#a12193877
Cheers,
Jervis
> -----Original Message-----
> From: Kaleb Walton [mailto:kdwalton@us.ibm.com]
> Sent: 2007?9?19? 5:59
> To: cxf-user@incubator.apache.org
> Subject: HashMap as parameter for web service call
>
>
>
> I cannot seem to get a HashMap to work as a parameter when
> making a web
> service call via PHP. Has anyone else experienced this? I want to
> encapsulate my parameters in a more complex object that
> extends HashMap.
>
> Regards,
> Kaleb
>
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland