Hi all,


I have a document/literal service successfully deployed[*]. The generation and deployment is done in the following way: first, there is a data schema in the form of an xsd that my methods have to comply with. This is an external constraint on my service. I "import" this into a wsdl where I define my methods which operate on types defined in the schema. Then wsdl2java successfully generates all the java code I need an in general everything works ok.

My methods get the data in form of deserialized objects, which is what I need/want. On the other hand I need to talk to some legacy code which expects this same data in the form of xml instances (conforming to the same xsd) (and serialized into strings). What's the easiest way to serialize an already deserialized object to the xml (which is pretty identical to what was in the soap envelope)? I notice that wsdl2java generates a getSerializer() method for every generated type. How can I use this? The best would be to transform the object into a DOM but a string (XML) would do as a last resort too.

Any clue would be greatly appreciated.

Tamas

[*] I need to express my continued thanks to the axis developers and those hanging out on this mailing list: the help I gotten here was invaluable already.

--
-------------------------------------------------------------------
--      Tamas Hauer          ETT Division, CERN
    [EMAIL PROTECTED]      Geneve 23 Switzerland 1211
 http://cern.ch/Tamas.Hauer  Tel:(41)-227672342  Fax:(41)-227678930



Reply via email to