DataContractJsonSerializer serial = new DataContractJsonSerializer(typeof(CreateDoctorProfileArg)); MemoryStream memory = new MemoryStream(); serial.WriteObject(memory, doctorArgs); string data = Encoding.UTF8.GetString(memory.ToArray(), 0, (int)memory.Length); WebClient webClient = new WebClient(); webClient.Headers[HttpRequestHeader.ContentType] = "application/json"; webClient.Encoding = Encoding.UTF8; webClient.UploadString(url + "/CreateDoctorProfile", "POST", data)
"The remote server returned an error: (500) Internal Server Error."
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)