curl --location 'https://URL-here.com/nl/jsp/soaprouter.jsp' \
--header 'Content-Type: text/xml; charset=utf-8' \
--header 'SOAPAction: nms:rtEvent#PushEvent' \
--data-raw '<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<tns:PushEvent xmlns="urn:nms:rtEvent">
<tns:sessiontoken>Pasted session token here</tns:sessiontoken>
<tns:domEvent>
<rtEvent xmlns="" type="TESTPLATFORM" email="test@gmail.com" wishedChannel="email" externalId="1234">
<ctx></ctx>
</rtEvent>
</tns:domEvent>
</tns:PushEvent>
</soap:Body>
</soap:Envelope>'
but I am getting this error:
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hello @rjuneja09
There is an operator explicitly created for the message centre. You will have to use the credentials of that operator to generate a session token.
The operator username is usually mc
Check the list of all operators in your instance. Use the credentials for the mc operator, and it will work.
More information on this is available here: Configure instances | Adobe Campaign
@rjuneja09 Is this for adobe campaign classic?
Views
Replies
Total Likes
Yeah, Campaign Classic
Views
Replies
Total Likes
This is the request that I am making now:
curl --location 'https://URL-here.com/nl/jsp/soaprouter.jsp' \
--header 'Content-Type: text/xml; charset=utf-8' \
--header 'SOAPAction: nms:rtEvent#PushEvent' \
--data-raw '<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<tns:PushEvent xmlns="urn:nms:rtEvent">
<tns:sessiontoken>Pasted session token here</tns:sessiontoken>
<tns:domEvent>
<rtEvent xmlns="" type="TESTPLATFORM" email="test@gmail.com" wishedChannel="email" externalId="1234">
<ctx></ctx>
</rtEvent>
</tns:domEvent>
</tns:PushEvent>
</soap:Body>
</soap:Envelope>'
but I am getting this error:
Views
Replies
Total Likes
Hello @rjuneja09
As the error says, You don't have permission to access the folder 'Real time events'.
You should be using the MC operator to generate the session token for this API call. Token generated by another operator might not work.
Views
Replies
Total Likes
Do you have the endpoint or the soap request that I should do to get the MC Operator for session token?
Views
Replies
Total Likes
I got the session token using this call:
curl --location 'https://domain/nl/jsp/soaprouter.jsp' \
--header 'Content-Type: text/xml; charset=utf-8' \
--header 'SOAPAction: xtk:session#Logon' \
--data '<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<tns:Logon xmlns="urn:xtk:session">
<tns:sessiontoken></tns:sessiontoken>
<tns:strLogin>myusername</tns:strLogin>
<tns:strPassword>mypassword</tns:strPassword>
<tns:elemParameters/>
</tns:Logon>
</soap:Body>
</soap:Envelope>
'
Views
Replies
Total Likes
Hello @rjuneja09
There is an operator explicitly created for the message centre. You will have to use the credentials of that operator to generate a session token.
The operator username is usually mc
Check the list of all operators in your instance. Use the credentials for the mc operator, and it will work.
More information on this is available here: Configure instances | Adobe Campaign