MobileFirst-Platform-Developer-Center / DevCenter

Source code for the IBM MobileFirst Foundation developer center
https://mobilefirstplatform.ibmcloud.com
Apache License 2.0
22 stars 36 forks source link

Adapter not getting called in IBM MobileFirst Platform v8.0 #31

Closed deepak8917 closed 7 years ago

deepak8917 commented 7 years ago

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

IdanAdar commented 7 years ago

This git repository is not for technical support. Please open a question on Stack Overflow.