473,388 Members | 982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

SOAPpy WSDL problem: namespace of schema and import match error

I am trying to use a webservice with SOAPpy:

import SOAPpy
intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?wsdl"
intact_serv = SOAPpy.WSDL.Proxy(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 "testEBIIntactWebservice.py", line 3, in <module>
intact_serv = SOAPpy.WSDL.Proxy(intact_wsdl)
File "/var/lib/python-support/python2.5/SOAPpy/WSDL.py", line 62, in __init__
self.wsdl = reader.loadFromStream(stream, wsdlsource)
File "/var/lib/python-support/python2.5/SOAPpy/wstools/WSDLTools.py", line 34, in loadFromStream
wsdl.load(document)
File "/var/lib/python-support/python2.5/SOAPpy/wstools/WSDLTools.py", line 260, in load
schema = reader.loadFromNode(WSDLToolsAdapter(self), item)
File "/var/lib/python-support/python2.5/SOAPpy/wstools/XMLSchema.py", line 80, in loadFromNode
schema.load(reader)
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.SchemaError: namespace of schema and import match
Jul 28 '08 #1
1 5961
Christof Winter wrote, On 28.07.2008 12:32:
I am trying to use a webservice with SOAPpy:

import SOAPpy
intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?wsdl"
intact_serv = SOAPpy.WSDL.Proxy(intact_wsdl)
[...]
My question:
- Is there a problem with the WSDL file being not valid?
I just figured out that this could indeed be true. The WSDL document contains an
XML Schema import that probably should be an XML Schema include:

"The import element is used to add multiple schemas with different target
namespace to a document."
http://www.w3schools.com/schema/el_import.asp

"The include element is used to add multiple schemas with the same target
namespace to a document."
http://www.w3schools.com/schema/el_include.asp

Maybe I should post this to comp.text.xml

Christof
Jul 28 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: trexim | last post by:
Hi, I am trying to create a Web Reference for CSTA using the URL http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl Visual .Net complains that: "...
1
by: easoft | last post by:
Hi I have a problem, I have a wsdl file, I try this import(c#) -> error. but this file is good in wsdl to php, and wsdl to java
1
by: billa1972 | last post by:
Hi, I am trying to hook into Yellow Freight's rating webservice. Below is the wsdl. When i try and create a proxy file with wsdl.exe i get the following errors, see below. Also, when i...
2
by: Carmit | last post by:
Hi, I'm trying to build a proxy for this webservice: http://webservices.sabre.com/wsdl/sabreXML1.0.00/tpf/EndTransactionLLSRQ.wsdl I'm getting the following error: Error: Unable to import...
0
by: benboals | last post by:
Note: this is in reply to a message from August 2 which i found searching for help on my own problem. I couldn't seem to reply to it, but a friend suggested that simply using the same subject...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project by serveraddresss?wsdl, it gives me following error: Custom tool...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
0
by: Steve | last post by:
Hi All, I have a Python script that uses SOAPpy and I'm outputting all of the methods and info about the parameters... I'm having trouble getting information out of the __init__ parameter. ...
0
by: pion | last post by:
Hello I'm trying to make a web service client in python, and so to start out, I found this simple example that are supposed to parse an wsdl file using SOAPPy. I'm using Windows and got SOAPPy...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.