Informatica ActiveVOS
- Informatica ActiveVOS 9.2.4.6
- All Products
http://host:port/active-bpel/services/JSON/serviceName?callback=s callbackFnName&_json=string_version_of_json
var getTasksRequest = { "getMyTasks" : { "xmlns" : "http://www.example.org/WS-HT/api/xsd", "taskType" : { "$t" : "TASKS" }, "genericHumanRole" : { "$t" : "POTENTIAL_OWNERS" }, "status" : [ {"$t" : "READY"} , {"$t" : "RESERVED"} ], "maxTasks" : { "$t" : "5"} } }; // get task list using JSONP AE_AJAX_SERVICE_UTIL.getJSON( // task-client service url "http://localhost:8080/active-bpel/services/JSON/AeB4PTaskClient-taskOperations", // req. getMyTasksRequest, // success callback of JSON data function(aJsonResponse) { alert("Success!"); // handle result. e.g. display results in a table }, // fault callback of JSON data function(aJsonFault) { alert("Fault!"); }, // http error callback function(aStatusCode, aStatusMessage) { alert("Transport error: " + aStatusCode + " " + aStatusMessage); } );