You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Srinath Perera <he...@gmail.com> on 2006/02/06 02:07:36 UTC

Re: Migrating from Axis 1.2.1 to Axis 2 (Urgent!!)

You should define a XML<-> HashMap format and , Axis2 works on top of
xsd, and XML level, so Axis2 most probably would not support data
binding for HashMaps nateivly.

I belive you can easily write a code to convert the xml hashmap format
to hash Map.

e.g.  let foo be the Web Service Method

OMElement foo(OMElement){
         HashMap map = //create map out of xml, but you should write
the code to do                  //this here as
        //process the map

}

Thanks
Srinath


On 2/5/06, srinivas s <sr...@yahoo.com> wrote:
> Hi:
>
> Thank you for the great effort you guys are putting
> into Axis 2 v1.0 release.
>
> We are looking forward for the final release.
> In the recent time we had developed a webservice using
> Axis1_2_1, that has single method with inparams as
> HashMap and the method output again as an HashMap. The
> HashMap contains the user defined complex data types (
> includes List,ArrayList etc).
>
>  We were successfull so far, but we are now moving to
> Axis2, so as to support WS-Security, Asyncronous
> messaging etc.
>  So, is it the right time to redesign our app
> according to the new framework?
>
> Please let us know what it takes to convert the
> HashMap(IN/OUT) to OMElement. Please send us the
> sample code to understand the migration part.
>
>
> Thanks in advance.
> Regards
> \Srini
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


--
============================
Srinath Perera:
   http://www.cs.indiana.edu/~hperera/
   http://www.bloglines.com/blog/hemapani

Re: Migrating from Axis 1.2.1 to Axis 2 (Urgent!!)

Posted by Srinath Perera <he...@gmail.com>.
We use XMLBeans for type mapping support, there is ADB (Axis data
binding ) which is our own but support only subset of the schema.

If the type is schema compilent you can use XML beans with Axis2
(which isinbuild). But sience hash map is not schema complient you
should do the conversion yourself. But schema complient code can have
code generated

Thanks
Srinath

On 2/7/06, srinivas s <sr...@yahoo.com> wrote:
> Hi Srinath:
>
> Unlike earlier version of Axis(1_2_1), is there any
> support for Serialize/DeSerialize (TypeMapping) that
> we can expect in this new Axis2? Or does it leave the
> responsibility of converting the OMElement(XML
> document) to corresponding Java object?
> Please let me know, based on my earlier email, do i
> need to write serialize/deserialise code for all of my
> complex objects (TO's) ?
>
> Regards
> \Srini
>
> --- Srinath Perera <he...@gmail.com> wrote:
>
> > You should define a XML<-> HashMap format and ,
> > Axis2 works on top of
> > xsd, and XML level, so Axis2 most probably would not
> > support data
> > binding for HashMaps nateivly.
> >
> > I belive you can easily write a code to convert the
> > xml hashmap format
> > to hash Map.
> >
> > e.g.  let foo be the Web Service Method
> >
> > OMElement foo(OMElement){
> >          HashMap map = //create map out of xml, but
> > you should write
> > the code to do                  //this here as
> >         //process the map
> >
> > }
> >
> > Thanks
> > Srinath
> >
> >
> > On 2/5/06, srinivas s <sr...@yahoo.com>
> > wrote:
> > > Hi:
> > >
> > > Thank you for the great effort you guys are
> > putting
> > > into Axis 2 v1.0 release.
> > >
> > > We are looking forward for the final release.
> > > In the recent time we had developed a webservice
> > using
> > > Axis1_2_1, that has single method with inparams as
> > > HashMap and the method output again as an HashMap.
> > The
> > > HashMap contains the user defined complex data
> > types (
> > > includes List,ArrayList etc).
> > >
> > >  We were successfull so far, but we are now moving
> > to
> > > Axis2, so as to support WS-Security, Asyncronous
> > > messaging etc.
> > >  So, is it the right time to redesign our app
> > > according to the new framework?
> > >
> > > Please let us know what it takes to convert the
> > > HashMap(IN/OUT) to OMElement. Please send us the
> > > sample code to understand the migration part.
> > >
> > >
> > > Thanks in advance.
> > > Regards
> > > \Srini
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > > http://mail.yahoo.com
> > >
> >
> >
> > --
> > ============================
> > Srinath Perera:
> >    http://www.cs.indiana.edu/~hperera/
> >    http://www.bloglines.com/blog/hemapani
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


--
============================
Srinath Perera:
   http://www.cs.indiana.edu/~hperera/
   http://www.bloglines.com/blog/hemapani