I am trying to use a webservice with SOAPpy:
import SOAPpy
intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?ws dl"
intact_serv = SOAPpy.WSDL.Pro xy(intact_wsdl)
The resulting error message is posted below. If I understand it right,
XMLSchema.py complains about the imported XSD namespace being the same as the
existing targetNamespace .
Perl and Java have no problems with the WSDL document (see sample code at
http://www.ebi.ac.uk/~intact/devsite...search_ws.html)
My question:
- Is there a problem with the WSDL file being not valid?
- Is there a problem with the Python SOAP/WSDL implementation?
Any suggestions?
Christof
import SOAPpy
intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?ws dl"
intact_serv = SOAPpy.WSDL.Pro xy(intact_wsdl)
The resulting error message is posted below. If I understand it right,
XMLSchema.py complains about the imported XSD namespace being the same as the
existing targetNamespace .
Perl and Java have no problems with the WSDL document (see sample code at
http://www.ebi.ac.uk/~intact/devsite...search_ws.html)
My question:
- Is there a problem with the WSDL file being not valid?
- Is there a problem with the Python SOAP/WSDL implementation?
Any suggestions?
Christof
Traceback (most recent call last):
File "testEBIIntactW ebservice.py", line 3, in <module>
intact_serv = SOAPpy.WSDL.Pro xy(intact_wsdl)
File "/var/lib/python-support/python2.5/SOAPpy/WSDL.py", line 62, in __init__
self.wsdl = reader.loadFrom Stream(stream, wsdlsource)
File "/var/lib/python-support/python2.5/SOAPpy/wstools/WSDLTools.py", line 34, in loadFromStream
wsdl.load(docum ent)
File "/var/lib/python-support/python2.5/SOAPpy/wstools/WSDLTools.py", line 260, in load
schema = reader.loadFrom Node(WSDLToolsA dapter(self), item)
File "/var/lib/python-support/python2.5/SOAPpy/wstools/XMLSchema.py", line 80, in loadFromNode
schema.load(rea der)
File "/var/lib/python-support/python2.5/SOAPpy/wstools/XMLSchema.py", line 1076, in load
tp.fromDom(node )
File "/var/lib/python-support/python2.5/SOAPpy/wstools/XMLSchema.py", line 1177, in fromDom
raise SchemaError, 'namespace of schema and import match'
SOAPpy.wstools. XMLSchema.Schem aError: namespace of schema and import match
File "testEBIIntactW ebservice.py", line 3, in <module>
intact_serv = SOAPpy.WSDL.Pro xy(intact_wsdl)
File "/var/lib/python-support/python2.5/SOAPpy/WSDL.py", line 62, in __init__
self.wsdl = reader.loadFrom Stream(stream, wsdlsource)
File "/var/lib/python-support/python2.5/SOAPpy/wstools/WSDLTools.py", line 34, in loadFromStream
wsdl.load(docum ent)
File "/var/lib/python-support/python2.5/SOAPpy/wstools/WSDLTools.py", line 260, in load
schema = reader.loadFrom Node(WSDLToolsA dapter(self), item)
File "/var/lib/python-support/python2.5/SOAPpy/wstools/XMLSchema.py", line 80, in loadFromNode
schema.load(rea der)
File "/var/lib/python-support/python2.5/SOAPpy/wstools/XMLSchema.py", line 1076, in load
tp.fromDom(node )
File "/var/lib/python-support/python2.5/SOAPpy/wstools/XMLSchema.py", line 1177, in fromDom
raise SchemaError, 'namespace of schema and import match'
SOAPpy.wstools. XMLSchema.Schem aError: namespace of schema and import match
Comment