wcf

WCF Security: incorrect credentials getting passed to service

Hi there, I have a problem where I am connecting to a WCF service from ISS and it's passing in the IIS application pool credentials instead of my windows credential. When i run the website locally by hitting F5 in VS it passes in my windows credentials which is what i want. My website is setup to use Windows Authentication and anonymou...

NetDataContractSerializer and WCF

Hi guys I have a scenario where I need to use the NetDataContractSerializer instead of the DataContractSerializer. Up until now I have been using this method - http://www.pluralsight.com/community/blogs/aaron/archive/2006/04/21/22284.aspx - which appears quite simple but according to this http://social.msdn.microsoft.com/forums/en-US...

Returning database view data using wcf service and binding results in WPF

Hello, Here's what I want to achieve: Have a wpf system tray application or a vista gadget that will show me live data from a database view. I need to use a WCF service to retrieve the data. The data in the underlying tables will be changing frequently but I can do without upto the second updates in the client (if I have to). How do y...

consume a wcf duplex service in windows form

I have a wcf duplex service with work fine in silverlight. but the same service want to consume in windows forms. how it possible. my code as folow:- EndpointAddress address; address = new EndpointAddress("http://server08:2508/JakayaChatService"); CustomBinding binding = new CustomBinding( new Pol...

What are the various methods of hosting a WCF service?

What are the various methods of hosting a WCF service? ...

WCF Service which creates a new thread for every new request

Is there a way to configure a WCF Service to create a new Thread to handle any new incoming request? ...

Slow MSMQ within a WCF service

Hi all, this is a weird thing. I created a simple SOAP based web service with WCF. When the 'SubmitTransaction' method is called, the transaction is being passed on to an application service. But if the application service is not available, it is being written to a MSMQ. Like this: public void SubmitTransaction(someTransaction) { t...

Impersonation WCF

I have a WCF service, hosted in IIS, which I require to impersonate the annon account. in my Webconfig <authentication mode="Windows"/> <identity impersonate ="true"/> Testing the following, with vs2008 public void ByRuleId(int ruleId) { try { string user = WindowsIdentity.GetC...

WCF XML element gets lost

when by posting the xml message from client to WCF service, when by getting save the xml file we lost the root element(for eg: tag) in the xml content Server Code : [ServiceContract(Namespace = "http://www.mydomain.com/testing")] public interface Imyservice { [OperationContract] [WebInvoke(UriTemplate = "data", Method = "POST...

What is a good and USEFUL project to code to learn WCF?

I like my learning projects to also be useful. If not to me then to somebody around me. What are some good projects I could code using WCF (to learn it) that I will be able to put to use for myself, or for someone or some organization I may know? What I am not interested in tutorials, or books on how to learn it. Thanks. ...

How do I export metadata for a single contract with svcutil.exe?

I have two ServiceContracts implemented as interfaces. I want to export the metadata for only one of them. The trick is that both interfaces are implemented by the same class. Therefore, I don't think that I can use /excludeTypes. Please include example syntax when answering. Thanks! EDIT: A co-worker recently asked me why this is ...

WCF Pass extra security data through all service calls

Client side I need to pass a piece of information (for this example lets say a string) to every service call I make. The services use this string (currentRole) along with user/pass credentials to retrieve a user's set of claims associated w/their current role. The solutions I have come across thus far are: 1) Modify message headers as...

Using a wcf service registry / service locator from Silverlight

I have a silverlight application that needs to use multiple WCF services. The endpoints (urls) of the services cannot be hardcoded inside the silverlight application or the configuration file. They must be queried from a Service Registry which is itself a WCF service. The problem is that I have to use an async call to query the service ...

Accessing a WCF-service using Java

I'm developing a web-service using WCF, which I want to access using a client written in Java. I will encode the messages using Protocol Buffers (with Marc Gravell's protobuf-net to be exact). Is this possible to achive or must the client be written in .NET as well? I know that data serialized with Protocol Buffers is binary interopable...

wcf serialization

Hello, we are planning to share types between two application communicating on top of wcf, using NetDatacontractSerializer for that, that works fine, but i want to introduce proxy objects on client side. Is it possible to participate in the instance creation process of NetDataContractSerializer, or is writing a completely new serialize...

How to implement WCF proxy pooling?

What is the best practice around implementing WCF proxy pooling? What precautions should be taken in the design? Any pointers in this direction is greatly appreciated. ...

How can I add endpoint behaviors to the client service with duplex contracts ?

I have created a binding which supports duplex communication, but it needs that the endpoint has the SynchonousReceiveBehavior : endpoint.Behaviors.Add(new SynchronousReceiveBehavior()); This is really easy to do on the server side. However, I need to use a duplex contract and I don't find how I can specify this behavior to the hos...

WCF Unicode UrlEncoded Get not coming over nicely

I have a RESTful WCF service which accepts GET verbs with Unicode encoded urls. The Unicode characters are translated as little boxes strangely when I get the data on the server. Is there something I have to tell the service contract to do in order to get Unicode UrlEncoded Gets to translate into nice strings? Here's my contract: [Ope...

Problem with WCF Response - getting multiple responses

Hi, I am using Silverlight, WCF combination. Currently, I am facing one problem with service response. I am using request response service type. I have 100 Items and i am going to call 100 services to fetch it's properties. foreach (ItemDto item in items) { ServiceCall(); ServiceSendCount++; } private void OnServiceCallCo...

How can I embed complex types into wsdl definition?

Hi, WCF generates complex types as external xsd files. How can I embed these definitions into wsdl? Because Delphi WSDL importer cannot import the complex types in the xsd files. Thank you. ...