Avatar

Correct answer by
Community Advisor

hello stephenjwz​,

I think there is an issue with your payload.

Can you try with your own ID/Password (administrator) and may be it will work.

You should not be passing in userid/password in the sessiontoken element, this should be a long string hashed token that is generated by running the logon operation in the sessionMethodSoap.

Here is an example logon operation payload.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

</soap:Header>

<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<urn:Logon xmlns:urn="urn:xtk:session">

    <urn:sessiontoken></urn:sessiontoken>

    <urn:strLogin>your_user_name_here</urn:strLogin>

    <urn:strPassword>your_password_here</urn:strPassword>

    <urn:elemParameters>

       

        <AnyElement/>

    </urn:elemParameters>

</urn:Logon>

</soapenv:Body>

</soapenv:Envelope>

Regards,

Venu

View solution in original post