You can use the widget CallRestService from the AppStore module NativeRest for that.
The error message you receive ”Name or service not known” indicates that you did reach the server but you have not given the correct parameter values. Do check the page /rest-doc/ of your service-providing app to figure those out.