wcf

c# WCF host.open failing

I am doing a WPF application and it is also a WCF server, the problem I have is that I need the ServiceHost to be open and listen in a port for the clients and accept requests as soon as it starts, but the problem I have is that if I write the code to open the host host.open in the constructor after the function this.InitializeComponent...

'System.ComponentModel.PropertyChangedEventHandler' cannot derive from special class 'System.MulticastDelegate'

I'm developing a wcf service as recommended here. It solved my initial problem of namespace conflicts when developing the original .NET 2.0 web service, but I've come up to another problem. The object that I'm trying to pass to the wcf service is used in the client to aggregate a bunch of information from the user and some of its field...

WCF Passing AD Login from win client, then validating it is correct in WCF Server.

I am wanting to create an application in winforms that calls a new WCF application that I create, and I want it to pass the current windows login credentals, enought to be able to pass it to the WCF side so that the WCF side app can validate that it is a good user. I want this so i can enable single sign in. ...

ADO.NET Data Services & Oracle - RESTful WCF w/ Oracle

I'm looking into WCF and woud like to created my framework in a RESTful way. I've just started looking into ADO.NET Data Services, but it seems it only supports SQL Server, is this correct? Can you run in against Oracle? ...

How to add a custom header to every WCF calls?

Hi, I have a WCF service that is hosted in a Windows Service. Clients that using this service must pass an identifier every time they're calling service methods (because that identifier is important for what the called method should do). I thought it is a good idea to somehow put this identifier to the WCF header information. If it is ...

Windows Communication Foundation in VS 2008

Hi What are the benefits of creating a WCF Service Library rather than creating the tradiational web service application? Thanks ...

C#: wcf return an XmlDocument?

Duplicate: serializing-generic-xml-data-across-wcf-web-service-requests Hi all, I have a WCF service where Im building up a block of XML using an XmlWriter. Once complete I want to have the WCF return it as an XmlDocument. But if I have XmlDocument in the [OperationContract] it doesnt work: [OperationContract] XmlDocument GetNex...

Can WCF run on Win2k?

What is needed to either support WCF on Win2k, or at least minimize the effort in supporting remote communication with Win2k servers via .Net? Background: A product I'm working on has a legacy .NET remoting implementation that has been largely replaced by the WCF for new development. The legacy implementation is used as a fall-back fo...

Windows Communication Foundation Service Library Project

Hi Do you know if there is any way to access the wsdl file when you create a WCF service library? It seems you can get it when you create a WCF application but not the service library... Any ideas would be appreciated. Thanks ...

How to add comment in WCF proxy

Is there any attribute that I can add to Operation contract which will have the comment as attribute value and it will be used to generates comments in the proxy? Or is there any other way to do that? ...

How Do I filter Generic List<> with Object of same Class

I have scoured the internet for this answer and asked several developers and have come up short. I have a Class called StaffingPositionsDataContract that I am loading mock data (for now) into a List<> and returning to a page. This is working great, but now I need to filter the list based on another list of values that are inputted on t...

oo question: applying same logic to 2 similar objects

I have 2 objects to create that are identical except for that they refer to my dev and test WCF services. Basically, these are the object for the service itself, and the object for a DTO created by the WCF data-contract. In my test client, I create either the 2 objects related to the dev WCF service, or the 2 objects related to the tes...

What exactly is the last part of the address in WCF?

When specifying an address as part of an endpoint, the format is: http://localhost:8080/MyWCFService or net.tcp://localhost:8080/MyWCFService The guidance (in books, MSDN etc) states the '/MyWCFService' is a 'path' to the service. What exactly does this mean? Is it the Type of the service implementation (as opposed to say a physica...

How to programatically modify WCF app.config endpoint address setting?

I'd like to programatically modify my app.config file to set which service file endpoint should be used. What is the best way to do this at runtime? For reference: <endpoint address="http://mydomain/MyService.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IASRService" contract="ASRService.IASRServ...

Can't deserialize XML in WCF REST service

Hey everyone, I've just started playing with the REST starter kit, and I've hit a road block trying to build my own service. I'm trying to create a service for account management, and I can't get the service to serialize my objects, throwing the following error: Unable to deserialize XML body with root name 'CreateAccount' and root n...

RESTful WCF hosting in IIS

I am currently writing a RESTful WCF service in C# using VS 2005. I am hosting the service through IIS and can browse to the .svc, but whenever I try to navigate to any of the URIs I get a 404 error. If I run the wcftestclient (included with VS 2008) then I am able to see the methods, so I know the service is functioning. The problem se...

REST vs. SOAP - Doesn't support Transactions?

I'm barely examining the architecture of REST and SOAP as an SOA in my architecture. When comparing the two, I've heard one of the downsides to REST is that is doesn't support "Transactions" - what are they talking about? Because from I can tell, it does support CRUD operations just from the underlying HTTP protocols of GET, POST, DELE...

WCF custom serializer

I'm creating a web service in WCF that returns JSON, but the DataContractJsonSerializer is balking on some circular references (which I can't remove in this particular case). Instead, I'd like to use the Newtonsoft json library. What's the easiest way to create a custom serializer in WCF? Note: I know I could just return a stream, bu...

Custom JavascriptConvert Not Being Registered

I built a custom javascript converter, but it is not being called when I call my webservice. namespace LoanPal.WebServices.Converters { public class ContactConverter : JavaScriptConverter { public ContactConverter() { } public override object Deserialize(IDictionary<string, object> dictionary, Type type...

I want to analyze WCF messages...

Hi, as in title I want to see the code of the messages exchanged in local testing. I want to do it to ensure that they are really encrypted as I set to do. Can someone help me? Thanks, Alberto ...