2013-10-15 138 views
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): 

在引擎收錄完整的跟蹤誤差..

http://pastebin.com/UgxtwPWP

注:從我的本地計算機上運行的虛擬環境完美的作品,我找到的是端口91是從OpenShift拒絕。

感謝, 馬里奧·帕爾多

+0

顯然您不允許訪問該服務。 –

+0

你的python和.net代碼中的URL是不一樣的 - 一個是大寫,另一個是小寫。另外,兩種情況下的空格都是無效的;很容易就可以將一個環境神奇地固定在你身上,而另一個則不會。 – abarnert

+0

大寫或小寫字母在應用程序中沒有任何變化,我發現這個禁止的端口訪問是91 –

回答

相關問題