Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
38 Points
23 Posts
Feb 17, 2012 08:46 PM|LINK
** EDIT: nevermind this, I see another thread answers this question**
I had tried doing that but then on the server side I get a NRE because request.Content is null
public HttpResponseMessage SomeApiMethod(HttpRequestMessage request) { var doc = XDocument.Parse(request.Content.ReadAsStringAsync().Result); }
chrisortman
Member
38 Points
23 Posts
Re: Passing XDocument as message content
Feb 17, 2012 08:46 PM|LINK
** EDIT: nevermind this, I see another thread answers this question**
I had tried doing that but then on the server side I get a NRE because request.Content is null
public HttpResponseMessage SomeApiMethod(HttpRequestMessage request) { var doc = XDocument.Parse(request.Content.ReadAsStringAsync().Result); }