You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by George Jagodzinski <ge...@fusionapps.com> on 2003/07/02 17:03:12 UTC
how to deserialize into bean
This is adumb question, but I haven't been able to figure out exaclt how to
deserialize xml into a bean
I have the correct bean setup
I inititalize a new BeanDeserializer using the correct java class, qname
and typedesc, but I don't see what method I am supposed to use to
deserialize the xml that I have and return the bean. I have been looking
everywhere for an example but I have had no luck. Can anyone point me in the
right direction?
thank You,
George
Re: how to deserialize into bean
Posted by Jeyakumaran Chandrasegaram <jk...@vijayaba.cse.mrt.ac.lk>.
hi,
I think u r going in a worng way.U just see arround the apache's bean serializer class and deserializer and work with it. Then u only need make it available in yr wsdd file.
It's better to go thru the samole webservice.
even If u need yr manual one,it will be more easy if u go thru the existing beasn serializer/deserializer and then work it with yr own or may extend it after making it compatible to u.
Jeyakumaran.c
----- Original Message -----
From: George Jagodzinski
To: axis-user@ws.apache.org
Sent: Saturday, July 05, 2003 10:04 AM
Subject: RE: how to deserialize into bean
There are many times when it is necessary to deserialize xml manually. I do not have axis on both sides, and I am receiving custom xml attachments that I need to deserialize into beans, so this is why I am going down this road. I have not found any class in axis that allows for this functionality without constructing an entire envelope etc..... I could be wrong, but I have wasted enough time looking so I am just writing it in. I don't know if this would be of any use to anyone else, but I will post it once I am done
--George
[George Jagodzinski] -----Original Message-----
From: Akhil Gupta [mailto:agupta@eircom.net]
Sent: Friday, July 04, 2003 8:20 PM
To: axis-user@ws.apache.org; george@fusionapps.com
Subject: Re: how to deserialize into bean
Hi George
My understanding is as follows:-
a) If you are using Axis on both ends to talk between client/server then you don't need to do any XML-Bean or vice
versa.
b) what you will need to do is set a BeanSerailizer/BeanDeserializer in your wsdd file that you will be
deploy in servlet engine. And then when Axis will recieve the data it will convert in to appropriate form.
You can have a look at the source for the class org.apache.axis.encoding.ser.BeanDeserializer if it helps.
Akhil
RE: how to deserialize into bean
Posted by George Jagodzinski <ge...@fusionapps.com>.
There are many times when it is necessary to deserialize xml manually. I do
not have axis on both sides, and I am receiving custom xml attachments that
I need to deserialize into beans, so this is why I am going down this road.
I have not found any class in axis that allows for this functionality
without constructing an entire envelope etc..... I could be wrong, but I
have wasted enough time looking so I am just writing it in. I don't know if
this would be of any use to anyone else, but I will post it once I am done
--George
[George Jagodzinski] -----Original Message-----
From: Akhil Gupta [mailto:agupta@eircom.net]
Sent: Friday, July 04, 2003 8:20 PM
To: axis-user@ws.apache.org; george@fusionapps.com
Subject: Re: how to deserialize into bean
Hi George
My understanding is as follows:-
a) If you are using Axis on both ends to talk between client/server then
you don't need to do any XML-Bean or vice
versa.
b) what you will need to do is set a BeanSerailizer/BeanDeserializer in
your wsdd file that you will be
deploy in servlet engine. And then when Axis will recieve the data it will
convert in to appropriate form.
You can have a look at the source for the class
org.apache.axis.encoding.ser.BeanDeserializer if it helps.
Akhil
Re: how to deserialize into bean
Posted by Akhil Gupta <ag...@eircom.net>.
Hi George
My understanding is as follows:-
a) If you are using Axis on both ends to talk between client/server then you don't need to do any XML-Bean or vice
versa.
b) what you will need to do is set a BeanSerailizer/BeanDeserializer in your wsdd file that you will be
deploy in servlet engine. And then when Axis will recieve the data it will convert in to appropriate form.
You can have a look at the source for the class org.apache.axis.encoding.ser.BeanDeserializer if it helps.
Akhil
----- Original Message -----
From: George Jagodzinski
To: axis-user@ws.apache.org
Sent: Wednesday, July 02, 2003 4:03 PM
Subject: how to deserialize into bean
This is adumb question, but I haven't been able to figure out exaclt how to deserialize xml into a bean
I have the correct bean setup
I inititalize a new BeanDeserializer using the correct java class, qname and typedesc, but I don't see what method I am supposed to use to deserialize the xml that I have and return the bean. I have been looking everywhere for an example but I have had no luck. Can anyone point me in the right direction?
thank You,
George