SOAP Call | Community
Skip to main content
Level 3
June 17, 2024
Solved

SOAP Call

Hello

I am trying to do a SOAP call but I am getting an error message during SOAP call:

http.setRequestHeader is not a function

Am I missing something?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
_Manoj_Kumar_
_Manoj_Kumar_Accepted solution
New Participant
June 18, 2024

Hello @rbiri 

 

Are you sending this request to another AC instance or the same instance? If you are getting the data from same instance then there is a better way to do this. 

Here is an example:

var recipients= xtk.queryDef.create( <queryDef operation="select" schema="nms:recipient"> <select> <node expr="@id"/> <node expr="@email"/> </select> </queryDef>).ExecuteQuery(); for each(var recipient in recipients) { // get your data here }

 

If you are accessing another instance then you can use the code given here:

https://experienceleague.adobe.com/developer/campaign-api/api/c-HttpClientRequest.html

     Manoj     Find me on LinkedIn

1 reply

_Manoj_Kumar_
_Manoj_Kumar_Accepted solution
New Participant
June 18, 2024

Hello @rbiri 

 

Are you sending this request to another AC instance or the same instance? If you are getting the data from same instance then there is a better way to do this. 

Here is an example:

var recipients= xtk.queryDef.create( <queryDef operation="select" schema="nms:recipient"> <select> <node expr="@id"/> <node expr="@email"/> </select> </queryDef>).ExecuteQuery(); for each(var recipient in recipients) { // get your data here }

 

If you are accessing another instance then you can use the code given here:

https://experienceleague.adobe.com/developer/campaign-api/api/c-HttpClientRequest.html

Translate
     Manoj     Find me on LinkedIn