Posted on: 9/28/2015 3:00:37 PM | Views : 880

If i reference the WCF service from within Visual Studio i am able to consume the service like following:
TestClientServiceReference.XmlReceiverClient client = new TestClientServiceReference.XmlReceiverClient(); client.Save(xmlstring); But if i use HttpWebRequest class i get an Error saying Bad Request Error 400 e.g.
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); // add the headers request.Headers.Add("soapAction", "http://tempuri.org/IXmlReceiver/Save"); etc. I figure that if WCF works like in the first example it should ALSO works fine when i consume it programatically. PLEASE CONFIRM that it's right conclusion. 
Thank you

Go to the complete details ...