Perhaps -- but if the application consuming the service doesn't
understand Maps, the whole idea of the Map is lost anyway.

A good approach is to maintain a clean separation between your
external XML-based interface and your internal object model -- just as
you use a DAO to maintain a clean separation between your internal
object model and a database.

Maybe we should be thinking about creating a more formal interface
abstraction model -- EIO (external interface object)...

Anne

On 9/28/07, Bhojraj, Santosh <[EMAIL PROTECTED]> wrote:
> Nah. The whole idea of the Map would be lost then.
> This was supported in Axis 1.2. So why can't it be done in Axis2 ?
>
>
>
> -----Original Message-----
> From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 28, 2007 4:02 PM
> To: [email protected]
> Subject: Re: Problem with return HashMap.
>
> A better solution is to convert a hashmap to an array.
>
> On 9/28/07, Bhojraj, Santosh <[EMAIL PROTECTED]> wrote:
> > Will it at least work if JIBX is used for data binding ?
> >
> >
> > -----Original Message-----
> > From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 28, 2007 9:28 AM
> > To: [email protected]
> > Subject: Re: Problem with return HashMap.
> >
> > Axis2 does not support hasmap in 1.3 release. May be we will provide
> > that in a future release.
> >
> > Thanks
> > Deepal
> >
> > [EMAIL PROTECTED] wrote:
> > > Hi,
> > > I have simple web service ( Axis2-1.3 ) which has method return
> > > java.util.HashMap:
> > >
> > > public class SimpleWebService {
> > >
> > >       private HashMap<String, String> _map;
> > >       public SimpleWebService() {
> > >               _map = new HashMap<String, String>();
> > >
> > >       }
> > >       public HashMap<String, String> getMap() {
> > >               _map.put("AA", "BB");
> > >               _map.put("BB", "BB");
> > >               _map.put("CC", "BB");
> > >               _map.put("DD", "BB");
> > >               _map.put("EE", "BB");
> > >               return _map;
> > >       }
> > > }
> > >
> > > I use RPCServiceClient. Problem occurred when I try obtain values in
> > HashMap.
> > > >From client I have gotten empty hash map.
> > > Do you have any experience with serialization HashMap or other java
> > collections ? Do you know where can I find any samples ?
> > > Regards,
> > >
> > >
> > > --------------------------------------------------------------------
> > > -- Fajne i smieszne. Zobacz najlepsze filmiki!
> > >
> > >
> > >>>> http://link.interia.pl/f1bbb
> > >>>>
> > >
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to