Odata Service Broker
We were having some trouble with this firing POST requests to our OData service - it would just hang (at request.GetResponse()) and the service tester would crash. No errors.
I used the following to set the RequestLength property in the request, and then it started to go through. Code snippet below...
using (MemoryStream memStream = new MemoryStream())
{
using (var memWriter = XmlWriter.Create(memStream))
{
entry.WriteTo(memWriter);
memWriter.Close();
}
request.ContentLength = memStream.Length;
using (var writer = XmlWriter.Create(request.GetRequestStream()))
{
entry.WriteTo(writer);
writer.Close();
}
}
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.