Python to read wsdl not working

Posted by Kundan Kumar on Stack Overflow See other posts from Stack Overflow or by Kundan Kumar
Published on 2012-12-11T22:06:50Z Indexed on 2012/12/11 23:03 UTC
Read the original article Hit count: 274

Filed under:
|

I am trying this code to fetch data from wsdl.

Querying the website for the zipid("60630") works fine but in my code it gives the error as

"Invalid ZIP"

wsdlFile = 'http://wsf.cdyne.com/WeatherWS/Weather.asmx?wsdl'
wsdlObject = WSDL.Proxy(wsdlFile)
wsdlObject.show_methods()
zipid = "60630"
result = wsdlObject.GetCityWeatherByZIP(ZIP=zipid)
print result[1]

Can someone please help whats wrong here and why the code is not working correctly.

Thanks !!!

© Stack Overflow or respective owner

Related posts about python

Related posts about wsdl