Below is the eScript for sending information to http site.
Business Service: EAI HTTP Transport
Method: SendReceive
eScript:
var sUrl = "http URL on which you want to send/ receive information";
var sRequest ="";
var oService = TheApplication().GetService("EAI HTTP Transport");
var oInputs = TheApplication().NewPropertySet();
var oOutputs = TheApplication().NewPropertySet();
oInputs.SetProperty("HTTPRequestBodyTemplate", sRequest);
oInputs.SetProperty("HTTPRequestMethod", "POST");
oInputs.SetProperty("HTTPRequestURLTemplate", sUrl);
oService.InvokeMethod("SendReceive", oInputs, oOutputs);
var Prop1 = oOutputs.urlProp1
Business Service: EAI HTTP Transport
Method: SendReceive
eScript:
var sUrl = "http URL on which you want to send/ receive information";
var sRequest ="";
var oService = TheApplication().GetService("EAI HTTP Transport");
var oInputs = TheApplication().NewPropertySet();
var oOutputs = TheApplication().NewPropertySet();
oInputs.SetProperty("HTTPRequestBodyTemplate", sRequest);
oInputs.SetProperty("HTTPRequestMethod", "POST");
oInputs.SetProperty("HTTPRequestURLTemplate", sUrl);
oService.InvokeMethod("SendReceive", oInputs, oOutputs);
var Prop1 = oOutputs.urlProp1
Comments
Post a Comment