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;
>     }
>  
> }
> 

Reply via email to