where is POST params for WCF REST
Posted
by Costa
on Stack Overflow
See other posts from Stack Overflow
or by Costa
Published on 2010-06-01T16:28:23Z
Indexed on
2010/06/01
16:43 UTC
Read the original article
Hit count: 212
wcf
|web-services
Hi
Can u put some code sample to get Post parameters sent by client to WCF REST webservice. The request is though a HttpWebRequest.
The client will not serialize anything if I will request a certain XML format from PHP programmer, how to make WCF convert this XML to one parameter.
currently I am trying to send the request like this and I am stuck
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://100.100.1.4000:2805/Something.svc/Bomba/Data.php");
request.ContentType = "text/xml";
request.Method = "POST";
StreamWriter stream = new StreamWriter(request.GetRequestStream());
{
stream.Write("FirstName=0&LastName=2");
}
request.GetResponse();
stream.Close();
Thanks
© Stack Overflow or respective owner