To use the Apache SOAP serializers, you just need to set up the parameters for marshall/unmarshall. Some of these are simple, such as the Java class and XML element QName. Some are less trivial, such as the SOAPContext, but these still are not so hard to put together. Frankly, I think the BeanSerializer code is simple enough to figure most of it out for yourself.
My question for you is, do you really need to use SOAP serialization? If you just want to serialize Java object instances over your own protocol, you should also consider something like Castor (http://www.exolab.org/) or the JAXB beta (http://java.sun.com/xml/downloads/jaxb.html). Scott Nichol ----- Original Message ----- From: "Marco Schulze" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 30, 2002 10:29 AM Subject: Using the BeanSerializer directly to serialize & deserialize over another protocol > Hello! > > I just subscribed to the list, because I didn't find anything in the web > & archives. In case, I didn't search well enough, please don't flame me, > but send me a link where I can find more help. > > > Here's my question: > > How can I directly use the Bean-Serializer to give him a java object and > receive an XML-String or better -Stream (and the other way around, too)? > > > Details: > > We're working on a system which should transfer java-objects via XML > over our own protocol. We have to use our own protocol for several > reasons. One of them is that http disconnects after each request and we > need a permanent connection. We want to use the Apache BeanSerializer to > automatically create XML out of java objects (and the other way around) > and transfer the xml over our protocol. Unfortunately, I didn't find any > detailed documentation or better helpful examples on how to directly use > the BeanSerializer without doing a soap-invoke over http. > > > Please help!!! > > Thousand thanks in advance! > > Marco ;-) > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>