I want to ask how can i see what xml does the WCF RESTful return.
I build it and implemented it on my asp.net site and it works perfectly but when I try to access it from the browser it doesn’t return anything.
Here is how I defined one of the methods in the IRESTful interface:
[WebGet(UriTemplate = "GEO_OBJECTS", ResponseFormat = WebMessageFormat.Xml)]
[OperationContract]
IEnumerable<GEO_OBJECT> GetAll();
and this is how I’m accessing it from my browser:
http://localhost:49504/Diplomska/RESTful.svc/GEO_OBJECTS/GetAll
So what am I doing wrong here?
I hosted it on IIS7 (on my local machine), it does the same thing.
the service and the web site are in the same project.
There is a Chrome Extension Simple REST Client you can use to more easily test out RESTful web services.