wcf

WCF throws FileNotFound exception for "System.ServiceModel" when creating ServiceHost.

I'm running into a really strange problem with WCF. I have 2 projects in a solution, each of them starts up some self-hosted WCF services. Project 1: myService = new ServiceHost(typeof(MyService1)); Which runs fine. However, when I try to run my 2nd project, which contains: meService = new ServiceHost(typeof(MyOtherService)); I g...

serializing generic XML data across WCF web service requests

I've got a web app that sends a request to a WCF service. The WCF service gets a LINQ resultset (anon. ilist) and sends that in reply, back to the web app. In order to get it working quickly, inside the WCF app, i'm using copytodatatable and sending it to my web app in a DataSet. My web app then takes the DataSet and writes it to xml, ...

Best Data Access Layer for Silverlight

What's the best Data Access Layer strategy for Silverlight 2 and 3 apps? ...

WCF - Moving MVC Framework from WinForms to an SOA for Silverlight

I would like to move my MVC pattern (BLL and DAL - POCOs) from a WinForms environment to a Silverlight environment. As I begin this transition, do I have to do anything extra to my POCOs for WCF consumption, i.e. move them down the wire, e.g. serilize them? ...

How to emit bare XML for a [WebGet] method in WCF?

How can I define a [OperationContract] [WebGet] method to return XML that is stored in a string, without HTML encoding the string? The application is using WCF service to return XML/XHTML content which has been stored as a string. The XML does not correspond to any specific class via [DataContract]. It is meant to be consumed by an XSL...

Get the domain name of a WCF request?

How can I obtain the domain name or full URL of the requester? ...

Which to use...REST, ASMX, WSE or WCF?

I have a Windows Service which performs a certain function, and then needs to send that information off to a webservice for processing. The webservice is hosted by a remote web application. I am trying to ascertain the best way to call the webservice(s) as each web application might be only 2.0, or 3.5 etc. In my windows service, I am de...

What is wrong with adding a service reference when consuming WCF in Silverlight?

This article talks about consuming WCF services in Silverlight, but claims: There will be no proxies, no generated code, no 3rd party utilities, and no disgusting "Add Service Reference" usage. What is so wrong with me adding a service reference in my Silverlight project? Are there hidden overheads? Or is it a case of Fear Of Auto Magi...

Tool for measuring Windows Service processes and used resources

HiI wrote a stress test vor my WCF service, but the service is in the remote machine, Can I measure that windows service used process and other resources? Is there any other tool? ...

Using 'System.Identity.Model.Claims' for Authorization and Authentication

I want to add authentication and authorization to my application. I do not want to use Active Directory for this. Should I use System.IdentityModel.Claims to do this? Will using System.IdentityModel.Claims make it easier to implement authentication and authorization and why/why not? ...

WCF serialization problem using NameValueCollection

I'm trying to serialize a NameValueCollection over WCF. I keep getting exceptions telling me to add one type after another. After adding them, I finally get Type 'System.Object[]' cannot be added to list of known types since another type 'System.Collections.ArrayList' with the same data contract name 'http://schemas.microsoft.com/20...

Return MembershipUser using WCF service

Hi all, I have WCF service to get users from the ActiveDirectory. I receive parameter from the request (user name) and create response with MembershipUser property. from some reason, the connection get close. the service operation find the user and create the response successfully. when executing the row: "return response;" i got excepti...

Serialization in WCF/LINQ to SQL

I created my dbml file with the tables that i need. One of the method generated is as such, names have been changed and it is not syntactically correct. But my code compiles with the original method created. [Association(Name="Clients_ToEmployee", Storage="_ToEmployees", ThisKey="ClientID", OtherKey="ClientID")] [DataMember(Order=70, Em...

What is REST?

Possible Duplicate: What am I not understanding about REST? What is REST? How does it relate to WCF? I have been asked to look into RESTful implementation of services. Can you please point me to links that would be helpful for beginners. I am a .NET developer with a decent knowledge of ASP.NET ...

MsmqIntegrationBinding Serialization with Unknown Message Body Types

I'm looking to use the MsmqIntegrationBinding to integrate with a legacy queue which has a serialized object as the message body. Has anyone come up with a way to obtain the "metadata" of the message body and create a service side class to use within the service? For example, if I put in a serialized Product object from System A and my...

Exposing existing business objects in WCF

I know there have been similar questions on this topic but I wasn't completely sure they were solving the same problem. So just to be clear... I have an existing class library that has namespaces for types, business logic and data access. The classes in the logic and data access namespaces are static and have basic crud methods to fil...

WCF service and communication with devices

I have a project comming my way: devices with their own system written in C, and a Windows application for managing purposes (sending configuration, retrieving recorded data from devices, monitoring device's state). I have flexibility in choosing what technology I'll use. The requirements are pretty fuzzy right now so it should be someth...

msi installer for wcf service

Is it possible to create a msi installer to host WCF service on IIS? ...

WCF Service Call Wrapper

What is best practice for creating wrapper for WCF service call? I think it is necessary to monitor all calls in the same place, I am thinking to use this kind of code, is this right idea? RetType t = ServiceExecutionContext<IServiceChanel>.Execute(s=>s.GetServiceMethod()); What kind of wrapper are you use in your enterprise applica...

Making a WCF Web Service work with GET requests

Background I have created ASMX web services in the past and have been able to access the service from the web browser and Ajax GET requests using the address convention: MyService.asmx/MyMethod?Param=xxx I just got started using WCF and created a new web service in my ASP.NET project. It creates a file with the .svc extension such as My...