axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Whitney Hunter <whit...@hunterfam.com>
Subject Re: Using CastorSerializer for return value causing error
Date Fri, 15 Aug 2003 17:51:04 GMT
Thanks for the help.

Steve Maring wrote:

> The CastorSerializer in the Axis source tree is flawed.  Remove the 
> first line of the serialize method that makes reference to 
> serializationContext.startElement().  This will fix your problem.  I'd 
> highly recommend writing your own so that you can use your own mapping 
> anyway.
>  
> Cheers.
> Steve Maring
>
>
> */Whitney Hunter <whitney@hunterfam.com>/* wrote:
>
>     Hi,
>
>     I am writing a service that uses the Castor
>     serializer/deserializer. I
>     have gotten it to deserialize my input document into a Castor object.
>     However, when I return another Castor object, it does not get
>     serialized
>     correctly. It seems to be duplicating the root element. For
>     example my
>     test return value should be:
>
>
>     this is it!
>
>
>     But instead, tcpmon is showing this:
>
>
>
>     this is it!
>
>
>
>     As you might expect the client throws an exception when it tries to
>     deserialize this. Has anyone seen this? Anyone know what is going
>     wrong?
>
>     Thanks,
>     Whitney
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder 
> <http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com> - 
> Free, easy-to-use web site design software 




Mime
View raw message