I am trying to call javascript adapter procedure using WLResourceRequest. But it is not getting called.
Client Code Snippet:
var url = "/adapters/AdapterNew/getFeed";
var resourceRequest = new WLResourceRequest(url, WLResourceRequest.GET);
resourceRequest.send().then(app.onSuccess, app.onFailure);
Server Code Snippet:
function getFeed(tag) {
var input = {
method : 'get',
returnedContentType : 'xml',
path : getPath(tag)
};
return MFP.Server.invokeHttp(input);
}
It is not giving any error. Please let me know the issue.
I am trying to call javascript adapter procedure using WLResourceRequest. But it is not getting called.
Client Code Snippet:
var url = "/adapters/AdapterNew/getFeed"; var resourceRequest = new WLResourceRequest(url, WLResourceRequest.GET); resourceRequest.send().then(app.onSuccess, app.onFailure); Server Code Snippet:
function getFeed(tag) { var input = { method : 'get', returnedContentType : 'xml', path : getPath(tag) }; return MFP.Server.invokeHttp(input); } It is not giving any error. Please let me know the issue.
Thanks, Deepak Kumar