wcfservice

WCF service monitoring

I am writing WCF service hosted in WinForms application. Is there some way to monitor performance and statistics(count of instances, count of calls to endpoints, duration of calls, etc...) about service and display them in Form in which service is hosted? ...

Need to have a single instance of a dependency container exist for a WCF service

The idea is to use DI container on my service contract implementation to instantiate my Business and Data classes. The reason I need to do it this way, is that I have one service contract that deals with different client requests. Each client request corresponds to different Business class ...

Shared WCF client code between .NET and Silverlight apps?

I'm developing a .NET application that will have both a WinForms and a Silverlight client. Although the majority of code will be in the server, I'll need to have quite a bit of logic in the clients as well, and I would like to keep the client library code the same. From what I could figure out so far, I need to have two different proj...

NetDataContractSerialization throwing deserialization error

hi, I have methods which return interface and some methods which accepts interface as parameters. I am trying to use Net DataContractSerializer but I am getting following error... The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri....

WCF reuse types in referenced assemblies does not reuse the ServiceContract Interface

I have four seperate projects: -MyUserControl (Needs a reference to a service implementing IMyService) -MyService (Implements IMyService) -MySharedInterfaces (IMyUserControl and IMyService) -MyWebApp The user control needs to be dynamically loaded at runtime. This implements IMyUserControl and has a property of type IMyService which...

Adding a reference to a class library or service from a smart device project in VS.Net?

We're trying to debug a WCF service that is being consumed by a smart device project. The problem is that the service never gets debugged, only stepped over. Similarly, when trying to add a class library to a smart device project, the following error is seen: Cannot add a reference to a desktop project from a smart device project. An...

How to expose service contract interfaces with multiple inheritance in WCF service on single endpoint

I have only simple data types in method signature of service (such as int, string). My service class implements single ServiceContract interface say IMathService, and this interface in turn inherits from some other base interface say IAdderService. I want to expose the MathService using interface contract IAdderService as a service on a ...

WCF Sharing an object between Client and Host

Hey, I can't seem to access the returned value from a method I called on my Host. //Service--------------------------------------------------------- [DataMember] private List<CalculationRecord> History = new List<CalculationRecord>(); public IEnumerable<CalculationRecord> CalculationHistory() { return (IEnum...

Get Dataset returned from an ajax enabled wcf service....

I call an ajax enabled wcf service method , <script type="text/javascript"> function GetEmployee() { Service.GetEmployeeData('1','5',onGetDataSuccess); } function onGetDataSuccess(result) { Iteratejsondata(result) } </script> and my method is , [OperationContract] public string GetEmplo...

Is the use of a proxy required to consume a WCF service?

I have a WCF Service that I want my client to be able to consume from IIS without going through a proxy. The client was consuming asmx service in vbscript using the htc behavior: <div id="oWSInterop" style="behavior:url(webservice.htc)"></div> oWSInterop.useService "http://localhost/WSInteroperability.asmx", "WSInteroperability" Set ...

Consumed WCF service returns void although return type (& value) specified

I have a WCF service that I am attempting to connect to via a console application for testing (although will move to WPF for the final interface). I have generated the proxy, added the service reference to my project in visual studio and I can see all the methods I have created in my WCF interface: SupportStaffServiceClient client = ne...

Silverlight 4 RC + Out-of-Browser + WCF service hosted on HTTPS => How to make it work?

Hello, i have a WCF service which is hosted by IIS and a Silverlight application which calls that service. I have a clientaccesspolicy.xml and the application is able to call the service from HTTP. But if i install the application (because we need elevated permissions in the future) and call the WCF service via HTTPS i just get a "NotFo...

Can't add reference from Silverlight app to WCF-service that is hosted by ASP.NET

A "Silverlight-enabled WCF service" was added into existing ASP.NET web-application. On attempt to add reference from the Silverlight Application to the service the following error was received: Object reference not set to an instance of an object. How can I add reference? Thanks. ...

wcf 4.0 service on IIS7

I am currently developing a service with wcf 4.0 (visual studio 2010 RC). When I try my service on the Visual Studio Development Server, it all works perfect. However, when I tree to run my service on IIS7 on a windows 7 machine, the service doesn't work anymore. (I already changed the framework version on my application pool). When I...

See what XML is being serialized down the wire for a WCF Service

I have a WCF service that I pass a lit of objects down from the server to the client, what I would like to do is to know what exactly is getting passed down to the client. How can I see the unecrypted serialized payload that is sent over the wire? ...

How to generalise the endpoints in my channelfactory

Hi, I have a requirement to actually generalise the endpoints of different WCF services,create a proxy and invoke the action. We have like 4 pages and 4 services to serve those pages. For each n every page we have to call the specific service endpoint and invoke the action Example:: private IList<FunctionCodes> i_oFunctionList; Chann...

Reporting Services 2005 Model using WCF Service for data

I am trying to use WCF Services as models for SQL Server Reporting Services 2005 reports. I can do this if I design the reports in the designer but cannot do it for a Reporting Model project which I think I need to make reports in the Report Builder. My full requirement is to have a report builder that the users can use building reports...

Cannot connect to one of my WCF services, not even with telnet

I have six wcf services that I'm hosting in a windows service. Everything works great on my machine (Windows 7) (Edit: when hosted in Cassini, but not when running through the windows service) but when I try it in production (Windows Server 2003) I cannot connect to one of my six services, ReportsService. I figured I must have a typo...

Not able to get to the wcf service on the server where the service was installed

I have a wcf service and hosted it on the server. Now when I am trying to run that on IE on my computer I am able to get to that service, I mean the service opens up. Now when try to open the service in the IE on the server I get Internet explorer cannot opent the page. Any help please. ...

Object hierarchy returned by WCF Service is different than expected

Good Day Everyone... My understanding may be wrong, but I thought once you applied the correct attributes the DataContractSerializer would render fully-qualified instances back to the caller. The code runs and the objects return. But oddly enough, once I look at the returned objects I noticed the namespacing disappeared and the object-...