Calling the offer engine - using SOAP API | Community
Skip to main content
Level 2
September 26, 2019

Calling the offer engine - using SOAP API

  • September 26, 2019
  • 1 reply
  • 10285 views

Has anyone tried to use the Soap Call using offer engine.

We tried to use the below document, but could not retrieve the offer.

Integration via SOAP (server side)

Can you help us with any supporting document or sample code for this API call would be helpful ?

Thanks in advance !

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Raj_Ganta-1
Level 5
October 2, 2019

#!/usr/bin/env bash

URL='http://xxxxxxx:8080/interaction/liveRcp/email'

cat <<- SOAP | curl -4 \

-X POST \

-H 'Content-Type: application/soap+xml;charset=UTF-8' \

-H 'SOAPAction: nms:proposition#Propose' \

-d \@- \

-kv \

$URL

<?xml version='1.0' encoding='utf-8'?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:nms:proposition">

  <soapenv:Header/>

  <soapenv:Body>

  <Propose>

  <targetId>xx</targetId>

  <maxCount>xx</maxCount>

  <themes>xx</themes>

  </Propose>

  </soapenv:Body>

</soapenv:Envelope>

SOAP

the above shell script.

somasundaram_h
Community Advisor
Community Advisor
October 3, 2019

@rajbounteous

I too had the same question. I achieved propose method similar to the above that you mentioned.

In Update status method, we can update 'status' field. Can we update any other fields using updateStatus method? I've raised a question for the same in the following link. https://forums.adobe.com/thread/2653191  Any thoughts on this?

Thanks,

Somasundaram.

Jyoti_Yadav
Level 8
October 25, 2019

Hi,

You need to change it in interaction.js javascript present at location: Administration --> Configuration --> Javascript --> interaction.js

Search for below block of code:

else if( "UpdateStatus" == strCommand )

      {

        var ctx = <ctx/>;

        var iStatus = undefined;

     

You need to write your logic for custom field update. Currently it is doing only for status update.

Thanks,

Jyoti