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:

<outputElement xmlns="http://prototype.com/ipo.xsd";>
   <element3 xmlns="">this is it!</element3>
</outputElement>

But instead, tcpmon is showing this:

<outputElement xmlns="http://prototype.com/ipo.xsd";>
   <outputElement xmlns="http://prototype.com/ipo.xsd";>
       <element3 xmlns="">this is it!</element3>
   </outputElement>
</outputElement>

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



Reply via email to