wcf

What to choose.... web service or WCF in asp.net 3.5

The current project i am working on is extensively using web services and is made in .net 3.5. Now as we are going for implementation of second phase we are confused if we should either use WCF or web service as done previously ? Further is there anything new that can be useful and is coming up with .net 4.0 regarding web services or WCF...

Given wsdl + xds type file, how do I create a stub WCF webservice?

I understand this is a basic topic but never done this before starting from wsdl. I am being handed a wsdl file and a bunch of xsd with the types definitions. I don't have a clue if they were created from a WCF service (I guess so because of the split out format) but I do need to create a WCF service that implements the contract. Quest...

WCF communication between 2 servers crashes after IIS7 process recycle

Hi guys, I am kind of stumped with this one, and was hoping I could find some answers here. Basically, I have an ASP.NET application that is running across 2 servers. Server A has all of the business logic/data access exposed as web services, and Server B has the website which talks to those services (via WCF, with net.tcp binding). T...

Silverlight WCF service consuming inherited types in datacontract

Hi, Im trying to consume a WCF service in silverlight... What I have done is to create two seperate assemblies for my datacontracts... Assembly that contains all of my types marked with data contracts build against .Net 3.5 A Silverlight assembly which links to files in the 1st assembly. This means my .Net app can reference assembl...

Using SSIS Web Service Task with WCF

Hello, I am using SQL Server 2008 SSIS for importing data to the DB and .Net 3.5 SP1 for Creating the WCF service. In the import task I am trying to use the Web Service Task to report to a WCF service. At first I encountered a problem with the WCF WSDL, the Web Service task couldn't get their code generated from the metadata exposed by...

How to setup spring.net dependency injection for a web service?

I have been handed a wsdl file + a number of xsd type definition files - the service I need to code against is not ready yet and I need to put together a fake service (so called a stub or mock) in order to be ready when the real thing comes along. My question is - once I get the interface I need to implement from the wsdl, how do I setu...

WCF services: passing a token to validate a subscription and get database info

Hello, I'm creating a smart client application using .NET 3.5. A Winforms client connecting through WCF services to retrieve data from SQL Server 2008. I need to pass a username/password (encrypted and over HTTPS) and return information such as: Is this user (e-mail address) under a current subscription What server should we go to ne...

Reuse existing types with ADO.NET Data Services

I have an application which consumes both a WCF service and an ADO.NET Data Service. Types are shared between the server and client using a shared class library. When I configure the service reference for the WCF service, I can choose to use the existing types in the class library to avoid creating duplicate types in the proxy classes. ...

ASP.NET MVC Wizard, WCF and validation

I have an asp.net mvc wizard with 5 steps. My business model is implemented using DDD. The architecture of the web application is something like this.. View->Controller->WCF->DDD->Repository and Database. Business data validation is implemented in DDD, and WCF makes a call to it to validate data. I am finding that every step in the wiza...

How-to: Moving WCF service from localhost to production server

I worked through building a WCF web service on my development machine. I built the service, created a test client, tested everything and it works. I was starting to feel pretty good about this WCF stuff. Then I got gutsy and moved it to my production server. For now, the production server is on WinHost.com. I have my testing domain, www...

WCF - difference between a behaviour and a contract?

In WCF, what is the difference between a Behaviour and a Contract? From examining the config file, both seem to point to the interface of the service functionality. Why are they both needed? ...

Anatomy of <system.serviceModel>?

Could you please provide me with a brief breakdown of the system.serviceModel section in a WCF config file? What are the valid sub-sections, and what do they do? ...

WCF service with Qt?

I would like my Qt app to expose a service to another app written in .Net using WCF. Is there any support in Qt for implementing WCF services? ...

How to make web services secure in asp.net both the asmx and on WCF

How to make web services secure in asp.net both the asmx and on WCF. Currently we have web services and now are in process of converting them to WCF in some modules in our application. Now as upgradation is in process we like to incorporate security on the web services as we intend to open some of them to all our clients via web (they co...

What are the benefits for several servicehosts? Does one ServiceHost support several simultaneous connections on one endpoint?

I'm thinking of self-hosting my WCF service instead of using IIS. A big question for me is whether I need to instantiate multiple servicehosts as IIS does or one wil be enough. Do muptiple servicehosts give any benefit except security reasons dut to isolation? Can one servicehost serve multiple connections on one endpoint simultaneou...

Will a REST interface slow down my search engine?

To get a search website built quickly I plan to split the work between two teams: One to build the search engine and one to build web UIs (mobile/desktop). My plan is to build the search engine as a set of REST services based on .NET 3.5. UIs may be built using some other technology. Questions: is the REST interface likely to be a perfo...

sharing interfaces with web services in .net

I am using a web service. I define an interface in the web service. Can I use this interface definition in my project that invokes the web service? I know I can use classes defined in the web service. Do I have to do anything special with the interface like add an attribute? ...

How to correctly open WCF service

Hi there, I'm using WCF client like this... var client = new TestClient(); try { response = service.Operation(request); } finally { try { if (client.State != CommunicationState.Faulted) client.Close(); } catch (Exception) { client.Abort(); } } but from time to time I get...

Using INotifyChanged on DataContracts

Hi, I'm trying to separate actual service data from service functionality and am therefore returning data as a data contract which holds several properties (data members). The client code is generated using svcutil /edb which also generates an INotifyPropertyChanged implementation for the proxy code. As far as my testing revealed, that ...

Configuring both webHTTP and NetHTTP bindings over SSL in WCF on Azure

We would like to expose our WCF services over REST and also over TCP securing them both with SSL. We have a valid SSL uploaded to Azure and the proper mapping setup so that going to https://service.ourdomain.com works as it should. I have setup two endpoint bindings, webHttpBinding for the REST services and a customBinding of type NetH...