473,395 Members | 1,497 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,395 software developers and data experts.

Python + SOAP + WSDL: Array-type

2
Hi there :)

I'm trying to make a client-server system, SOAP based. Both client and server modules are written in Python.
I'm using ZSI libraries, abd Python version is 2.5.
In my WSDL File I wrote my methods. The first one to write in my DB, the second one to get a single data from the same db, and the third to get instead a whole resultSet/array/table.

Here is a part of my WSDL Code.

<!-- CODE -->
<!-- Query per scrivere i dati: -->
<message name="getExecuteScalarRequest">
<part name="query" type="xsd:string"/>
</message>
<message name="getExecuteScalarResponse">
<part name="return" type="xsd:string"/>
</message>

<!-- Query per scrivere i dati e ricevere come ritorno una Tabella/Array/resultSet: -->
<message name="getExecuteQueryRequest">
<part name="query" type="xsd:string"/>
</message>
<message name="getExecuteQueryResponse">
<part name="return" type="xsd:string"/>
</message>
<!-- END CODE -->

In the second message I cannot return a string-type data like in the first one, it would be a suicide whenever I have to manipulate the result, especially if my query returns a lot of records.
Thus, I have to find the right way to return datas organized in Array/Table/resultSet. However, I cannot write type="xsd:array", because it does not seem to be a basic data-type in WSDL files.
Therefore, here is my question. How can I return a resultSet/Table/Array to my client? What are WSDL settings I must set? What should i return from my server method?

I hope I explained it quite clear :)
Thanks anyway.
Jul 14 '08 #1
1 3243
jlm699
314 100+
This is not a Python related question. Please post this question in the proper forum. Also, please use code tags in the future. Read the Posting Guidelines for tips on how to use tags in your posts.
Jul 14 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Arne Kösling | last post by:
Hi ! I am new to Web Services. Therefore I ve set up a PHP Installation on Windows (PHP 4.3.2 and Apache 1.3.29). I have tested PHP alone and then installed PEAR. Now I am stuck there (Before...
0
by: Henrik Brautaset Aronsen | last post by:
I am having problems converting from Pear SOAP to PHP5 SOAP, especially when it comes to complex types. I would be grateful for any help on how this should be translated: ...
3
by: Dan | last post by:
I am working on a python/zope web application and could really use some *expert* help on a short term basis. Is there an appropriate forum for trolling for Python Consultants? Here are a pair...
0
by: olafmol | last post by:
Hello, i have a problem using a .NET WSDL Webservice from PHP. Using both the NuSOAP lib for PHP4, and the build-in SOAP lib for PHP5 it seems that the SOAP client cannot pass a variable amount...
16
by: MR | last post by:
my soap messages to a remote site are failing. as far as i can tell the only differences between what my SOAP message looks liek and what they want are in the SOAP envelope SInce they don't have a...
1
by: Florian Grousset | last post by:
Hi, I'm trying to code a simple C# SOAP client wich query an Axis2 Java SOAP Server. Server side code has been generated from a WSDL file. SOAP requests and responses must both contain a simple...
0
by: TheVillain9 | last post by:
i'm working on a php soap server. i'm not entirely sure if my problem is with the server or just if i need to do something else on the client side. basically i created a sample client at:...
1
by: Peter Kraume | last post by:
Hi, I want to access a Lotus Notes Database via SOAP. PHP Version is 5.2.0, OpenSSL support is active (OpenSSL Version OpenSSL 0.9.7e 25 Oct 2004) But I get this error message: Warning:...
2
by: pmlane2001 | last post by:
I have a PHP SOAP XML file size problem that I was wondering if anyone has seen before. I have an XML file that when I put it through my PHP script with 270 lines (13,082 KB) it works fine. If I...
3
by: Rik Wasmus | last post by:
I had some problems on 1 particular server (up to 3 others with the same PHP&SOAP version work, 1 of which with the same OS) with constructing a SOAP client: FAIL: <?php...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.