kartagis / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

unlike suds the pysimplesoap does not work with ISIR-WS wsdl #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

from pysimplesoap.client import SoapClient

WSDL = "https://isir.justice.cz:8443/isir_ws/services/IsirPub001?wsdl"

if __name__ == u"__main__":
    c = SoapClient(wsdl=WSDL, trace=True)
    print c.getIsirPub0012(-1)

What is the expected output? What do you see instead?

from suds.client import Client

WSDL = "https://isir.justice.cz:8443/isir_ws/services/IsirPub001?wsdl"

if __name__ == u"__main__":
    c = Client(WSDL)
    print c.service.getIsirPub0012(-1)

What version of the product are you using? On what operating system?

pysimple 1.05a
httplib2 0.7.4
suds 0.4.0
python 2.6.6 64bit
python 2.7.2 64bit
Windows 7 Ultimate 64Bit

Please provide any additional information below.

I'm trying to develop soap client and because the suds seems to be a dead 
project, I've decided to use pysimplesoap. The problem is that the pysimplesoap 
(unlike suds) isn't working with ISIR-WS wsdl 
https://isir.justice.cz:8443/isir_ws/services/IsirPub001?wsdl

The ws server seems to be behind somewhat broken loadbalancing/caching server 
and sometimes isn't returning correct wsdl, so even with the suds client you 
will probably have to run the examples multiple times to see what should be the 
correct output.

Petr Jediny

Original issue reported on code.google.com by petr.jed...@gmail.com on 21 Mar 2012 at 8:42

GoogleCodeExporter commented 8 years ago
Hi petr, sorry for the delay.

You can use cache directory to store temporary files, so the proxy issue will 
be gone (even you can copy the generated .pkl to avoid download the wsdl file)

This webservices seems to require a special namespace (most axis servers are 
tricky), so you have to add the ns parameter too:

c = SoapClient(wsdl=WSDL, cache=".", trace=True, ns="isir")

Attached is the full working source, I'll make a test .

That will work (I'll close this ticket, please open a new one if you find other 
issue)

Original comment by reingart@gmail.com on 18 Apr 2012 at 7:24

Attachments: