[Fedora-suds-list] urllib2.URLError: <urlopen error [Errno -2] Name or service not known>
jose soares
jose.soares at sferacarta.com
Tue Apr 17 14:32:51 UTC 2012
I resolved the problem using location on Client as in:
client =
Client("https://ws.laboratorio.progetto-sole.it/orsa/ws/ditte.wsdl
<https://ws.laboratorio.progetto-sole.it/orsa/ws/ditte.wsdl>",
location='https://ws.laboratorio.progetto-sole.it/orsa/ws')
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
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> suds mailing list
> suds at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/suds
More information about the suds
mailing list