here for a quick overview of the site Help Center Detailed answers to any questions you might have http://stackoverflow.com/questions/10305927/web-service-response-returns-a-500-internal-server-error Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads https://social.msdn.microsoft.com/Forums/vstudio/en-US/98558bb6-605a-4a95-a9ba-9ba990915df1/500-internal-server-error-while-calling-a-webservice-through-httprequest?forum=csharpgeneral with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, internal server just like you, helping each other. Join them; it only takes a minute: Sign up Web Service Response returns a 500 Internal Server Error up vote 1 down vote favorite I have written my own web service which works fine stand alone. I'm calling this web service from another page, and at that time it returns internal server error a 500 Internal Server error. I'm going through this process for the 1st time and do not know what this means or why this happens. A preliminary search on Google shows a wide range of answers, although I couldnt find anything specific. Heres my calling code - List>(responseText); Heres my Web Service Code - [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class MyService: System.Web.Services.WebService { public string GetOutput(string jsonStr) { try { /*code to format jsonStr and send it along to another web service*/ var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse(); string responseText = String.Empty; using (var streamReader = new StreamReader(httpResponse.GetResponseStream())) { responseTex
Httprequest Visual Studio Languages , .NET Framework > Visual C# Question 0 Sign in to vote Hi, i am trying to call a webservice using HttpRequest as adding web reference not working for me. It asks for SOAP security header and its of wse type so i triedto call it through Httprequest. Here's my code and service request which works fine in SOAPUI. System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("Webservice URL"); string strSOAPRequestBody = "