c# - is ApiController capable of being added as a service reference? -


is mvc4 apicontroller capable of being added service reference? hope avoid creating redundant wcf service non-web applications can access api. tried referencing 1 of url's service reference console app project , got error:

there error downloading

 'http://mypcname/webservices.data/api/controllername/get?epid=123&supressresults=false/_vti_bin/listdata.svc/$metadata'. 

the request failed http status 400: bad request. metadata contains reference cannot resolved:

'http://mypcname/webservices.data/api/conrollername/get?epid=123&supressresults=false'. 

the http request unauthorized client authentication scheme 'anonymous'. authentication header received server 'negotiate,ntlm'. remote server returned error: (401) unauthorized. if service defined in current solution, try building solution , adding service reference again.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -