"Message": "An error has occurred.", "ExceptionMessage": "Unable to connect to the remote server", "ExceptionType": "System.Net.WebException", "StackTrace": " at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream()
WebRequest webRequest = WebRequest.Create("http://XXXXXXXXXXXXXXXXXXXX/webservice/certificate.php"); HttpWebRequest httpRequest = (HttpWebRequest)webRequest; httpRequest.Method = "POST"; httpRequest.ContentType = "text/xml"; httpRequest.Headers.Add("SOAPAction: http://xxxxxxxxxxxxxxxxxxxxxx/webservice/certificate.php/" + methodName); Stream requestStream = httpRequest.GetRequestStream(); //Create Stream and Complete Request StreamWriter streamWriter = new StreamWriter(requestStream); string mergedformat = string.Format(GetSoapString(), requestXmlString); streamWriter.Write(string.Format(GetSoapString(), requestXmlString)); streamWriter.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)