views:

39

answers:

0

Jumping into a project I'm kinda stuck. A project that worked with XML through Altova XmlSpy generated objects and as a intern I got stuck wiht trying to implement it as a Web Service a project that had been started and then abandoned.

One problem I notice is that we had been trying to return from the web method one of the objects created by XmlSpy wich the client on the other side just doesn't recognize ( except as webServiceNamespace.objectname ).

Reading I noticed that you can only return base types, string or XmlNode ( and related objects). So I pulled out the XmlNode from the Altova object and returned it and then constructed the same altova object on the other side using a given constructor that takes a XmlNode as an parameter. Seems to work fine except when I call the document.save() method ( from Altova.Document class ) it gives me a nullpointer because the Parent node is lost when I copy the node through the web method.

That got me wondering about how the Altova guys wanted it to work. How can I pass a altova object through a Web Method intact and why don't they make XmlSerializable.

Understand please that I'm a total begginner working with things like Xml, Web Services and this Altova XmlSpy. What am I doing wrong?