wcf-endpoint

Configuring WCF to use one of two endpoints

How to configure WCF to use just one of two available endpoints? I need two TCP ports (and thus using netTcpBinding). The service host should first try to bind to the first port. If it fails, and only if it fails, it should try to bind to the second port. EDIT I known it can be achived programatically, but my intention to do it declar...

Accessing wcf web service with powershell2

I'm trying to write a cmdlet that accesses one of my wcf webservices. I've been looking at the new cmdlet : New-WebServiceProxy, but it only really seems capable of consuming ASMX webservices. I've seen this article; which is focussed around Powershell v1.0 I'd rather use a better method (if one exists). http://keithhill.spaces.live.co...

Self-Host WCFExtras

I am trying to self-host a WCF service with the use of WCFExtras. Has anyone been able to add the wsdlExtensions endpoint behavior to the ServiceHost (not through app.config)? It appears that the class doesn't have a public constructor. Has anyone successfully accomplished this? Thanks! ...

What kinds of non-HTTP addresses are allowed in WCF endpoints?

I'm just trying to save time by not learning about IIS and WAS, so I made a console application to host my WCF service. However, that leaves me uncertain as to how to specify an endpoint address that is not an HTTP address. Could the following config be the source of my runtime error? The exception description was: Could not find a ...

Shape a WCF service by endpoint

I have 2 contracts (cA & cB) implemented by a single WCF service with 2 endpoints (epA & epB). This is not for security purposes, but purely for reasons of clarity/organization, I'd like to only "see" ContractA's operations when I discover the service via endpointA; and likewise, only see ContractB's operations via endpointB. I don't n...

WCF endpointBehaviors extension not picked up when the name param is present?

I am trying to extend my service endpoint behaviour with custom MessageInspector, extension works fine and its picked up, but only if I don’t define the “name” parameter on behaviour tag and don’t define specific behaviorConfiguration on the endpoint. This means I am extending all endpoints and this is what I don’t want. Could anyone ple...