SOAP/WSDL Introspection

  • Thread starter Ben Edwards (lists)
  • Start date
B

Ben Edwards (lists)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top