[Python-modules-team] Bug#471496: python-zsi: Value error on binding type should be ignored

Leszek Dubiel leszek at dubiel.pl
Tue Mar 18 14:53:49 UTC 2008


Package: python-zsi
Version: 1.7-2
Severity: normal


Open python console:

 >>> from ZSI.ServiceProxy import ServiceProxy
 >>> service = ServiceProxy('https://www.ecod.pl/webserv2/EDIservice.asmx?WSDL')
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/lib/python2.4/site-packages/ZSI/ServiceProxy.py", line 57, in 
__ini t__
     callinfo = wstools.WSDLTools.callInfoFromWSDL(port, item.name)
   File "/usr/lib/python2.4/site-packages/ZSI/wstools/WSDLTools.py", line 1494, 
i n callInfoFromWSDL
     raise ValueError, 'Unsupported binding type.'
ValueError: Unsupported binding type.



File https://www.ecod.pl/webserv2/EDIservice.asmx?WSDL contains three portTypes:

   <wsdl:service name="EDIWebService">
     <documentation 
xmlns="http://schemas.xmlsoap.org/wsdl/">WebService2</documentation>
     <wsdl:port name="EDIWebServiceSoap" binding="tns:EDIWebServiceSoap">
       <soap:address location="https://www.ecod.pl/webserv2/EDIservice.asmx" />
     </wsdl:port>
     <wsdl:port name="EDIWebServiceHttpGet" binding="tns:EDIWebServiceHttpGet">
       <http:address location="https://www.ecod.pl/webserv2/EDIservice.asmx" />
     </wsdl:port>
     <wsdl:port name="EDIWebServiceHttpPost" binding="tns:EDIWebServiceHttpPost">
       <http:address location="https://www.ecod.pl/webserv2/EDIservice.asmx" />
     </wsdl:port>
   </wsdl:service>


After deleting last two:

   <wsdl:service name="EDIWebService">
     <documentation 
xmlns="http://schemas.xmlsoap.org/wsdl/">WebService2</documentation>
     <wsdl:port name="EDIWebServiceSoap" binding="tns:EDIWebServiceSoap">
       <soap:address location="https://www.ecod.pl/webserv2/EDIservice.asmx" />
     </wsdl:port>
   </wsdl:service>

service conected properely.



Module ServiceProxy should ignore what it doesn't understand and allow user to 
connect to service without need to modify WSDL file.


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-iplus
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages python-zsi depends on:
ii  python                        2.4.4-2    An interactive high-level object-o
ii  python-central                0.5.12     register and build utility for Pyt
ii  python-xml                    0.8.4-6    XML tools for Python

python-zsi recommends no packages.

-- no debconf information







More information about the Python-modules-team mailing list