我对 SUDS 、 python2.7 和 OpenShift 有疑问。当我尝试查询 Web 服务 WSDL 时抛出错误:
URLError: <urlopen error [Errno 13] Permission denied>
这是它生成错误的 WSDL 的地址。
suds.client import from Client
urlmps = ' http://www.mps.com.co:91/ArticuloDisponible.asmx?wsdl '
c = Client ( urlmps )
print c
URLError: <urlopen error [Errno 13] Permission denied>
当我尝试从 webservicex.net 查询它是否有效时。
suds.client import from Client
url = ' http://www.webservicex.net/globalweather.asmx?WSDL '
client = Client ( url )
print client
Suds ( https://fedorahosted.org/suds/ ) version: 0.4 GA build: R699 - 20100913
Service ( GlobalWeather ) tns = " http://www.webserviceX.NET "
Prefixes (0)
Ports ( 2):
( GlobalWeatherSoap )×
Methods ( 2):
GetCitiesByCountry ( xs : string CountryName , )
GetWeather ( xs : string CityName , xs : string CountryName , )
Types ( 0):
( GlobalWeatherSoap12 )
Methods ( 2):
GetCitiesByCountry ( xs : string CountryName , )
GetWeather ( xs : string CityName , xs : string CountryName , )
Types ( 0):
粘贴箱中的完整跟踪错误..
http://pastebin.com/UgxtwPWP
注意:从我的本地计算机运行虚拟环境可以完美运行,我发现 OpenShift 拒绝了端口 91。
谢谢,马里奥·帕尔多