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?

  1. make sure adapter deployed visiting console
  2. make sure application pointing ip address of host machine mobilefirst server deployed to
  3. make sure adapter call correct

example calling:


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -