Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
SOLVED

SOAP Call for Transactional emails using Postman

Avatar

Level 1
I am just getting an error here:

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:

 <SOAP-ENV:Fault>
            <faultcode>SOAP-ENV:Server</faultcode>
            <faultstring xsi:type='xsd:string'>SOP-330011 Error while executing the method 'PushEvent' of service 'nms:rtEvent'.</faultstring>
            <detail xsi:type='xsd:string'>XTK-170060 You do not have the rights needed to complete the operation. You must have access to a folder of type 'Real time events' (nmsRtEvent).
XTK-170006 Unable to parse expression 'DefaultFolder('nmsRtEvent', [@_folder-id])'.
XSV-350023 Unable to save document of type 'Real time events (nms:rtEvent)'.</detail>
        </SOAP-ENV:Fault>
 
 
 

Am I creating a good postman request to trigger a transaction email template with the trigger 'TESTPLATFORM'? 
Is the SOAP Action correct here?
is it some access issue? I am using admin account
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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


     Manoj
     Find me on LinkedIn

View solution in original post

7 Replies

Avatar

Community Advisor

@rjuneja09 Is this for adobe campaign classic?

Thanks, Sathees

Avatar

Level 1

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:

 <SOAP-ENV:Fault>
            <faultcode>SOAP-ENV:Server</faultcode>
            <faultstring xsi:type='xsd:string'>SOP-330011 Error while executing the method 'PushEvent' of service 'nms:rtEvent'.</faultstring>
            <detail xsi:type='xsd:string'>XTK-170060 You do not have the rights needed to complete the operation. You must have access to a folder of type 'Real time events' (nmsRtEvent).
XTK-170006 Unable to parse expression 'DefaultFolder('nmsRtEvent', [@_folder-id])'.
XSV-350023 Unable to save document of type 'Real time events (nms:rtEvent)'.</detail>
        </SOAP-ENV:Fault>

Avatar

Community Advisor

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.


     Manoj
     Find me on LinkedIn

Avatar

Level 1

Hi @Manoj_Kumar_ 

 

Do you have the endpoint or the soap request that I should do to get the MC Operator for session token?

Avatar

Level 1

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>
'

Avatar

Correct answer by
Community Advisor

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


     Manoj
     Find me on LinkedIn