0

我对 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/Ug​​xtwPWP

注意:从我的本地计算机运行虚拟环境可以完美运行,我发现 OpenShift 拒绝了端口 91。

谢谢,马里奥·帕尔多

4

1 回答 1

0

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

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

于 2014-09-18T15:45:19.803 回答