ZSI usage
Maxim Sloyko
m.sloyko at gmail.com
Thu May 4 06:43:32 EDT 2006
Hi all!
I'm trying to make a simple SOAP call from python to SOAP::Lite (perl)
SOAP server.
My SOAP server has https://myserv.com/open-api URI, the function
open_session has the "QW/API" namespace. SO I do the following:
from ZSI.client import Binding
fp = open('debug.out', 'a')
client = Binding(url='/open-api',
host='myserv.com',
port=443,
ssl=1, tracefile=fp)
client.SetNS("QW/API")
sid = client.open_session(1)
However, I get the following error:
ZSI.FaultException: SOAPAction shall match 'uri#method' if present (got
'""', expected 'QW/API#open_session'
If I look at SOAP packet I see the following:
[snip]
<session_open>
<Eo8138f18 xsi:type="xsd:integer">1</Eo8138f18>
</session_open>
[snip]
SO the question is, why ZSI seem to ignore that NS setting? How to fix
that?
Thanks in advance!
--
Maxim
More information about the Python-list
mailing list