Re: How to write an own Serializer? Or is any Serializer for a bean available?

Hans Kaiser <[email protected]> Fri, 31 Jan 2003 13:19:07 +0100 (MET)
Newsgroups gmane.comp.java.enhydra.ksoap
Message-ID <[email protected]>
> > Apache SOAP has a nice Serializer, the BeanSerializer. Is an
> BeanSerializer
> > also under kSOAP available?
> > If not, how could I implement my own one?
> > Is there any example Code available?
> 
> For CLDC environments, it is not possible to create a BeanSerializer
> because
> of the missing reflection capabilities. However, for CDC and J2SE, I think
> it would be great to have one. I was planning to add one to kSOAP 2, but
> till now, I did not find the time.

Sure, I searched for a CDC BeanSerializer. Maybe I will  give it a try this
weekend, to implement a BeanSerializer.
Have I to consider something, before getting started?

> Building your own Bean serializer should be possible based on the
> Marshal interface.
> 
> However, it would still be necessary to register all classes
> to be (de)serialized with the SoapSerializationEnvelope in
> order to inform kSOAP about the correct mapping between XML
> namespaces and names and Java class names using the addMapping
> method of SoapSerializationEnvelope.

I believe I haven't got it!
How do I register the BeanSerializer? Via ClassMap?
Could you give me some samplecode?

> Best,
> Stefan

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!