[Fedora-suds-list] urllib2.URLError: <urlopen error [Errno -2] Name or service not known>

jo jose.soares at sferacarta.com
Mon Apr 16 15:15:07 UTC 2012


Ok, I see now, thanks to all for the help.
j

Scott Nelson wrote:
> Your computer needs to be able to contact asdev03vm.cup2000.priv to 
> retrieve more information, and it can't determine the IP address.  If 
> you know the IP address, one way to tell your computer the IP address 
> of asdev03vm.cup2000.priv is to add a line to /etc/hosts.  For 
> example, if asdev03vm.cup2000.priv was at 10.10.10.10, then add a line 
> like this to /etc/hosts:
> asdev03vm.cup2000.priv: 10.10.10.10
>
>
> On Apr 16, 2012, at 8:35 AM, Dave Bonner wrote:
>
>> I'd assume it's the "http://asdev03vm.cup2000.priv:8222/orsa/ws" at 
>> the end of the wsdl you linked that's causing the problem.  That's 
>> the address the wsdl says should be used for that service.
>>
>>
>> On Mon, Apr 16, 2012 at 8:59 AM, jo <jose.soares at sferacarta.com 
>> <mailto:jose.soares at sferacarta.com>> wrote:
>>
>>     Hi Andras,
>>     this is the url...
>>     https://ws.laboratorio.progetto-sole.it/orsa/ws/ditte.wsdl
>>     I can access it with no problem.
>>     What do you mean when you say: 'use /etc/hosts' ?
>>
>>     j
>>
>>
>>     Veres-Szentkiralyi Andras wrote:
>>
>>         Hi,
>>         it seems like one of your endpoint URLs contain such a
>>         hostname that urllib2 (the HTTP transport provider of SUDS)
>>         cannot resolve. Check your WSDL for endpoint URLs and correct
>>         if necessary -- or use /etc/hosts.
>>
>>         Regards,
>>         András Veres-Szentkirályi
>>
>>         2012. április 16. hétfő 12:14:22 dátummal jo ezt írta:
>>          
>>
>>             Hi all,
>>
>>             I'm trying to access this ws, but I get an error message
>>             that I don't
>>             understand.
>>             the service client.service.InserisciDitta() exists but
>>             suds say:
>>
>>             urllib2.URLError: <urlopen error [Errno -2] Name or
>>             service not known>
>>
>>             -----------------------------
>>
>>             Suds ( https://fedorahosted.org/suds/ )  version: 0.4 GA
>>              build:
>>             R699-20100913
>>
>>             Service ( orsa_ditteService ) tns="orsa"
>>               Prefixes (1)
>>                  ns0 = "orsa"
>>               Ports (1):
>>                  (orsa_ditteSoap11)
>>                     Methods (3):
>>                        AggiornaDitta(xs:string
>>             IdentificativoMittente, xs:string
>>             IdentificativoRichiesta, xs:string Azienda, xs:string
>>             IdentificativoDitta, xs:date DataInizioAttivita, xs:date
>>             DataFineAttivitaDitta, xs:unsignedInt MotivoCessazione,
>>             AnagraficheDittaType[] AnagraficheDitta, )
>>                        EliminaDitta(xs:string IdentificativoMittente,
>>             xs:string
>>             IdentificativoRichiesta, xs:string Azienda, xs:string
>>             IdentificativoDitta,
>>             ) InserisciDitta(xs:string IdentificativoMittente, xs:string
>>             IdentificativoRichiesta, xs:string Azienda, xs:string
>>             IdentificativoDitta, xs:date DataInizioAttivita, xs:date
>>             DataFineAttivitaDitta, xs:unsignedInt MotivoCessazione,
>>             AnagraficheDittaType[] AnagraficheDitta, )
>>                     Types (2):
>>                        AnagraficheDittaType
>>                        ServiziResponseType
>>
>>
>>             Traceback (most recent call last):
>>              File "test_osa.py", line 14, in <module>
>>                result =
>>             client.service.EliminaDitta(IdentificativoMittente='01',
>>             IdentificativoRichiesta='02', Azienda='1201',
>>             IdentificativoDitta='pippo' )
>>              File "build/bdist.linux-x86_64/egg/suds/client.py", line
>>             542, in __call__
>>              File "build/bdist.linux-x86_64/egg/suds/client.py", line
>>             602, in invoke
>>              File "build/bdist.linux-x86_64/egg/suds/client.py", line
>>             637, in send
>>              File
>>             "build/bdist.linux-x86_64/egg/suds/transport/http.py",
>>             line 177,
>>             in send
>>              File
>>             "build/bdist.linux-x86_64/egg/suds/transport/http.py",
>>             line 77,
>>             in send
>>              File
>>             "build/bdist.linux-x86_64/egg/suds/transport/http.py",
>>             line 118,
>>             in u2open
>>              File "/home/jose/.virtualenv/lib/python2.6/urllib2.py",
>>             line 391, in open
>>                response = self._open(req, data)
>>              File "/home/jose/.virtualenv/lib/python2.6/urllib2.py",
>>             line 409, in
>>             _open '_open', req)
>>              File "/home/jose/.virtualenv/lib/python2.6/urllib2.py",
>>             line 369, in
>>             _call_chain
>>                result = func(*args)
>>              File "/home/jose/.virtualenv/lib/python2.6/urllib2.py",
>>             line 1161, in
>>             http_open
>>                return self.do_open(httplib.HTTPConnection, req)
>>              File "/home/jose/.virtualenv/lib/python2.6/urllib2.py",
>>             line 1136, in
>>             do_open
>>                raise URLError(err)
>>             urllib2.URLError: <urlopen error [Errno -2] Name or
>>             service not known>
>>
>>             ----------------------------------------------------------------------
>>             what's wrong?
>>
>>             j
>>                
>>
>>         _______________________________________________
>>         suds mailing list
>>         suds at lists.fedoraproject.org
>>         <mailto:suds at lists.fedoraproject.org>
>>         https://admin.fedoraproject.org/mailman/listinfo/suds
>>
>>
>>     _______________________________________________
>>     suds mailing list
>>     suds at lists.fedoraproject.org <mailto:suds at lists.fedoraproject.org>
>>     https://admin.fedoraproject.org/mailman/listinfo/suds
>>
>>
>>
>>
>> -- 
>> david bonner // dbonner at cogolabs.com <mailto:dbonner at cogolabs.com>
>>
>> _______________________________________________
>> suds mailing list
>> suds at lists.fedoraproject.org <mailto:suds at lists.fedoraproject.org>
>> https://admin.fedoraproject.org/mailman/listinfo/suds
>


