OpenShift - URLError:<urlopen error =“”[errno =“”13] =“”permission =“”denied =“”> </urlopen>

时间:2013-10-15 04:29:11

标签: python wsdl runtime-error openshift suds

我遇到了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):

pastebin中的完整跟踪错误..

http://pastebin.com/UgxtwPWP

注意:从我的本地计算机运行虚拟环境非常有效,我发现端口91被OpenShift拒绝。

谢谢, 马里奥帕尔多

1 个答案:

答案 0 :(得分:0)

只是因为其他人偶然发现了这一点。目前唯一可用的外部端口是8080 8443 80 443

可以使用端口范围:15000 - 35530绑定到内部IP。所有其他端口都保留用于特定进程以避免冲突。由于我们要绑定到内部IP,您需要使用端口转发来访问它:https://openshift.redhat.com/community/blogs/getting-started-with-port-forwarding-on-openshift