What it mean "to conwert mesage to Serializable Java Object"?
You need to conwert whole a message or only body contents?
Soap message, as XML data as stream object, ist already serializable.

I guess, you probably have to pass content of the body as
serialisation-capable object to the EJB, if they are your classes you can
always write your own serializer and deserializer.

If you wish to use JAXB, you can, but it needs some "work arrounds":

Apropos 1. With DTD you must represent only your class, not whole SOAP
Message.

Apropos 2. and 3. Any, not yet finished capabilities, we can correct by
hand, so adding package name, serialization and even namespace is possible
because we have source code of our JAXB class and we cad do everything.

Ofcourse, if we rebuild our class, this work is lost, so ideal solution
is to write an "context sensitive script" with perl or awk which makes all
needed modifications.

Infortunatelly we have no access to JAXB source code to make it rigt.

Radek Wisniewski
www.datenknecht.de

On Wed, 15 Aug 2001, RK wrote:

> Hi ,
>
> I have a requirement where I receive SOAP Messages and I need to convert
> this Message to a Serializable Java Object( This java Object will be
> passed as a value object to an EJB).
>
> I guess the best way for me to do this is use JAXB .... but here are my
> problems
>
> 1. JAXB as of now supports DTD's only , So how am I going to represent my SOAP 
>Message in a DTD ??? (Is this possible)
> 2. JAXB does not support namespaces right now.  Same problem as above???? Can I do 
>soap without namespaces....???
> 3. The JAXB classes do not implement Serializable (hence it becomes diificult for me 
>to pass this as a value object) . Does anyone know why do the JAXB classes not 
>implement Serializable.????
>
> There was an earlier discussion in which Radek said that he has written a Serializer 
>for JAXB... Radek could you please forward that to me , if it is OK with you.
>
>
>

Reply via email to