0
我有SUDS,python2.7和OpenShift的问题。当我尝试查询Web服务的WSDL抛出我的错误:OpenShift - URLError:<urlopen错误[Errno 13]权限被拒绝>
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):
在引擎收录完整的跟踪误差..
注:从我的本地计算机上运行的虚拟环境完美的作品,我找到的是端口91是从OpenShift拒绝。
感谢, 马里奥·帕尔多
显然您不允许访问该服务。 –
你的python和.net代码中的URL是不一样的 - 一个是大写,另一个是小写。另外,两种情况下的空格都是无效的;很容易就可以将一个环境神奇地固定在你身上,而另一个则不会。 – abarnert
大写或小写字母在应用程序中没有任何变化,我发现这个禁止的端口访问是91 –