473,574 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with python zsi

Hi. I tried earlier to write python zsi mail list, but nobody answered.

I am using ZSI 1.7/2.0rc1 with TTPro Soap SDK. The wsdl file can be found
here:
http://demo.seapine.com/ttsoapcgi.wsdl

My wsdl is the same, only different is the address of the cgi file.

for example i cannot use defectRequest method:

req = getDefectReques t()
req._defectNumb er = 140
req._cookie = cookie #cookie is valid int
resp = server.getDefec t(req)
What i get:
_______________ _______________ ___ Wed Mar 15 10:42:17 2006 REQUEST:
<SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/"
xmlns:ZSI="http ://www.zolera.com/schemas/ZSI/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/"><SOAP-ENV:Header></SOAP-ENV:Header><SOA P-ENV:Body
xmlns:ns1="urn: testtrack-interface"><ns1 :getDefect><coo kie
xsi:type="xsd:l ong">197437</cookie><defectN umber
xsi:type="xsd:l ong">140</defectNumber><s ummary
xsi:nil="1"></summary><bDownl oadAttachments
xsi:nil="1"></bDownloadAttach ments></ns1:getDefect></SOAP-ENV:Body></SOAP-ENV:Envelope>
_______________ _______________ ___ Wed Mar 15 10:42:17 2006 RESPONSE:
500
Internal Server Error
-------
Date: Wed, 15 Mar 2006 09:41:37 GMT
Server: Apache/1.3.33 (Debian GNU/Linux)
Content-Length: 586
Content-Type: text/xml; charset=utf-8
Connection: close

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:ttns="urn :testtrack-interface"><SOA P-ENV:Header></SOAP-ENV:Header><SOA P-ENV:Body
SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/"
id="_0"><SOAP-ENV:Fault><faul tcode>SOAP-ENV:Client</faultcode><faul tstring>XML
syntax
error</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Traceback (most recent call last):
File "./tt.py", line 42, in ?
resp = server.getDefec t(req)
File "/home/bluszcz/python/testtrack/ttsoapcgi_servi ces.py", line 285, in
getDefect
response = self.binding.Re ceive(getDefect Response.typeco de)
File "/usr/lib/python2.4/site-packages/ZSI/client.py", line 415, in
Receive
raise FaultException( msg)
ZSI.FaultExcept ion: XML syntax error

The second error:

req = getGlobalUserLi stRequest()
req._cookie=coo kie
resp = server.getGloba lUserList(req)
_______________ _______________ ___ Wed Mar 15 10:47:15 2006 REQUEST:
<SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/"
xmlns:ZSI="http ://www.zolera.com/schemas/ZSI/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/"><SOAP-ENV:Header></SOAP-ENV:Header><SOA P-ENV:Body
xmlns:ns1="urn: testtrack-interface"><ns1 :getGlobalUserL ist><cookie
xsi:type="xsd:l ong">197437</cookie></ns1:getGlobalUs erList></SOAP-ENV:Body></SOAP-ENV:Envelope>
_______________ _______________ ___ Wed Mar 15 10:47:15 2006 RESPONSE:
200
OK
-------
Date: Wed, 15 Mar 2006 09:46:34 GMT
Server: Apache/1.3.33 (Debian GNU/Linux)
Content-Length: 537
Content-Type: text/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:ttns="urn :testtrack-interface"><SOA P-ENV:Header></SOAP-ENV:Header><SOA P-ENV:Body
SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/"
id="_0"><ttns:g etGlobalUserLis tResponse></ttns:getGlobalU serListResponse ></SOAP-ENV:Body></SOAP-ENV:Envelope>
Traceback (most recent call last):
File "./tt.py", line 40, in ?
resp = server.getGloba lUserList(req)
File "/home/bluszcz/python/testtrack/ttsoapcgi_servi ces.py", line 454, in
getGlobalUserLi st
response = self.binding.Re ceive(getGlobal UserListRespons e.typecode)
File "/usr/lib/python2.4/site-packages/ZSI/client.py", line 421, in
Receive
reply = self.ps.Parse(t c)
File "/usr/lib/python2.4/site-packages/ZSI/parse.py", line 319, in Parse
return how.parse(self. body_root, self)
File "/usr/lib/python2.4/site-packages/ZSI/TCcompound.py", line 199, in
parse
'" missing from struct', ps.Backtrace(el t))
ZSI.EvaluateExc eption: Element "_GlobalUserLis t" missing from struct
[Element
trace: /SOAP-ENV:Envelope/SOAP-ENV:Body/ttns:getGlobalU serListResponse]

