wcf

approaches to WCF service version control

We are implementing numerous services in our company and running into versioning issues with data contracts. One of the problems we have is that our data contract are also used as the model of the actual application behind the service. I was wondering what approach others have taken in this kind of situation or just service versioning in...

WCF: Is serialization of a generic interfaces possible?

I'm trying to implement a service contract that contains a method which takes a generic interface, and that generic interface itself is given an interface parameter. I've decorated the service interface with ServiceKnownType, I have decorated the service implementation with regular KnownType, and I have decorated the datacontract impleme...

Can I specify a contract's Name and Namespace in app.config?

I'm pretty new to WCF and SOA, so I apologize if the question is poor. The way I see it, if I could specify a contract's Name and Namespace in app.config, I could change the service that my client contracts use at runtime rather than compile time. Without the ability to specify Name and Namespace in app.config, my client contracts are ...

How to share data between wcf services?

Hello, i want to build a simple winform chat application using wcf. There will be a login form, a form to select the channel and the chat form. I figured it out like this: MembershipService -> login, logout, register ChatService ->JoinChatChannel, LeaveChannel, SendPublicMessage, SendPrivateMessage MembershipService: public clas...

WCF - SSO authentication token and POX interfaces

Here's what I'm trying to do. We have a SSO authentication service that other externally facing web pages and services use to authenticate users. A user tries to reach a service, if no cookie is found containing an authentication token, they are redirected to the SingleSignOn authentication service. The auth service does it's work, and ...

Asp.net MVC utilising WCF

Looking into developing new startup with potential of hopefully having high volume. Initial idea was to straight away have MVC talk to WCF services to create our Application Servers. However after a little contemplating just wondering what benefits would I gain from using WCF services with MVC application? If performance became an iss...

credentials questions

Hi, Let me explain briefly how the app is being setup (by the previous architect).. I have the following app: Server1 Server2 WPF app which installed on the client desktop WCF app which hosted on IIS in Server1 SQL server instance which installed on Server2 (with internal IP addr 10.111.3.10) WPF on client side calls the WCF service...

Determine request Uri from WCF Data Services LINQ query for FirstOrDefault against Azure without executing it?

Problem I would like to trace the Uri that will be generated by a LINQ query executed against a Microsoft.WindowsAzure.StorageClient.TableServiceContext object. TableServiceContext just extends System.Data.Services.Client.DataServiceContext with a couple of properties. The issue I am having is that the query executes fine against our A...

IQueryable problems using WCF

Hi, I have a quite simple WCF service method which returns an IQueryable, just for testing. Perhaps I got something wrong when trying to understand what IQueryable is designed for. I clearly plan to use this with the IQueryable provider of NHibernate later. But first I ran into some sort of serialization problems (at least I think it mi...

Silverlight App. with OOB hangs/waits with Secure WCF Service

Hi all; I have an SL 4 application (with OOB and elevated privileges) which makes a connection to a secure WCF service. But WCF service is never called, the application waits to connect and afterwards timeouts. I have checked with fiddler and wireshark and I saw no connection is made, application just waits! As you know if elevated priv...

WCF REST service's POST request's input XML not getting validated

Hi, I am trying to consume a RESTFul WCF service's Method through a POST request. Following is Webservice's method signature [DataContract(Namespace = "")] public class CompositeType { bool boolValue = true; string stringValue = "Hello "; [DataMember] public string StringValue { ...

WCF REST + WebHttpRelayBinding (Azure AppFabric Service Bus)

I have a self-hosted WCF REST application which is designed to accept and return JSON as a Stream with WebMessageBodyStyle.Bare. I am bypassing the DataContractSerializer using WebContentTypeMapper and WebContentFormat.Raw. It works fine locally via WebHttpBinding, and also works fine when I use WebHttpRelayBinding and Content-Type: tex...

Passing badly structured information to WCF method. Best practice

I have legacy Reporting Engine class that is responsible for 50+ reports with a single method CreateReport(Guid reportId, ReportParams params); Reports require 12+ of different parameter types (Guid, int, bool, enumerations) and their combination. For example: Report #1: No parameters are required Report #2: 2 Booleans (checkboxes pop...

Threading as a WCF Service

I have a Windows Service which I need to have installed on a machine and run just long enough to send out an email of logs and then sleep for 24 hours. If I call the service method from a web client, it works fine, but when I call it from the windows service, it fails every time and the error information doesn't give me anything specifi...

The definition of the report 'Main Report' is invalid

I'm installing a service on a machine that will call a method from another WCF service and email a rdlc report. I have the report being copied to the compile directory and I reference it so it seems to be finding it. LocalReport report = new LocalReport(); report.ReportPath = @"C:\Services\Exp...

Is WCF the right choice for me?

From the little that I know about WCF it seems to be the right solution to a particular problem I have but I'd like to get some input on it. Problem Description: Clients sequentially access domain objects from a list roughly once ever 1-10 minutes (average is 2 mins), but no 2 clients should ever access the same object. Certain orderin...

how do i connect to web service via wcf client? getting a "does not match content type" ProtocolException

I basically follow the instructions in MSDN: http://msdn.microsoft.com/en-us/library/ms730299(VS.85).aspx But when I try to invoke the web service, I get the error" {"The content type text/xml of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure...

Why does Visual Studio use backing fields for WCF Service References?

As many of you will be aware, I can use the DataContract attribute to mark a class for serialization into XML in a WCF service. For example, I can create a DataContract thus: < DataContract() > Public Class fooClass < Datamember() > Public fooString as String End Class When I add a service reference to the code that wi...

Problem in Hosting WCF Service using wsHttpBinding in IIS

I am trying to host my service using following configuration. <system.serviceModel> <services> <service name="Test.MyService" behaviorConfiguration="MyServiceBehavior"> <!-- Service Endpoints --> <endpoint address="MyTestService" binding="wsHttpBinding" bindingConfiguration="WebserviceHttpBin...

VB.NET WCF Soap Web Service Variables Missing

I have created a WCF VB.Net Soap service. The service compiles and runs, but at runtime, only half of the variables passed to the function via a soap request are received. Would anyone please be able to help me determine why only part of the variables are being passed in. Thanks in advance. Interface Imports System.ServiceModel Impo...