Author: Best123 | Posted on: 8/16/2010 12:34:03 PM | Views : 228

I want to call my WebService using HttpWebRequest, but I get Error:The remote server returned an error: (500) Internal Server Error.
The webservice works fine through the following url:
http://localhost/ResultsWebServices/FG_Results.asmx?op=Get_FG_Results
What Do I need to fix?
namespace ResultsWebservicesConsoleClient { class FG_Results { static void Main(string[] args) { ProcessGetHttpRequest(); } private static void ProcessGetHttpRequest() { Uri myUri = new Uri("http://localhost/ResultsWebServices/FG_Results.asmx/SendRequest?CaseNum=FG10-006294"); HttpWebRequest HttpWReq = (HttpWebRequest)WebRequest.Create(myUri); HttpWebResponse HttpWResp = (HttpWebResponse)HttpWReq.GetResponse(); Console.WriteLine(); if (HttpWResp.StatusCode == HttpStatusCode.OK) Console.W ...

Go to the complete details ...