Deserializing SOAP replies with ZSI?

Dear Lazyweb,

what is the most elegant way to read a SOAP reply containing a complex type into an object using ZSI? I've read the documentation several times and I guess there is an elegant way to solve this, but I still don't get it.

I guess it should work like this:

  • Define a class Bugreport
  • Define Bugreport's typecode
  • Parse (how?) the SOAP reply containing bugreport-data into a Bugreport object

What I'm currently doing with soappy in rng is rather crude: I take the SOAP response which is a dictionary holding many interesting facts about a bug report, take those elements I'm interested in and copy them into a bug report object. Not very elegant, but it works.

While I'm moving away from soappy to ZSI I'd like to implement the deserializion the ZSI way. Unfortunately I don't understand their examples. So please Lazyweb, is there any ZSI expert out there who can provide a minimalistic example?