wcf

Do you need to open client firewall for WS-AT to work with WCF?

I am getting the following error trying to communicate from WCF -> WCF across the internet with a SSL certificate. I have 'No authentication required' checked in the WS-AT configuration on the server. After a few seconds I'm getting the following message on my client, and trying to figure out what is wrong in my configuration (or under...

WCF Exception Shielding and Logging Custom Fault Exception

Hi, My WCF service uses ExceptionShielding from Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.WCF. The custom fault exception is caught at client side as try { //Service call } catch (FaultException<ServiceReference1.ServiceFault> ex) { ServiceRefere...

WCF RIA Services Authorization

Hi guys, Assume we have two groups "Admins" and "Users". Admins are able to use any operation available in the service but the users can only use some of them. Should I add the "Admins" group to every single operation or if I just write it on top of the class will do the trick? Thanks. ...

Handling errors and incorrect parameters in a wcf service

Hi, this might sound like a daft question but I can't seem to find a obvious answer. I have to quickly create a simple WCF service and I have created all the classes I need decorated with the DataContract and DataMember attributes and I have created a custom exception class and everything is working. However if an exception is thrown w...

How does Concurrency work in WCF ?

Disclaimer : I am a novice in WCF and SOA :P I am just starting out on these, I have a theoretical doubt : Client A has called a service and the logic is currently executing on the server. While the logic is executing, another call from Client B comes in for the same service. At this point what happens to the logic that is being ex...

Working with Cisco WSMA from .NET

Hi all I need to configure and query a Cisco router from my .NET application, and I need to do it by way of the Cisco WSMA web services interface. These services are exposed over HTTP (in my case), and use SOAP 1.2 to enclose requests and responses (schema here). So a call may look like this (example from the Wikipedia article): <SOA...

WCF Client Certificate Authentication

We have a typical client-server WCF service and I would like the following: Client passes a certificate to the Server through the ClientCredentials property Server looks at the certificate and see's that it has been issued by our trusted certificate authority The client is rejected if they use a certificate that is not issued by our CA...

Consume WCF Data service in client application throws error

Hi All, I am working on WCF Data service which imported stored procedure, as below. [WebGet] public List<GetMTSearchResultTest_Result> GettMTSearchResultTest() { MediaMarketResearch_PRODEntities ent = new MediaMarketResearch_PRODEntities(); return ent.GetMTSearchResultTest().ToList(); } when i consumin...

Silverlight binary / faster serialization

We currently use Silverlight 4 with WCF services and try to read large arrays of users objects from service. In our code it takes about 0.5 (and less) seconds to generate 700 objects, arranged by hierarchy (a lot of loops). And it takes about 4-5 seconds for Silverlight/WCF to communicate that data - on localhost. I've measured timings...

Configuration Error With Custom Behaviour

I've created a custom behaviour for use with a WCF service to log all errors to the application log. I have made a BehaviorExtensionElement for the behaviour: public ErrorLoggingBehaviorExtensionElement : BehaviorExtensionElement { public ErrorLoggingBehaviorExtensionElement() { } /* - Elements removed for brevity - */ } I a...

Dependency Inject with Ninject 2.0

A little question regarding Ninject. I use a WCF 'duplex channel' to communicate with a service. The channel is defined as an interface, lets call it IMyChannel for simplicity. To instantiate a channel we use DuplexChannelFactory<IMyChannel> object's CreateChannel() method. So far I have manage to bind the factory class with this. Bin...

How to get raw XML in WCF Client from Web Service call

I have a WCF Client (console app) that calls a WCF web service and I'm trying to get the raw XML response from within my Console Application. Does anyone have an idea or code snippet on how to do this? ...

Can a WCF Service replace the functionality of TCPListener?

I have a TCPListener based server application which listens for clients on a single specific port. The clients connect, send some xml, get some xml back as a response and then disconnect. Is it at all possible to replace the TCPListener based application with a WCF service without any change to the clients? If so can anyone suggest reso...

Is WCF Chunking Ready For Production Use?

Does anyone know what the status of WCF Chunking? Is it good for production use? Does anyone have any experience using the new WCF Chunking Channel in production? http://msdn.microsoft.com/en-us/library/aa717050.aspx I've downloaded the sample but it seems the API is not ready yet. Does anyone have any good alternatives to WCF chunkin...

Retrieving the currently authenticated user in a WCF service.

Today, I implemented a custom authentication provider for my WCF service. It is able to determine if my user is valid or not, just as expected. So, now I have this class: public class MyCustomValidator : UserNamePasswordValidator { public override void Validate(string userName, string password) { User apiUser = User.Log...

Does upgrading a WCF service from .NET 3.5 to 4.0 change the contract?

If I upgrade a WCF Web Service from .NET 3.5 to 4.0, making no other changes, is there any risk of a change to the contract exposed to the outside world? ie. Will my consumers need to reconsume the WSDL? If so, is there anything I can do to stop that happening? EDIT: An example of the kind of thing I'm talking about. We have been usi...

Set DataServiceHost DataService Context

Is there a way to set the context for your DataService in WCF Data Services? For example, say I have the following DataService: public class MyDataService : DataService<MyContext> Let's say MyContext has an interface of IMyContext and I obtain an instance of this during a custom DataServiceHostFactory's constructor by using Unity. So,...

Difference between the different DuplexChannelFactory<TChannel> constructors

Hello =) what is the difference between the three following constructors, and when do i use each of them. sorry for this basic question : DuplexChannelFactory(InstanceContext) DuplexChannelFactory(Object) DuplexChannelFactory(Type) http://msdn.microsoft.com/de-de/library/ms585874.aspx Thanks! regards thomas ...

WCF 3.5 and UDP

Is it possible to make udp binding in wcf 3.5 or it's only possible in .net 4.0 ? If it's possible in .net 3.5 could somebody give me an example please ? thanks ...

How do I work directly with the XML in WCF Message Contracts?

I'm working with WCF, implementing a very (VERY) complex set of interactions (that we've been handed by a committee controlled by people who have never heard of computers) over SOAP. I will be receiving a message that looks like this: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt; <s:Header> ... (lots of "standar...