HI,
I wrote the below code to call a wcf service. But iM getting error - The remote server returned an error: (400) Bad Request..
can someone help me out with the issues
System.Text.StringBuilder sb = new System.Text.StringBuilder();
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://localhost:62454/Service1.svc?wsdl");
request.Timeout = 10000000;
request.Method = "POST";
request.ContentType = "text/xml; charset=utf-8";
request.Headers.Add("SOAPAction", "http://localhost:62454/Service1.svc");
request.Credentials = CredentialCache.DefaultCredentials;
string soapRequest = "http://localhost:62454/Service1.svc";
request.ContentLength = soapRequest.Length;
StreamWriter strWriter = new StreamWriter(request.GetRequestStream());
strWriter.Write(soapR ...
Go to the complete details ...