Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Object Serialization  RSS feed

 
Bill Bellamy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone know how to serialize an object into a text file using SOAP? Specific code samples would be very helpful.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Apache SOAP package uses a Bean serializer, but the object has to be a proper JavaBean. See the xml.apache.org site for their SOAP package.
You could always serialize to a ByteArrayOutputStream and transmit the byte[] in a SOAP message using base 64 encoding.
Bill
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!