Posting XML to Web service in .NET C# and recieving response
I am posting XML file to Web services using C# , but I am getting error when I am requesting the response 'Server Error - 500 - You are not allowed to access the system . Any help will be appreciated. protected void Page_Load(object sender, EventArgs e) { WebRequest req = null; WebResponse rsp = null; try { string fileName = Server.MapPath("~\\test.xml"); string uri = "http://212.170.239.71/appservices/http/FrontendService"; req = WebRequest.Create(uri); //req.Proxy = WebProxy.GetDefaultProxy(); // Enable if using proxy req.Credentials = new NetworkCredential("myusername", "mypassword"); req.M
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.