soap

Ulrich Schreiner ulrich.schreiner at innuendo.de
Mon Jul 10 13:33:05 EDT 2000


hi,

how do i map a result from a soap call to a python class?

now i do it this way (maybe syntactic incorrect):

--------------
import soaplib
from soaplib import getparser

parser, unmarshaller = getparser()

server._defmethod("getPerson", "urn:innuendo-demo")
unmarshaller.dispatch['urn:innuendo-demoperson'] =
unmarshaller.dispatch[None]

print (server.getPerson())

--------------

the serverside is the ibm-soap classlib and returns an instance of a
"Person" class which is serialized with the beanserializer from this
library.

the "getPerson" call in the python code returns a dictionary. i would
like some sort of typemapping to map the "urn:innuendo-demoperson" to a
specific python class. 

is this possible with version 0.8?

thanx
usc



More information about the Python-list mailing list