Click here to Skip to main content
15,902,112 members

Comments by Umais ASGHAR (Top 6 by date)

Umais ASGHAR 22-Jan-13 3:54am View    
I tried all that, it didn't work so, I deployed my service on a web server and used Fiddler to monitor request/response and it works fine there. I read a statement somewhere on the internet that it does not work fine when using localhost. Anyway, it works now, thanks for the guidance.
Umais ASGHAR 21-Jan-13 7:12am View    
can you guide me to use Fiddler? I don't see any traffic when I call this service through service client (proxy). How can I setup Fiddler to monitor my service calls?
Service url: Http://localhost:54253/Service.svc
Service name: string SayHello(string name)
I'm calling this service through a Windows Form Application, .Net 4.0
Umais ASGHAR 17-Jan-13 7:18am View    
Yes, that code was just the sample, to show what kind of code I'm expecting to be used. I'll definitely use "application/json" instead of "application/soap+xml". I'll try your solution and see if I succeeed.
Umais ASGHAR 15-Jan-13 4:47am View    
the exception occurs at the moment is "The underlying connection was closed: An unexpected error occurred on a receive." when I GetResponse() is called.
Umais ASGHAR 15-Jan-13 3:59am View    
a problem arises, I was using wsHttpBinding at one endpoint (which was used by the windows application) and had to use webHttpBinding for web client. The problem is, there's no security in webHttpBinding and the service is called with or without username-password parameters, which is not acceptable.

P.S. I have a custom username-password authentication module for this service.