where is POST params for WCF REST
- by Costa
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