wcf

Silverlight/WCF login session

I am working on a system with Silverlight and using WCF to call services to do all of the work on the server side. I need to have a user log into the system, and once they are verified, all calls to the server need to contain the user info so the server can check security policies and do other operations based on the user. What is ...

Getting data from WCF Async methods inside a foreach loop

In the code below, I have a List object. I want to iterate through each one and assign a value to one of the properties on each Item object. To get the value, I need to call an async method of a WCF service. When the call to my WCF service completes, how do I take that data and assign it to the current instance (i) in itemsList? Is t...

Modifying security on installed certificates

We are working on creating an installation package for a WCF-based web service. The service uses message-level encryption via an installed certificate. I am trying to come up with an automated way to both install the certificate and set its permissions. Currently, we are manually installing the certificate via the MMC snap-in. After it ...

Caching ASP.NET AJAX service javascript proxies

We have a number of small but useful WCF services which are being hosted using the WebScriptServiceHostFactory class and consumed via ASP.NET AJAX. We've noticed that in our production environment that the javascript proxies are not being cached by the client. Is there anyway to allow these files to be cached? ...

Does adding a method to a WCF ServiceContract break existing clients?

We have an existing ServiceContract [ServiceContract(Namespace = "http://somesite.com/ConversationService")] public interface IConversationService { [OperationContract(IsOneWay = true)] void ProcessMessage(Message message); [OperationContract(IsOneWay = true)] void ProcessMessageResult(MessageResult resu...

Best practices for converting WCF calls to async WCF calls

I am running into issues when trying to convert all my normal WCF calls to async WCF calls. I'm finding I have a refactor a lot of code and not sure exactly how to do it. I have used the method that I found here but running into issues where I need things to happen in order. private void btnSave_Click(object sender, RoutedEventArgs...

WCF contract changes that affect clients

I was curious if someone could outline which types of WCF contract (interface) changes on the server side would break a client trying to send in a message, and why. I believe WCF can handle certain discrepancies, but I'm not sure exactly what you can change safely, and what you can't. Add/remove parameters from an OperationContract? A...

WCF - Deserialize Abstract Class

I have an abstract class 'Server' which I create in my JavaScript in my UI and then I want to have a method on my Web Service which does the following: public List<Database> GetDatabases(Server server) { Type type = server.GetType(); Server x = null; if (typeof (SqlServer2005Server).Equals(type)) ...

WCF Protocol Exception

We are getting some weird behavior from a service we have deployed on a remote system which we are using to access and post data to. Retrieving information from the service doesn't seem to be an issue. However, whenever we try to execute insert methods on the service we get an System.ServiceModel.ProtocolException. The weird thing is, ...

If app.config for a DLL should be in the "main config"… what do we do with WCF References in DLLs?

Ok, this is rather simple, but from what I've seen… you can only use some sort of Windows Workflow to include another config into another (which I refuse to do). Here's the deal: MAINAPP.EXE References an hypothetical LIBRARY.DLL. MAINAPP.EXE has its own MAINAPP.EXE.config. If you add "config values" to LIBRARY.DLL (thereby creating ...

WCF, Metadata and BIGIP - Can I force the correct url for the WSDL items?

We have a WCF service hosted on ServerA which is a server with no-direct Internet access and has a non-Internet routable IP address. The service is fronted by BIGIP which handles SSL encryption and decryption and forwards the unencrypted request to ServerA (at the moment it does NOT actually do any load balancing, but that is likely t...

How to call a WCF service from FitNesse

When calling a WCF service from a console app, asp.net app, wpf/winform app, you have to have a app.config or web.config file for the WCF service endpoint information. But from FitNesse, I'm calling a fixture which is a .dll (class library) and this fixture is calling my WCF service. It can't call the service because I can't include th...

WCF: Is there a way to remove ExtensionData field?

I just started using WCF and I already came to a project-altering issue. I created a service and put in reference in a webservice, but the every field in the webservice xml file comes with an ExtensionData field. Example: I don't want this. I need it to be only: Is there a way to remove this field? Some different kind of serializa...

WCF Automated Deployment

I am in the process of setting up some IIS hosted WCF projects for continuous integration and am stuck trying to find the best and simplest way to get deployment automated. Right now, I have the build and deploy working with CC.NET, MSBUILD and a batch file that copies the necessary files to the deployment folder, but I think there must...

Calling a method and waiting for a return value

How do I call a method that returns a bool, but inside that method in order to determine the value of the bool, it calls a web service asyncronously? bool myBool = GetABoolean(5); public bool GetABoolean(int id) { bool aBool; client.CallAnAsyncMethod(id); // value is returned in a completed event handler. Need to somehow ...

WCF and WSE 2.0 web services.

How I can use WCF to communicate to old school WSE 2.0 web services? ...

How can I manually create WCF OperationContract body type?

I'm trying to code a web service client in Silverlight for a RESTful WCF service that I have developed. In Silverlight I am constructing the body of the WebRequest using a DataContractSerializer instance. This approach works great if there is a single argument for the OperationContract. It doesn't work so well if there are multiple ar...

Make svcutil pick up documentation from C# files?

Folks, I'm creating a new WCF Service and started with my Service interface. Looks something like: public interface ISomethingService { /// <summary> /// some description /// </summary> /// <version>2.13.0</version> /// <copyright>2009 by myself</copyright> /// <author>Marc Scheune...

WCF and Object

I am trying to pass an object into a WCF web service, the object I am passing in is a Server object, I then want to be able to call TestConnection(); The issue I am having is that Server is the base class and there are several derived classes of Server, i.e. SqlServer2005Server, OracleServer and ODBCServer that I want to use I want to ...

Best practice for queries and WCF Service

What would be the best practice for the following scenario: There´s a grid that will be filled and must be changed according to each row. For instance, there´s a grid filled with products, then according to each product one of the columns will be dynamically populated. Is it better to return from the service all the productdetail tabl...