ZSI usage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Maxim Sloyko

    #1

    ZSI usage

    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

  • Maxim Sloyko

    #2
    Re: ZSI usage

    There is a typo there in functions name. It is called "session_op en"
    not "open_sessi on", but everything else is as described

    Comment

    Working...