471,604 Members | 1,547 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

WSDL: Array Type

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.

Expand|Select|Wrap|Line Numbers
  1. <message name="getExecuteScalarRequest">
  2. <part name="query" type="xsd:string"/>
  3. </message>
  4. <message name="getExecuteScalarResponse">
  5. <part name="return" type="xsd:string"/>
  6. </message>
  8. <message name="getExecuteQueryRequest">
  9. <part name="query" type="xsd:string"/>
  10. </message>
  11. <message name="getExecuteQueryResponse">
  12. <part name="return" type="xsd:string"/>
  13. </message>
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 data 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
0 2972

Post your reply

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

Similar topics

reply views Thread by Suresh Pasala | last post: by
1 post views Thread by easoft | last post: by
5 posts views Thread by Mike Logan | last post: by
reply views Thread by Andrew Brook | last post: by
1 post views Thread by sberry | last post: by
1 post views Thread by Hades | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

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.