SOAP/WSDL Introspection

Ben Edwards (lists) lists at videonetwork.org
Tue Aug 1 06:27:45 EDT 2006


I have the below code to get info about SOAP services at a wsdl url.  It
gets the in parameters OK but does not seem to get out/return
parameters.  Any idea why?

Ben

from SOAPpy import WSDL
import sys

wsdlfile = "http://www.xmethods.net/sd/2001/TemperatureService.wsdl"

server = WSDL.Proxy(wsdlfile)

for methodName in  server.methods:
    print "method = ", methodName
    callInfo = server.methods[ methodName ]
    
    for inParam in callInfo.inparams:
        print "  inparam = ", inParam.name, inParam.type

    for outParam in callInfo.outparams:
        print "  outparam = ", outParam.name, outParam.type





More information about the Python-list mailing list