angularjs with restfull webservice -
is possible communicate restfull webservice using angularjs.my application located in c://higi folder , have created restfull webservice in eclipse using return
$http.get('http://localhost:8080/restfulandangularjs_server/rest/product/findall') .success(function(response){ $window.alert('success') });
code connecting restfull webservice possible or not
if http://localhost:8080/restfulandangularjs_server/rest/product/findall endpoint accessible in general, should accessible via angular $http service.
you can test whether server pasting url in browser. depending on how server side code set regard content negotiation, might error (which error depend on used build web service, @ least you'll know it's up).
if it's should able call angular $http service. if not, make sure its' running starting whatever server using in eclipse.
if you're sure server , running, call should work. might consider handling error callback in $http.get call see whats' happening there.
Comments
Post a Comment