But when I am using ZSI 1.7:
req = getDefectReques tWrapper()
req._defectNumb er = 140
req._cookie = int(cookie)
resp = server.getDefec t(req)

I got correct XML but python fault:

Traceback (most recent call last):
File "./tt.py", line 47, in ?
resp = server.getDefec t(req)
File "/home/bluszcz/python/testtrack/ttsoapcgi_servi ces.py", line 850, in
getDefect
response = self.binding.Re ceive(getDefect ResponseWrapper ())
File "/usr/lib/python2.4/site-packages/ZSI/client.py", line 325, in
Receive
return self.ps.Parse(t c)
File "/usr/lib/python2.4/site-packages/ZSI/parse.py", line 311, in Parse
return how.parse(self. body_root, self)
File "/usr/lib/python2.4/site-packages/ZSI/TCcompound.py", line 107, in
parse
value = what.parse(c_el t, ps)
File "/usr/lib/python2.4/site-packages/ZSI/TCcompound.py", line 107, in
parse
value = what.parse(c_el t, ps)
File "/usr/lib/python2.4/site-packages/ZSI/TCcompound.py", line 327, in
parse
item = self.ofwhat.par se(c, ps)
File "/usr/lib/python2.4/site-packages/ZSI/TCcompound.py", line 72, in
parse
self.checkname( elt, ps)
File "/usr/lib/python2.4/site-packages/ZSI/TC.py", line 141, in checkname
if self.nspname and ns != self.nspname:
AttributeError: CReportedByReco rd_Def instance has no attribute 'nspname'

another:
one thing: 1.7 request:
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:ZSI="http ://www.zolera.com/schemas/ZSI/"
SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/" >
<SOAP-ENV:Body>
<getDefect xmlns="urn:test track-interface">
<cookie xsi:type="xsd:l ong">197600</cookie>
<defectNumber xsi:type="xsd:l ong">140</defectNumber>
</getDefect>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
2.0 request:
<SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/"
xmlns:ZSI="http ://www.zolera.com/schemas/ZSI/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/">
<SOAP-ENV:Header></SOAP-ENV:Header><SOA P-ENV:Body
xmlns:ns1="urn: testtrack-interface"><ns1 :getDefect><coo kie
xsi:type="xsd:l ong">197644</cookie><defectN umber
xsi:type="xsd:l ong">140</defectNumber><s ummary
xsi:nil="1"></summary><bDownl oadAttachments
xsi:nil="1"></bDownloadAttach ments></ns1:getDefect></SOAP-ENV:Body></SOAP-ENV:Envelope>
according to:
http://sourceforge.net/mailarchive/m...sg_id=10277851

I added:
* if name or 1: *

but now I have got:
Traceback (most recent call last):
File "./tt.py", line 47, in ?
resp = server.getDefec t(req)
File "/home/bluszcz/python/testtrack/ttsoapcgi_servi ces.py", line 850, in
getDefect
response = self.binding.Re ceive(getDefect ResponseWrapper ())
File "/usr/lib/python2.4/site-packages/ZSI/client.py", line 325, in
Receive
return self.ps.Parse(t c)
File "/usr/lib/python2.4/site-packages/ZSI/parse.py", line 311, in Parse
return how.parse(self. body_root, self)
File "/usr/lib/python2.4/site-packages/ZSI/TCcompound.py", line 111, in
parse
raise e
ZSI.EvaluateExc eption: getDefectRespon se._pDefect: pDefect.eventli st: Sorry,
no multi-dimensional arrays
[Element
trace: /SOAP-ENV:Envelope/SOAP-ENV:Body/ttns:getDefectR esponse/pDefect/eventlist/item[2]]

