amrish kumar

amrish kumar

  • NA
  • 96
  • 4k

Wcf restful Service .and when consume it on aspx page

Jul 22 2015 7:13 AM
I write wcf restful service .
and i cosume that service in my aspx page but  when i  clicked on submit button i got this.
What is fiddler Echo service .and why it come on my aspx page
 ...mycode.. on cs page. on btn click.
 
WebForm1 webf=new WebForm1();

string uName = TextBox1.Text;
string password = TextBox2.Text;

WebClient proxy = new WebClient();
byte[] abc = proxy.DownloadData((new Uri("http://localhost:8080/ServiceName/Service1.svc/UserLogin/" + uname + "/" + password)));
MemoryStream strm = new MemoryStream(abc);

DataContractSerializer obj = new DataContractSerializer(typeof(WebForm1));

//obj.WriteObject(strm,webf);
// strm.Flush();
// strm.Position = 0;
StreamReader sr = new StreamReader(strm);
string s = sr.ReadToEnd();
Response.Write(s);
 
 
 after running aspx application i got this
 

Fiddler Echo Service

GET /ServiceName/Service1.svc/UserLogin/value1/value2 HTTP/1.1
Host: localhost:8080
Connection: Keep-Alive

To configure Fiddler as a reverse proxy instead of seeing this page, see Reverse Proxy Setup
You can download the FiddlerRoot certificate

Answers (1)