Hi all,
I wrote this script: from suds.client import Client import datetime #import logging from suds.transport.http import HttpAuthenticated #logging.basicConfig(level=logging.DEBUG) #logging.getLogger('suds.client').setLevel(logging.DEBUG) url_test='https://wstest.izs.it/j_test_canina/ws/search/Search.ws?wsdl' client = Client(url_test) token = client.factory.create('SOAPAutenticazioneWS') token.username = 'sicilia' token.password = 'sicilia' token.ruoloCodice = 'ASL' token.ruoloValoreCodice='V103' client.set_options(soapheaders=token) chip = client.factory.create('animaleSearchTO') chip.anmMicrchip = '968000000818380' result = client.service.searchAnimale(chip)
and it raise this error:
No handlers could be found for logger "suds.client" Traceback (most recent call last): File "/tmp/test_canina.py", line 17, in <module> result = client.service.searchAnimale(chip) File "/tmp/suds/client.py", line 542, in __call__ return client.invoke(args, kwargs) File "/tmp/suds/client.py", line 602, in invoke result = self.send(soapenv) File "/tmp/suds/client.py", line 649, in send result = self.failed(binding, e) File "/tmp/suds/client.py", line 702, in failed r, p = binding.get_fault(reply) File "/tmp/suds/bindings/binding.py", line 265, in get_fault raise WebFault(p, faultroot) suds.WebFault: Server raised fault: 'local part cannot be "null" when creating a QName'
I can't realize what is wrong.
j
It looks like a problem on the server side for me on the first sight. Do you have a client, that can successfully access this service?
Regards, András Veres-Szentkirályi
2011. december 23. péntek 11:36:19 dátummal jose soares ezt írta:
Hi all,
I wrote this script: from suds.client import Client import datetime #import logging from suds.transport.http import HttpAuthenticated #logging.basicConfig(level=logging.DEBUG) #logging.getLogger('suds.client').setLevel(logging.DEBUG) url_test='https://wstest.izs.it/j_test_canina/ws/search/Search.ws?wsdl' client = Client(url_test) token = client.factory.create('SOAPAutenticazioneWS') token.username = 'sicilia' token.password = 'sicilia' token.ruoloCodice = 'ASL' token.ruoloValoreCodice='V103' client.set_options(soapheaders=token) chip = client.factory.create('animaleSearchTO') chip.anmMicrchip = '968000000818380' result = client.service.searchAnimale(chip)
and it raise this error:
No handlers could be found for logger "suds.client" Traceback (most recent call last): File "/tmp/test_canina.py", line 17, in <module> result = client.service.searchAnimale(chip) File "/tmp/suds/client.py", line 542, in __call__ return client.invoke(args, kwargs) File "/tmp/suds/client.py", line 602, in invoke result = self.send(soapenv) File "/tmp/suds/client.py", line 649, in send result = self.failed(binding, e) File "/tmp/suds/client.py", line 702, in failed r, p = binding.get_fault(reply) File "/tmp/suds/bindings/binding.py", line 265, in get_fault raise WebFault(p, faultroot) suds.WebFault: Server raised fault: 'local part cannot be "null" when creating a QName'
I can't realize what is wrong.
j
Veres-Szentkiralyi Andras wrote:
It looks like a problem on the server side for me on the first sight. Do you have a client, that can successfully access this service?
No, I haven't. I tried to access this service using ZSI without success.
j
Regards, András Veres-Szentkirályi
- december 23. péntek 11:36:19 dátummal jose soares ezt írta:
Hi all,
I wrote this script: from suds.client import Client import datetime #import logging from suds.transport.http import HttpAuthenticated #logging.basicConfig(level=logging.DEBUG) #logging.getLogger('suds.client').setLevel(logging.DEBUG) url_test='https://wstest.izs.it/j_test_canina/ws/search/Search.ws?wsdl' client = Client(url_test) token = client.factory.create('SOAPAutenticazioneWS') token.username = 'sicilia' token.password = 'sicilia' token.ruoloCodice = 'ASL' token.ruoloValoreCodice='V103' client.set_options(soapheaders=token) chip = client.factory.create('animaleSearchTO') chip.anmMicrchip = '968000000818380' result = client.service.searchAnimale(chip)
and it raise this error:
No handlers could be found for logger "suds.client" Traceback (most recent call last): File "/tmp/test_canina.py", line 17, in <module> result = client.service.searchAnimale(chip) File "/tmp/suds/client.py", line 542, in __call__ return client.invoke(args, kwargs) File "/tmp/suds/client.py", line 602, in invoke result = self.send(soapenv) File "/tmp/suds/client.py", line 649, in send result = self.failed(binding, e) File "/tmp/suds/client.py", line 702, in failed r, p = binding.get_fault(reply) File "/tmp/suds/bindings/binding.py", line 265, in get_fault raise WebFault(p, faultroot) suds.WebFault: Server raised fault: 'local part cannot be "null" when creating a QName'
I can't realize what is wrong.
j
suds mailing list suds@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/suds
Hi jose.
I wrote this script: ... and it raise this error: ... suds.WebFault: Server raised fault: 'local part cannot be "null" when creating a QName'
I can't realize what is wrong.
I just tried your code (using a patched suds 0.4.1. release on Windows XP) and that is not the only error returned. What you showed is just the last in a series of exceptions starting with:
Traceback (most recent call last): ... File "C:\Program Files\Python\Python32\lib\urllib\request.py", line 495, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 500: Internal Server Error
So this actually seems like a server side error. Try comparing the exact request sent by your suds client with any other means you have to call the same web service.
The best way I found to detect the actual request content in all cases is to scan the network traffic with Wireshark.
Hope this helps.
Best regards, Jurko Gospodnetić