pstrSecurityToken missing from LogOn response using node js
Hi.
I try to integrate to adobe campaign API.
I use example from Web service calls to try receive session and security token.
Here is my sample code from node.js
var body = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:session">' +
'<soapenv:Header/><soapenv:Body><urn:Logon>' +
'<urn:sessiontoken/> ' +
'<urn:strLogin>username</urn:strLogin> ' +
'<urn:strPassword>pass</urn:strPassword> ' +
'<urn:elemParameters/>' +
'</urn:Logon></soapenv:Body></soapenv:Envelope>';
request({
headers : {
"Content-Type" : "text/xml; charset=utf-8",
"SOAPAction" : "xtk:session#Logon"
},
uri: this.loginUrl,
body: body,
method: 'POST'
}, (err, response, body) => {
console.log(err);
console.log(body);
});
And here is body response
<?xml version='1.0'?><SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='urn:xtk:session' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'><SOAP-ENV:Body><LogonResponse xmlns='urn:xtk:session' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'><pstrSessionToken xsi:type='xsd:string'>SessionTokenHere</pstrSessionToken><pSessionInfo xsi:type='ns:Element' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'><sessionInfo></sessionInfo></pSessionInfo></LogonResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
As you can see pstrSecurityToken tag is missing from response. So my question is, am i doing something wrong, or security and management settings dont allow security token to be sent via LogOn call.
Thank you.