Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 06, 2011 08:33 PM by reloadedmatrix
Member
2 Points
2 Posts
Dec 06, 2011 03:38 PM|LINK
I have a WCF based REST service and it exposes various Entities. I would like to create an Atom Summary XML for all my service entities. How can I do that?
If you use the following link you can get the atom summary for this odata service
http://services.odata.org/OData/OData.svc/
<service xmlns="http://www.w3.org/2007/app" xmlns:app="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xml:base="http://services.odata.org/OData/OData.svc /
<workspace> <atom:title>Default</atom:title> <collection href="Products"> <atom:title>Products </atom:title> </collection> <collection href="Categories"> <atom:title>Categories</atom:title> </collection> <collection href="Suppliers"> <atom:title>Suppliers</atom:title> </collection> </workspace> </service>
Dec 06, 2011 08:33 PM|LINK
I find my own answer from this WCF team blog post
Returning Custom Formats from WCF WebHttp Services
http://blogs.msdn.com/b/endpoint/archive/2010/02/01/returning-custom-formats-from-wcf-webhttp-services.aspx
reloadedmatr...
Member
2 Points
2 Posts
REST service workspace summary xml
Dec 06, 2011 03:38 PM|LINK
I have a WCF based REST service and it exposes various Entities. I would like to create an Atom Summary XML for all my service entities. How can I do that?
If you use the following link you can get the atom summary for this odata service
http://services.odata.org/OData/OData.svc/
<div style="color: blue; font-weight: normal; margin-left: -4em;" xmlns="http://www.w3.org/1999/xhtml"><?xml version="1.0" encoding="UTF-8" standalone="true"?></div><service xmlns="http://www.w3.org/2007/app" xmlns:app="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xml:base="http://services.odata.org/OData/OData.svc /
<workspace>
<atom:title>Default</atom:title>
<collection href="Products">
<atom:title>Products
</atom:title>
</collection>
<collection href="Categories">
<atom:title>Categories</atom:title>
</collection>
<collection href="Suppliers">
<atom:title>Suppliers</atom:title>
</collection>
</workspace>
</service>
reloadedmatr...
Member
2 Points
2 Posts
Re: REST service workspace summary xml
Dec 06, 2011 08:33 PM|LINK
I find my own answer from this WCF team blog post
Returning Custom Formats from WCF WebHttp Services
http://blogs.msdn.com/b/endpoint/archive/2010/02/01/returning-custom-formats-from-wcf-webhttp-services.aspx