Return-Path: Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 66563 invoked by uid 500); 15 Aug 2003 17:51:00 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 66552 invoked from network); 15 Aug 2003 17:51:00 -0000 Message-ID: <3F3D1D88.3060501@hunterfam.com> Date: Fri, 15 Aug 2003 10:51:04 -0700 From: Whitney Hunter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: Using CastorSerializer for return value causing error References: <20030815174942.51794.qmail@web41402.mail.yahoo.com> In-Reply-To: <20030815174942.51794.qmail@web41402.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 /* 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 > - > Free, easy-to-use web site design software