Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Debug web service consumed through URL
April 16, 2012
I have created a new web service which I'm consuming using its URL from a testing application. Below is my testing app's code. I have set breakpoints in my Web Service and I want debug it when I come to the line "WebResponse res = req.GetResponse();" in my test app. But it doesn't go to my web method (DoHelp. I tried hosting the web service in IIS and attached the "aspnet_wp" process. Then it's working if I run from browser. Kindly give me some input to debug the web service from my test application.
string url = "http://localhost/MyService/Help.asmx?op=DoHelp";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
//HttpRequest req = HttpContext.Current.Request;
req.ContentType = "audio/x-speex;rate=16000";
req.Method = "POST";
byte audioData = null;
string path = Server.MapPath(".");
path += "\\AudioFile\\audio_16k16bit.spx";
//string xx = Nuance.DoVoiceRecognition();
audioData = File.ReadAllBytes(path);
Stream datastream = req.GetRequestStream();
datastream.Write(audioData, 0, audioData.Length);
WebResponse res = req.GetResponse();
StreamReader sr = new StreamReader(res.GetResponseStream());
string outputResult = sr.ReadToEnd();
No response found. Be the first to respond this post
To post reply
Related Questions Related Questions
Secure web service methods!
Problem while invoking the external service in a Windows service or windows application - Proxy is generated using svcutil
how to start window service automatically
how to use timer in window service
register web service
Problem with Installing Windows Service Project
Free Web Service To Send SMS in .net Application
.NET Service Application - Sending mail to 2,634,789 users
web service to list all currency value
Latest Forum Questions From The Same Category
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
How to read Unicode form PDF File and Save into DataBase ?
How to identify the color format of eps/tiff using c#?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend