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 "Agarwal, Naresh" <na...@informatica.com> on 2003/06/12 15:18:16 UTC
Does AXIS provide serializers/deserializers for nested javabeans?
Hi
Say "inner" and "outer" are two java beans (see below for their definition) . "outer" bean contains "inner" bean.
Now one of my functions return "outer" bean. I want to expose this function as Web Service using AXIS. Do I need to write serializer and deserializer for this OR I can use the AXIS in-built serializer and deserializer.
thanks,
Naresh Agarwal
------------------------------------------------
class inner {
private int Data;
public inner()
public setData(int d) {
Data = d;
}
public int getData() {
return Data;
}
}
class outer {
private int Data;
private inner in;
public outer()
public setData(int d) {
Data = d;
}
public int getData() {
return Data;
}
public setInnerBean(inner i {
in = i;
}
public inner getInnerBean() {
return in;
}
}
Re: Does AXIS provide serializers/deserializers for nested javabeans?
Posted by Venkatesh Kancharla <ve...@strandgenomics.com>.
No need to write any serializer for nested beans. You can use axis bean
serializer to serialize them.
-------------------
Venkatesh Kancharla
_|_|_|_|_| _|_|_|_|_| _|_|_|_|_| _|_|_|_|_| _|_| _| _|_|_|_|_|
_| _| _| _| _| _| _| _| _| _| _|
_|_|_|_|_| _| _|_|_|_|_| _|_|_|_|_| _| _| _| _| _|
_| _| _| _| _| _| _| _| _| _| _|
_|_|_|_|_| _| _| _| _| _| _| _|_| _|_|_|_|_|
A L G O R I T H M S F O R L I F E
Strand Genomics,
# 237, Sir C.V. Raman Avenue,
Rajmahal Vilas,
Bangalore, India - 560080.
Ph no: 3618992,93, 94, 95
http://www.strandgenomics.com
My favorite quote:
---------------------------------------------------------------------
If Necessity Is the Mother of Invention,
then frustration Is Its Father
-unknown
---------------------------------------------------------------------
On Thu, 12 Jun 2003, Agarwal, Naresh wrote:
> Hi
>
> Say "inner" and "outer" are two java beans (see below for their definition) . "outer" bean contains "inner" bean.
>
> Now one of my functions return "outer" bean. I want to expose this function as Web Service using AXIS. Do I need to write serializer and deserializer for this OR I can use the AXIS in-built serializer and deserializer.
>
> thanks,
>
> Naresh Agarwal
>
> ------------------------------------------------
>
> class inner {
>
> private int Data;
> public inner()
>
> public setData(int d) {
> Data = d;
> }
>
> public int getData() {
> return Data;
> }
>
> }
>
> class outer {
>
> private int Data;
> private inner in;
>
> public outer()
> public setData(int d) {
> Data = d;
> }
>
> public int getData() {
> return Data;
> }
>
> public setInnerBean(inner i {
> in = i;
> }
>
> public inner getInnerBean() {
> return in;
> }
>
> }
>
AW: Does AXIS provide serializers/deserializers for nested javabeans?
Posted by Kai Unewisse <ka...@innovations.de>.
HI Naresh,
You can use the BeanSerializer.
I am doing something similar. I have a Bean containing a Bean and a Vector
of other Beans and it works fine.
Kai
Hi
Say "inner" and "outer" are two java beans (see below for their
definition) . "outer" bean contains "inner" bean.
Now one of my functions return "outer" bean. I want to expose this
function as Web Service using AXIS. Do I need to write serializer and
deserializer for this OR I can use the AXIS in-built serializer and
deserializer.
thanks,
Naresh Agarwal
------------------------------------------------
class inner {
private int Data;
public inner()
public setData(int d) {
Data = d;
}
public int getData() {
return Data;
}
}
class outer {
private int Data;
private inner in;
public outer()
public setData(int d) {
Data = d;
}
public int getData() {
return Data;
}
public setInnerBean(inner i {
in = i;
}
public inner getInnerBean() {
return in;
}
}
Re: Does AXIS provide serializers/deserializers for nested javabeans?
Posted by "Mr. Document Service" <mr...@yahoo.com>.
Hello
Do you have sample serializers and deserializer for this?
thank you very much
"Agarwal, Naresh" <na...@informatica.com> wrote:
Hi
Say "inner" and "outer" are two java beans (see below for their definition) . "outer" bean contains "inner" bean.
Now one of my functions return "outer" bean. I want to expose this function as Web Service using AXIS. Do I need to write serializer and deserializer for this OR I can use the AXIS in-built serializer and deserializer.
thanks,
Naresh Agarwal
------------------------------------------------
class inner {
private int Data;
public inner()
public setData(int d) {
Data = d;
}
public int getData() {
return Data;
}
}
class outer {
private int Data;
private inner in;
public outer()
public setData(int d) {
Data = d;
}
public int getData() {
return Data;
}
public setInnerBean(inner i { in = i;
}
public inner getInnerBean() {
return in;
}
}
---------------------------------
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).
Re: Does AXIS provide serializers/deserializers for nested javabeans?
Posted by "Mr. Document Service" <mr...@yahoo.com>.
Hello
Do you have sample serializers and deserializer for this?
thank you very much
"Agarwal, Naresh" <na...@informatica.com> wrote:
Hi
Say "inner" and "outer" are two java beans (see below for their definition) . "outer" bean contains "inner" bean.
Now one of my functions return "outer" bean. I want to expose this function as Web Service using AXIS. Do I need to write serializer and deserializer for this OR I can use the AXIS in-built serializer and deserializer.
thanks,
Naresh Agarwal
------------------------------------------------
class inner {
private int Data;
public inner()
public setData(int d) {
Data = d;
}
public int getData() {
return Data;
}
}
class outer {
private int Data;
private inner in;
public outer()
public setData(int d) {
Data = d;
}
public int getData() {
return Data;
}
public setInnerBean(inner i { in = i;
}
public inner getInnerBean() {
return in;
}
}
---------------------------------
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).