--
つた
,,To jest Unix. Daje Ci wystarczająco dużo liny, abyś mógł się powiesić.''
Miquel van Smoorenburg mi*****@cistron .nl
Mar 15 '06 #1
0 2532

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

Similar topics

0
1837
by: Atul Kshirsagar | last post by:
I am embedding python in my C++ application. I am using Python *2.3.2* with a C++ extention DLL in multi-threaded environment. I am using SWIG-1.3.19 to generate C++ to Python interface. Now to explain it in details, 1. Python initialization and finalization is done in the *main* thread. 2. For each new thread I create a separate...
49
2579
by: Mark Hahn | last post by:
As we are addressing the "warts" in Python to be fixed in Prothon, we have come upon the mutable default parameter problem. For those unfamiliar with the problem, it can be seen in this Prothon code sample where newbies expect the two function calls below to both print : def f( list= ): print list.append!(1) f() # prints
2
2436
by: gaool | last post by:
Hello, I try to launch a Python script on SunOS system but I have this error: """Traceback (most recent call last): File "ihm1_1.py", line 3, in ? from Tkinter import * File "/opt/sfw/lib/python2.3/lib-tk/Tkinter.py", line 38, in ? import _tkinter # If this fails your Python may not be configured for Tk
11
2521
by: Faheem Mitha | last post by:
Hi, I'm not sure what would be more appropriate, so I'm ccing it to both alt.comp.lang.learn.c-c++ and comp.lang.python, with followup to alt.comp.lang.learn.c-c++. While working with a random number generator in the context of a mixed Python/C++ programming problem. I encountered a vexing type conversion problem.
3
1586
by: Al Christians | last post by:
I started having some problems running python programs (python 2.3) from the Win2k command line. I would get crashes with an NTVDM error. Even just executing python would cause it. I upgraded to python 2.3.5, and no difference. When I rearranged my path to move cygwin and a bunch of other stuff (.net, etc) after C:\python23, the problem...
2
2757
by: Ugo Di Girolamo | last post by:
I have the following code, that seems to make sense to me. However, it crashes about 1/3 of the times. My platform is Python 2.4.1 on WXP (I tried the release version from the msi and the debug version built by me, both downloaded today to have the latest version).
3
2604
by: krzychu | last post by:
Hi, I have installed brand new platform - Zope-2-7-6, Python 2.4.1, Plone 2.0.5, OS Debian 1:3.3.6-2. After import a old Plone site from the following platform Zope-2-7-4, Python 2.3.3, Plone 2.0.3 to the new one, I get error when I visit PuthonScript in the ZMI. "invalid syntax (Script (Python), line 1)"
25
7736
by: Xah Lee | last post by:
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30 minutes with Python 3 times a week since, have 14 years of computing experience, 8 years in mathematical computing and 4 years in unix admin and perl, i...
6
2334
by: TPJ | last post by:
Help me please, because I really don't get it. I think it's some stupid mistake I make, but I just can't find it. I have been thinking about it for three days so far and I still haven't found any solution. My code can be downloaded from here: http://www.tprimke.net/konto/PyObject-problem.tar.bz2. There are some scripts for GNU/Linux system...
10
2261
by: A.M | last post by:
Hi, I am having difficulty with shell scripting in Python. I use the following command to run a DOS command and put the return value in a Python variable:
0
8249
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7826
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6461
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5631
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5305
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3743
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3755
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2251
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1350
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.