;ō ö,@c@sbdZdZdklZdkZdklZlZdklZdk Z dfd„ƒYZ dS(sRParse web services description language to get SOAP methods. Rudimentary support.s4$Id: WSDL.py,v 1.10 2004/01/31 04:20:06 warnes Exp $(s __version__N(s SOAPProxys SOAPAddress(sConfigsProxycBs,tZdZed„Zd„Zd„ZRS(sŠWSDL Proxy. SOAPProxy wrapper that parses method names, namespaces, soap actions from the web service description language (WSDL) file passed into the constructor. The WSDL reference can be passed in as a stream, an url, a file name, or a string. Loads info into self.methods, a dictionary with methodname keys and values of WSDLTools.SOAPCallinfo. For example, url = 'http://www.xmethods.org/sd/2001/TemperatureService.wsdl' wsdl = WSDL.Proxy(url) print len(wsdl.methods) # 1 print wsdl.methods.keys() # getTemp See WSDLTools.SOAPCallinfo for more info on each method's attributes. cKsĘtiiƒ} t|_|itjo t|dƒo| i |ƒ|_n|itjo@y t |ƒ| i |ƒ|_Wqžt t fj oqžXn|itjoHy(ti|ƒ}| i ||ƒ|_Wqöt t fj oqöXn|itjo%dk} | it|ƒƒ|_nh|_|iid} | id}| i} |iƒ}|iƒ} x9| iD].}tii ||iƒ}||i|i"            cCs8d}x'|iiƒD]}|t|ƒ7}qW|SdS(Ns(sssselfsmethodssvaluessmethodsstr(sselfsssmethod((sB/mnt/gmirror/ports/net/py-soappy/work/SOAPpy-0.11.6/SOAPpy/WSDL.pys__str__Us cCsu|ii|ƒ o t|‚n|i|}t|iƒ|i_ |i |i_ |i |i_ |ii |ƒSdS(sqSet up environment then let parent class handle call. Raises AttributeError is method name is not found.N(sselfsmethodsshas_keysnamesAttributeErrorscallinfos SOAPAddressslocations soapproxysproxys namespaces soapActions soapactions __getattr__(sselfsnamescallinfo((sB/mnt/gmirror/ports/net/py-soappy/work/SOAPpy-0.11.6/SOAPpy/WSDL.pys __getattr__[s  (s__name__s __module__s__doc__sConfigs__init__s__str__s __getattr__(((sB/mnt/gmirror/ports/net/py-soappy/work/SOAPpy-0.11.6/SOAPpy/WSDL.pysProxy s  2 ( s__doc__sidentsversions __version__swstoolssClients SOAPProxys SOAPAddresssConfigsurllibsProxy(sidentswstoolss SOAPProxys SOAPAddresssurllibs __version__sConfigsProxy((sB/mnt/gmirror/ports/net/py-soappy/work/SOAPpy-0.11.6/SOAPpy/WSDL.pys?s