Re: [OpenSPP-project] First pass at gSOAP client for OpenSPP server
Status: Planning
Brought to you by:
deanwillis
From: Dean W. <dea...@so...> - 2011-08-12 15:42:55
|
On Aug 12, 2011, at 10:17 AM, Cartwright, Ken wrote: > Hi Dean, > > As you allude to in your comments below, the XSD relies on extension of based types (inheritance), which then also results in polymorphism (you will see in the XSD the abstract base types are tagged with "abstract="true"). For a few brief write-ups on what this really means from an XML/XSD perspective please google this "Inheritance Polymorphism Abstract XSD" and follow some of the links (like "Inheritance & Polymorphism", "Web services tip: Use Polym...", etc. It just makes for tricky coding in gSOAP. Might make for tricky coding in java, too, but that's not my place to comment on. There is a certain lack of orthogonality on names in the current schema that may be related to the inheritance. For example, with a DestGrp transaction: an Add request puts the dest group name in a "name" element, and the response puts it in a "dgName" element. Personally, I'd like to see the same objects going in on an Add that come back out on a Get. -- Dean |