[Laszlo-dev] ObjectWrapper serialization
Matthew D. Frederes
matt at paradisesoftware.net
Sat Jun 11 17:33:37 PDT 2005
My previous reply to your question about how the Axis error was created was
accidentally posted to a new thread, I hope you find it useful. This
message is to follow up with further information about XML in strings and
Since my last post I created a small java class to pass as a parameter from
the RPC web service, which contained only a string. This created one
complex parameter, thus getting the ObjectWrapper registered.
I passed XML in the string, and the serialization process was successful,
but when Axis was deserializing, SimpleDeserializer threw a SAXException
citing that it found a child element it was not expecting.
(I did not test what would happen with more than one parameter before the
XML string, which could have had different results.)
So sending XML as a string into an RPC web service, either as a primitive or
a complex parameter, fails both ways. I've since rewritten the web service
in document style, which is working great.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Laszlo-dev