473,406 Members | 2,336 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,406 software developers and data experts.

soappy bug with dictionary?!?

I have a problem with soappy when i try to send a python dictionary...
i send something like this {'1':2,'3':4}
and it returns something like this {'1':[2,4], '3':4}
function on the server is simply an echo:

def echo(arg):
return arg

i post the soap message, it may be useful...
*** Incoming HTTP headers **********************************************
POST / HTTP/1.0
Host: localhost:8081
User-agent: SOAPpy 0.11.6 (pywebsvcs.sf.net)
Content-type: text/xml; charset="UTF-8"
Content-length: 552
SOAPAction: "http://localhost:8081/a"
************************************************** **********************
*** Incoming SOAP ************************************************** ****
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encod
ing/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http
://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENV="http://schemas.xmlsoap.or
g/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<a SOAP-ENC:root="1">
<v1>
<_x005F_x0031_ xsi:type="xsd:string">2</_x005F_x0031_>
<c xsi:type="xsd:string">6</c>
<b xsi:type="xsd:string">4</b>
</v1>
</a>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
************************************************** **********************
In build.
In dump. obj= {'Result': <SOAPpy.Types.structType v1 at 12802528>: {'c':
'6', 'b
': '4', '_x0031_': '2'}}
In dump_dictionary.
In dump. obj= <SOAPpy.Types.structType v1 at 12802528>: {'c': '6', 'b':
'4', '_x
0031_': '2'}
In dump_instance. obj= <SOAPpy.Types.structType v1 at 12802528>: {'c':
'6', 'b':
'4', '_x0031_': '2'} tag= Result
In dump. obj= ['2', '6', '4']
In dump_list. obj= ['2', '6', '4']
In dump. obj= 2
In dump_string.
In dumper.
In dump. obj= 6
In dump_string.
In dumper.
In dump. obj= 4
In dump_string.
In dumper.
In dump. obj= 6
In dump_string.
In build.
In dump. obj= {'Result': <SOAPpy.Types.structType v1 at 12802528>: {'c':
'6', 'b
': '4', '_x0031_': '2'}}
In dump_dictionary.
In dump. obj= <SOAPpy.Types.structType v1 at 12802528>: {'c': '6', 'b':
'4', '_x
0031_': '2'}
In dump_instance. obj= <SOAPpy.Types.structType v1 at 12802528>: {'c':
'6', 'b':
'4', '_x0031_': '2'} tag= Result
In dump. obj= <SOAPpy.Types.structType v1 at 12802528>: {'c': '6', 'b':
'4', '_x
0031_': '2'}
In dump_instance. obj= <SOAPpy.Types.structType v1 at 12802528>: {'c':
'6', 'b':
'4', '_x0031_': '2'} tag= Result
In dump. obj= ['2', '6', '4']
In dump_list. obj= ['2', '6', '4']
In dump. obj= 6
In dump_string.
In dump. obj= 4
In dump_string.
In dump. obj= ['2', '6', '4']
In dump_list. obj= ['2', '6', '4']
In dump. obj= 2
In dump_string.
In dump. obj= 6
In dump_string.
In dump. obj= 4
In dump_string.
In dump. obj= 6
In dump_string.
In dumper.
In dump. obj= 4
In dump_string.
In dumper.
In dump. obj= 2
In dump_string.
In dumper.
*** Outgoing HTTP headers **********************************************
HTTP/1.0 200 OK
Server: <a href="http://pywebsvcs.sf.net">SOAPpy 0.11.6</a> (Python
2.3.3)
Date: Thu, 23 Dec 2004 14:56:03 GMT
Content-type: text/xml; charset="UTF-8"
Content-length: 960
************************************************** **********************
*** Outgoing SOAP ************************************************** ****
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encod
ing/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http
://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENV="http://schemas.xmlsoap.or
g/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<aResponse id="i1" SOAP-ENC:root="1">
<Result href="#i2"/>
</aResponse>
<xsd:Result id="i2" SOAP-ENC:root="0">
<_x005F_x0031_ href="#i3"/>
<c href="#i4"/>
<b href="#i5"/>
</xsd:Result>
<_x005F_x005F_x005F_x0031_ SOAP-ENC:arrayType="xsd:string[3]"
xsi:type="SOAP-ENC
:Array" SOAP-ENC:root="0" id="i3">
<item href="#i6"/>
<item href="#i4"/>
<item href="#i5"/>
</_x005F_x005F_x005F_x0031_>
<c xsi:type="xsd:string" id="i4" SOAP-ENC:root="0">6</c>
<b xsi:type="xsd:string" id="i5" SOAP-ENC:root="0">4</b>
<item xsi:type="xsd:string" id="i6" SOAP-ENC:root="0">2</item>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
************************************************** **********************

thanks for your help

Jul 18 '05 #1
0 1919

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

Similar topics

0
by: Vivek | last post by:
Hi, Can anyone provide me with sample code that will allow me to use SOAPpy with a WSDL file using HTTP basic authentication? The only thing I've been able to find on the net is...
0
by: Harry George | last post by:
I'm trying to setup a SOAPpy service under xinetd. Has someone done this sort of thing? Didn't find it from google searches or documentation. This is probably a sockets-level issue, but I was...
0
by: Bartas | last post by:
Hi, I'am writting a simple SOAP client in python (2.4) using SOAPpy lib. I've met with this problem: when I want to send a list of complex type using some method from WebService(java,WAS), ...
0
by: Sameer Deshpande | last post by:
Hi, I am using python SOAPpy module to call a web service. Call to web service gets executed successfully. I am facing a problem if the call to WS results into redirect. I get "HTTPError:...
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: linuxprog | last post by:
hi all i'm building a webservice client with soappy when i send some informations it's returns an error here is the informations that generates the error var = SOAPpy.structType()...
0
by: Alex Ezell | last post by:
Can anyone offer any assistance as to how to convert a basic python dictionary, list, or even tuple into the SOAP type "ArrayOfKeyValue"? I am currently using SOAPpy, but would be willing to...
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...
1
by: Christof Winter | last post by:
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...
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: 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
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...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.