You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by "Marquez, Oscar" <os...@sapmarkets.com> on 2001/05/17 22:32:27 UTC

Using SOAP libs to encode/decode java objects into/from XML files

Hi SOAP Group

	I would like to know something that I guess you have already solved.
How to convert a java object into a XML and how to read the object back.

	I don't know much about SOAP, but I have been using jBoss.org, and
it works pretty well. But now I need to create a XML file to store some
objects.

	I have tried to use XMLEncoder and XMLDecoder from the java.bean
package under the jsr-000057 spec but it doesn't seem to work right, also
you have to do a lot of work, you need the objects to be javabeans. I tried
JSX from http://freshmeat.net/projects/jsx, it works much better, but I
can't read the objects back.

	Doesn't SOAP comes with some encoder/decoder. I guess so, but I need
to get them, how can I get them? how to use them to accomplish this?

Regards,
Oscar


Re: Using SOAP libs to encode/decode java objects into/from XML files

Posted by Naggi Rao <na...@softhome.net>.
Hi ,
Have a look at the getAddressFromName() method in the addressBook example.

Cheers,
Naggi


----- Original Message -----
From: "Marquez, Oscar" <os...@sapmarkets.com>
To: <so...@xml.apache.org>
Sent: Thursday, May 17, 2001 1:32 PM
Subject: Using SOAP libs to encode/decode java objects into/from XML files


> Hi SOAP Group
>
> I would like to know something that I guess you have already solved.
> How to convert a java object into a XML and how to read the object back.
>
> I don't know much about SOAP, but I have been using jBoss.org, and
> it works pretty well. But now I need to create a XML file to store some
> objects.
>
> I have tried to use XMLEncoder and XMLDecoder from the java.bean
> package under the jsr-000057 spec but it doesn't seem to work right, also
> you have to do a lot of work, you need the objects to be javabeans. I
tried
> JSX from http://freshmeat.net/projects/jsx, it works much better, but I
> can't read the objects back.
>
> Doesn't SOAP comes with some encoder/decoder. I guess so, but I need
> to get them, how can I get them? how to use them to accomplish this?
>
> Regards,
> Oscar
>
>


Re: Invocation Vs Request

Posted by Scott Nichol <sn...@computer.org>.
Naggi,

This is, to some degree, how .NET and SOAP Toolkit from Microsoft work.  You
write WSDL and go.  With the Toolkit, you still end up writing
[de-]serializers for complex types.

You may also want to look at the Web Services Toolkit from IBM
(http://www.alphaworks.ibm.com/tech/webservicestoolkit).  From what I gather
from other postings to this list, it uses Axis rather than Apache SOAP.
Also, as an AlphaWorks project, the technology may eventually be available
only as a licenses product; there is no guarantee it will become open
source.

Scott

----- Original Message -----
From: "Naggi Rao" <na...@softhome.net>
To: <so...@xml.apache.org>
Sent: Thursday, May 17, 2001 6:33 PM
Subject: Invocation Vs Request


> Is there anyone working on establishing some sort of a frame work for SOAP
?
> I mean wouldnt it be nice to have a framework (like RMI,CORBA) where in
you
> just write the implementation and the remote interfaces and the framework
> deals with all the implementation issues..
>
> Cheers,
> Naggi
>
>


Invocation Vs Request

Posted by Naggi Rao <na...@softhome.net>.
Is there anyone working on establishing some sort of a frame work for SOAP ?
I mean wouldnt it be nice to have a framework (like RMI,CORBA) where in you
just write the implementation and the remote interfaces and the framework
deals with all the implementation issues..

Cheers,
Naggi