ibm mobilefirst - Unable to connect to adapter -
i have following code called when loading page:
var resourcerequest = new wlresourcerequest( "adapters/adapter-name/rest/init/" + timestamp, wlresourcerequest.get );
however returns error in console:
get http://localhost:10080/project-name/adapters/adapter-name/rest/init/0 404 (not found)
while code works:
function wlenvinit() { console.log("connecting 1111"); wl.client.connect({c onsuccess: function(){ console.log("connected 2222"); }, onfailure: function(error) { console.log("error in connection"); console.log(error); } }); }
how troubleshoot this?
- make sure adapter deployed visiting console
- make sure application pointing ip address of host machine mobilefirst server deployed to
- make sure adapter call correct
example calling:
Comments
Post a Comment