wcf

Can add one Service Reference for multiple WCF Service Contracts

I have multiple Service contracts defined in one WCF library which are hosted under a Windows Service. These Services are exposed as follows in Windows Service config file: <services> <service behaviorConfiguration="ReportingComponentLibrary.TemplateServiceBehavior" name="ReportingComponentLibrary.TemplateService"> <endpoint a...

How Can I access WCF services using a Web Reference?

What WCF configuration settings makes WCF service, so that I can access as old ASMX web services? How can I authenticate using Authentication header what I used in Old ASMX web services? ...

WCF REST Special characters

HI How do u pass a '/' as a paramter in a wcf service rest way. e.g if the user name has the domain includes "domain/userName" thanks ...

full-duplex TCP/IP stream socket connection vs PollingDuplexHttpBinding vs WSDualHttpBinding

full-duplex TCP/IP stream socket connection vs PollingDuplexHttpBinding vs WSDualHttpBinding I want to know - What is same What is different Some comparing tables Some articles Where what can\cannot be used etc. ...

Use of Attributes... INotifyPropertyChanged

This is just something I was thinking as I was learning on Attributes and I was using the INotifyPropertyChanged too much, is just and Idea and I would like to hear some opinios about it.( I know this would require some work on the compiler and not on the cosumer side) Since INotifyPropertyChanged is used with the same Pattern most of t...

WCF Interop with PHP behind a load balancer

I'm trying to help a customer interop w/ a PHP client but we have a load balancer that is in front of the IIS farm. Because of this when you actually view the .svc?wsdl you get specific server listed inside this WSDL. Then when my customer is trying to generate a client using something like so $client = new SupplierService(); They g...

WCF and FluentNHibernate

I've hit a wall on this one. I have a WCF library with a respective WCF web service. A sandbox web application attempts to fire one method from this service. The service, however, will log requests as they are made. The persistence layer here is built with FluentNHibernate. Session management in a web application has been pretty straigh...

Gracefully terminate WCF Service - complete all open sessions and restrict new sessions

I have a WCF Service that I have written, which is hosted within a Windows service. It is operating in PerSession mode. The service permits clients to open files, make changes to files and close files remotely through the service. So far all works very smoothly. When the Windows service is stopped, I would like to be able have the WCF S...

How to ensure that a machine name is valid and running?

I have a wcf service deployed on mulitple machines on the intranet. User can access the machine through internet by connecting its machine through SSL (secured connection of the client network). User has a client application to consume web service deployed on mulitple machine on client network. I get the machine name from the client ...

Update service reference not working

I'm using Visual Studio 2008 and have a WCF client working against a WCF service. They are both located in the same Visual Studio solution. After I've made a change in my WCF contract, I want to update the service reference on the client so that changes made to the contract is also made in the proxy. My problem is that the proxy code i...

Exceptions and IDispatchMessageInspector

I'm using IDispatchMessageInspector to inspect request/response messages in my WCF service and log some data to our logging database. I also have a custom error handler which catches exceptions and transforms them to faults. I'd like to be able to log the exception (if any) in the IDispatchMessageInspector.BeforeSendReply() method but I ...

Spring.net wcf integration

Hi, I have a WCF service and use Spring.ServiceModel.Activation.ServiceHostFactory as a factory in my *.svc. What I need is to load some data into cache when service is called first time or restarted. Could you please suggest a best way to do so? Right now I inherited from the Spring.ServiceModel.Activation.ServiceHostFactory and put my ...

WCF - Rest and JSON Operation Parameters

Hi there, I'm implementing a generic restful api in WCF. I require access to a generic object deserialized from JSON (as a parameter to a POST operation). I'm using the raw programming model to permit fine-grained control of the return format. For example: // Create [OperationContract(Name = "CreateJSON")] [WebInvoke(UriTemplate = "{en...

Is it possible to hack a WCF client to pass message credentials w/out SSL?

I wrote a custom WCF binding a while back to allow my load balanced farm to host services via IIS. The reason for the custom binding was that each server didn't have SSL but needed the ability to accept a client credential of username + password. The proxy in front of this farm has SSL so the traffic would be encrypted outside the fire...

BizTalk SendPort WCF Calling .asmx web service using WS-Security

Everything I've found so far says I should be able to use WCF to call a .asmx web service that uses WS-Security. The question is how to configure the WCF-Port. I'm using WCF-BasicHttp. First of all, is that okay? Second, how to enter the user/pass properly. On the security tab, which "Security Mode" should I pick? The only one that seem...

Automapper (c#) - Using the instance version of CreateMap and Map with a WCF service???

Hi there, Been having some real issues with automapper, i think i have found the solution but unsure of how to implement it.. basically i am using a custom mapping with ResolveUsing and ConstructedBy to pass in params to the constructor, i understand that most people set this up in the global.asax once and forget about it.. But the pr...

SOA architecture data access

In my SOA architecture, I have several WCF services. All of my services need to access the database. Should I create a specialized WCF service in charge of all the database access ? Or is it ok if each of my services have their own database access ? In one version, I have just one Entity layer instanced in one service, and all the other...

Mapping Complex Type in REST Enabled WCF Service

I m trying to rest-ify our existing WCF service and one of the hurdle is mapping complex type using Uritemplate. For example take a look at the below code [DataContract] public class Stock { [DataMember] public string Symbol { get;set; } [DataMember] public double FaceValue { get; set; } } [ServiceContract] public inter...

Calling wcf rest service from jquery doesn't work

I have written a really simple wcf rest service which seems to work fine when I make requests to it through fiddler but I cannot get it to work when calling it from JQuery. Service: [ServiceContract] public interface IService1 { [OperationContract] [WebInvoke(Method = "POST", UriTemplate = "customers/{regionId}"...

WCF Web Services and Clients

I have a few questions about WCF services that I would appreciate comments on. I have read a lot of material on how to apply WCF services to real-life scenarios, but there are a lot of contradictory opinions. We have a data service which is intended to be nothing more than an interface to a back-end data storage. There are a number of ...