Last post Oct 16, 2017 03:30 AM by Edward Z
Oct 13, 2017 10:37 AM|mahone17|LINK
i created a simple REST web api application in VS 2017 and hosted it on IIS.
i tested it using chrome restlet rest client extension and it worked for replying to get methods
now i want to develop a rest web service client in WPF and test it. when i tried to add web reference it's failing with the following error
There was an error downloading 'http://localhost:9501/$metadata'.
The request failed with HTTP status 404: Not Found.
can anyone help?
Oct 13, 2017 11:02 AM|mgebhard|LINK
Web references as used for SOAP services not REST services.
Oct 16, 2017 03:30 AM|Edward Z|LINK
You could not add service reference for rest service to generate client code.
For using Rest Web Service, you need to use httpclient or webrequest to send http request to access rest service resource.
# WCF: Consume WCF REST service by HttpClient