Hi,
 
I'm trying to use Axis BeanSerializer in a stand-alone application (converting between java objects & xml).
Example (assuming you have a "Customer" bean):
     Customer cust=new Customer("john", "ibm"); 
     BeanSerializer ser=new BeanSerializer(Customer.class, null);
     SerializationContext ctx=new SerializationContext(new FileWriter("cust.xml"));
     ser.serialize(someQName, null, cust, ctx);
 
My question:
Can I *customize* this BeanSerializer, so as to control the XML output ?
For example:
- Configure xml namespaces
- Configure xml tag-names
 (e.g. java field "Customer.surName" should be mapped to xml "< last-name >" ). 
 
Does axis allow such customization (from a stand-alone app) ? Is it somewhere on the API ? Or can you configure it from a file (similar to wsdd) ?
 
Thanx.


Bring words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.

Reply via email to