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.co m',
port=443,
ssl=1, tracefile=fp)
client.SetNS("Q W/API")
sid = client.open_ses sion(1)
However, I get the following error:
ZSI.FaultExcept ion: SOAPAction shall match 'uri#method' if present (got
'""', expected 'QW/API#open_sessio n'
If I look at SOAP packet I see the following:
[snip]
<session_open >
<Eo8138f18 xsi:type="xsd:i nteger">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
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.co m',
port=443,
ssl=1, tracefile=fp)
client.SetNS("Q W/API")
sid = client.open_ses sion(1)
However, I get the following error:
ZSI.FaultExcept ion: SOAPAction shall match 'uri#method' if present (got
'""', expected 'QW/API#open_sessio n'
If I look at SOAP packet I see the following:
[snip]
<session_open >
<Eo8138f18 xsi:type="xsd:i nteger">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
Comment