Axis allows you to serialize an object into XML using a
SerializationContext.  For example,

 

   // serialize the object

  StringWriter strWriter = new StringWriter();

  SerializationContext ctx = new SerializationContext(strWriter,
MessageContext.getCurrentContext());

  ctx.serialize(new QName("MyObjectNamespace",  "MyObject"), null,
myObject, null, Boolean.FALSE, Boolean.FALSE);

  String value = strWriter.toString();

 

Is it possible to use Axis to deserialize this string back into an
object of type MyObject?  If so, can you please provide an example?

 

Regards,
Richard

 


-----------------------------------------------------------------------------------------------------------
This message is intended for the addressee or its representative only. Any form 
of unauthorized use, publication, reproduction, copying or disclosure of the 
content of this e-mail is not permitted. If you are not the intended recipient 
of this e-mail message and its contents, please notify the sender immediately 
and delete this message and all its attachments subsequently.

Reply via email to