Questions tagged [wcf-4]

Wcf 4 is a version of Microsoft Windows Communication Foundation (WCF) released with Microsoft .NET Framework 4.0

44 questions
13
votes
2 answers

Correct way to close WCF 4 channels effectively

I am using the following ways to close the WCF 4 channels. Is this right way to do it? using (IService channel = CustomChannelFactory.CreateConfigurationChannel()) { channel.Open(); //do stuff }// channels disposes off??
chugh97
  • 9,602
  • 25
  • 89
  • 136
10
votes
3 answers

How to pass more data then the username/password to the service method in WCF 4.0 RESTful service, using basic authentication

The requirements: WCF 4.0 IIS host Basic authentication with custom source RESTful There are plenty of examples and ways how to implement the basic authentication, from using UserNamePasswordValidator, trough ServiceAuthorizationManager and…
Sunny Milenov
  • 21,990
  • 6
  • 80
  • 106
9
votes
2 answers

Flat WSDL for WCF 4 Service

Using WCF 3.5 and the FlatWsdl EndpointBehavior from Christian Weyer, I was able to get a single flat WSDL file for my WCF services without any directives. Now with WCF 4, this doesn't work anymore for some reason. I have tried everything…
kay.herzam
  • 3,053
  • 3
  • 26
  • 37
8
votes
3 answers

WCF Common Parameters ClientMessageInspector, DispatchMessageInspector or alternative?

I am using WCF for data services only (ie internal to the application and very lean with no session state etc) to keep our web application scalable. We need to provide some common properties for every service call that we are currently passing in…
Gats
  • 3,452
  • 19
  • 20
6
votes
1 answer

Basic HTTP Binding isn't configured properly

i have configured a WCF service with wsHTTPBinding but even then i get the error Contract requires Session, but Binding 'BasicHttpBinding' doesn't support it or isn't configured properly to support it. here is the service contract…
Vikram
  • 6,865
  • 9
  • 50
  • 61
4
votes
2 answers

How to run WCF service while changing the namespace in WCF Service Application project?

I have added "WCF Service Application" project type to my VS solution(4.0). Now, the default namespace that appears is "Service" and if I run the application (Pointing WCF service application as the startup project) it works fine. Now I have changed…
user1025901
  • 1,849
  • 4
  • 21
  • 28
4
votes
1 answer

What are the possible cause for EndpointNotFoundException?

I am trying to find the potential cause for the EndpointNotFoundException exception below (occurs on the client side, the exception is intermittent). The exception message describe two possible causes: No endpoint listening. Incorrect SOAP…
Martin
  • 39,309
  • 62
  • 192
  • 278
4
votes
1 answer

WCF internal queues monitoring (in order to avoid sending too many requests to the service)

I read that WCF service throttling enqueues requests internally without any additional code. Is it possible to monitor these internal queues to know, for example, the filling level of? My goal is to avoid that a client can send many requests to a…
enzom83
  • 8,080
  • 10
  • 68
  • 114
3
votes
3 answers

get request URI from IClientMessageInspector

I'm building REST client in WCF, however can't find a way to get the current request URI from a message inspector. It is required to create a signature for custom authentication.
Ivan G.
  • 5,027
  • 2
  • 37
  • 65
3
votes
1 answer

Failed to launch application "WcfTestClient.exe"

when i add more than 38 service and try to run my WCF project from visual studio. It gives following Error. Failed to launch application "WcfTestClient.exe" After clicking on yes it stop. and after clicking on no it show itself in running mode but…
Rahul Rajput
  • 1,427
  • 3
  • 17
  • 38
2
votes
1 answer

Using WCF Discovery to discover non-WCF Windows Services across a domain

I commonly have the need to discover which of my Windows Services are running on which servers in my domain. In the past I have solved this with a common pattern and protocol using UDP broadcast and it has worked rather well (in .NET 2.0 or 3.5).…
M.Babcock
  • 18,753
  • 6
  • 54
  • 84
2
votes
0 answers

Web service call returns 405 method not allowed error

I currently have a deployed wcf application on iis 7.5, windows server 2008 R2. I am using a asp 4.0 mvc which calls the different methods of the wcf web service application. When I make an ajax GET request to any method in the wcf application I…
Matthew
  • 145
  • 1
  • 2
  • 9
2
votes
0 answers

Running a .net 4.0 WCF data service on a subdomain

I have two domains running my WCF data services: a) http://www.domain-a.com/ b) http://api.domain-b.com/ When I address my service like this: http://domain-a.com/odata.svc - IT WORKS. When I address my service like…
Jonathon Kresner
  • 2,793
  • 5
  • 29
  • 40
2
votes
1 answer

WCF 4 close client proxy

In the old days (.net framework 3.5) we need to be careful to close the WCF client proxies. In WCF 4 the Close is not available from the client. But it is available inside the proxy. public class ServiceProxy :…
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
2
votes
2 answers

WCF IParameterInspector + IErrorHandler

If I have both IParameterInspector and IErrorHandler attached to a service can I be sure IErrorHandler.HandleError() will be called on the same thread where IParameterInspector.BeforeCall() is called? I need this because in case of a fault thrown…
UserControl
  • 14,766
  • 20
  • 100
  • 187
1
2 3