Informatica ActiveVOS
- Informatica ActiveVOS 9.2.6
- All Products
// Define engine context URL and optional proxy URL at the start of your script. // If the engine URL is not given, 'http://localhost:8080/active-bpel' is used. // Note: AE_ACTIVEVOS_ENGINE_URL is global variable declared in ae-avc-util.js. // You only need to assign it a value (to server /active-bpel context). AE_ACTIVEVOS_ENGINE_URL = "http://demoserver:81/active-bpel"; // Optionally, if you are using a proxy for AJAX requests, you can // assign it a value here: // AE_ACTIVEVOS_PROXY_URL = "http://localhost:8080/proxy"; // for example, JSON service URL. var loanServiceXmlUrl = AE_AJAX_SERVICE_UTIL.getActiveVOSServiceUrl("JSON/humantaskProcessDemoService"); // loanServiceXmlUrl is now equivalent to: // AE_ACTIVEVOS_ENGINE_URL + "/services/" + "JSON/humantaskProcessDemoService" // for example, // http://demoserver:81/active-bpel/JSON/humantaskProcessDemoService // If a value to AE_ACTIVEVOS_PROXY_URL is assigned, the 'loanServiceXmlUrl' becomes part of // the proxy URL string parameter named 'destination'. For example, // http://localhost:8080/proxy?destination=http://demoserver:81/active-bpel/JSON/humantaskProcessDemoService // For example, XML service URL. var loanServiceXmlUrl = AE_AJAX_SERVICE_UTIL.getActiveVOSServiceUrl("XML/humantaskProcessDemoService");
var serviceUrl = "http://localhost:8080/active-bpel/JSON/humantaskProcessDemoService"; // or serviceUrl=AE_AJAX_SERVICE_UTIL.getActiveVOSServiceUrl("JSON/humantaskProcessDemoService"); // send JSON AE_AJAX_SERVICE_UTIL.postJSON( serviceUrl, // service url jsonRequest, // request JSON object function(aJsonResponse) { // success callback of JSON data // handle success response alert("Success!"); }, function(aJsonFault) { // fault callback of JSON data alert("Fault!"); }, function(aStatusCode, aStatusMessage) { // http error callback alert("Transport error: " + aStatusCode + " " + aStatusMessage); } );