ZSI usage

M

Maxim Sloyko

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!
 
M

Maxim Sloyko

There is a typo there in functions name. It is called "session_open"
not "open_session", but everything else is as described
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,511
Members
48,206
Latest member
EpifaniaMc

Latest Threads

Top