-- 
Jose Soares Da Silva                     _/_/
Sferacarta Net
Via Bazzanese 69                       _/_/    _/_/_/
40033 Casalecchio di Reno             _/_/  _/_/  _/_/
Bologna - Italy                      _/_/  _/_/  _/_/
Ph  +39051591054              _/_/  _/_/  _/_/  _/_/
fax +390516131537            _/_/  _/_/  _/_/  _/_/
web:www.sferacarta.com        _/_/_/      _/_/_/

Le informazioni contenute nella presente mail ed in ogni eventuale file allegato sono riservate e, comunque, destinate esclusivamente alla persona o ente sopraindicati, ai sensi del decreto legislativo 30 giugno 2003, n. 196. La diffusione, distribuzione e/o copiatura della mail trasmessa, da parte di qualsiasi soggetto diverso dal destinatario, sono vietate. La correttezza, l’integrità e la sicurezza della presente mail non possono essere garantite. Se avete ricevuto questa mail per errore, Vi preghiamo di contattarci immediatamente e di eliminarla. Grazie.

This communication is intended only for use by the addressee, pursuant to legislative decree 30 June 2003, n. 196. It may contain confidential or privileged information. You should not copy or use it to disclose its contents to any other person. Transmission cannot be guaranteed to be error-free, complete and secure. If you are not the intended recipient and receive this communication unintentionally, please inform us immediately and then delete this message from your system. Thank you.



More information about the suds mailing list