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

SOAP Call

  • June 17, 2024
  • 1 reply
  • 499 views

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.
Best answer by Manoj_Kumar

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

1 reply

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
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  | https://themartech.pro