Sending data through ECC Queue

aniketaniket
Kilo Contributor

Hi All,

I am trying to create a two way SOAP integration.

I need to send the data through ECC queue. Earlier to fuji I used to write something like:

--------------------------------------------------------------------------------------------------------------

var s = new SOAPMessage('TemperatureConvert', 'TempConvertSoap.FahrenheitToCelsius');

s.setParameter('temperatureF', '100');

s.post(true);

----------------------------------------------------------------------------------------------------------------

So the message would get posted through ECC queue and we could track them.

But now that SOAP V2 has been introduced I am confused as to where should we write this "true" parameter so that the message gets posted through ecc queue:

****************************************************************************************

var s = new sn_ws.SOAPMessageV2('Amazon', 'ItemSearch');

s.setStringParameterNoEscape('access_key', 'AKIAJDMB2SKKI7I5K2QQ');

s.setStringParameterNoEscape('signature', 'XXX');

var response = s.execute();

******************************************************************************************

Can anyone please help me with my query.

Thanks in advance.

Kind Regards,

Aniket

8 REPLIES 8

Thijs Daemen
Mega Guru

As I stated in my earlier reply, shouldn't you use:



executeAsync()



from the developer site:


Screen Shot 2015-09-10 at 10.03.04.png


I am also facing the same issue. But we are right now in Eureka version. If anyone know the solution for this please advise


Thanks in Advance,



Kind Regards,
Dinesh Chinnadurai


Hi Dinesh,



If you are in versions prior to Fuji, you can go with the "SOAPMessage" API.


If you are in Fuji version, and your script falls in scoped app, then you can go for "sn_ws.SOAPMessageV2" API.



Thanks,


Priya


amaiyavinash
Tera Contributor

var response = soapMessage.post(true); // the "true" parameter says "use the ECC Queue"