wcf

Setting up WCF Proxy for SCOM

What is the easiest way to forward error information from non-microsoft servers via web services to SCOM(through WCF proxy?)? I would like to set up a pretty generic management pack and have everything flow through that. I have not found a good setup example project for this. Is there a good example somewhere? ...

Silverlight client access policy problem.

Hi, I have a wcf webservice which I call from my silverlight application, using https, and it works fine without any problems. Now I got to add a new reference to an old service (soap/asmx) from the silverlight client which went ok. Then when I tried to access the service, I get the following errors: An error occurred while trying t...

Login and authentication system in a service (wcf) based application

i want to design a authentication system for a service oriented application. i have a wcf service based asp.net application ...

How to implement custom client-side wcf caching

I need to implement custom caching of client proxy of wcf service. I've implemented the IOperationBehavior interface. On server-side we can set OperationDescription.Invoke property in ApplyDispatchBehavior method and implement IOperationInvoker interface to control operation execution. On client-side we can't do it. In client-side we ca...

WCF Transport security weakness

Hi On 2nd edition of "Programming WCF Services" By Lowy, ch 10, page 512. Lowy said about Transport security: Its main downside is that it can only guarantee transfer security point-point, meaning when the client connects directly to the service. Having multiple intermediaries between the client and the service renders Transport securi...

WCF (C#), calling an Async method. help!

Hi, I'm stumped with this and would appreciate any help at all! I'm calling the Amazon api using WCF and the Visual Studio generated -asynch- methods. There's a WPF page, with a button on. Press the button and it calls the search method in another class. (see code below) In this other searcher class, I add the method AmazonItemSearch...

How to make a Web (WCF) Service act as Windows Service

The question, I have a web application - .net 4. The client is having a requirement that he want to send email to his users on a regular basis about his new courses etc. The webapplication created will hosted on a "Shared hosting environment" with no excess to windows services - file system other than the web root folder through FTP....

How do lazily loaded POCO entities, entity framework and WCF work together?

If a project has used POCO for entities and uses entity framework and uses lazy loading then you have an "incomplete" object graph going back over the wire. So when a client uses the Entity is there some sort of proxy that will automagically load the remaining values? Do we have to create this proxy ourselves and wrap the original entity...

How can service know the caller?

Hi, I have a WCF service. How can i know if the call to my service comes from local machine or a machine from network? Thanks, Adrya ...

Passing data into a callback, is data guaranteed to be received?

Hello, my question is: having a piece of code like that (communication via callback contract) private void BroadcastMessage(DataEventArgs e) { DataEventHandler temp = DataEvent; if (temp != null) { foreach (DataEventHandler handler in temp.GetInvocationList()) { handler.BeginInvoke(this, e, EndAs...

Restarting windows service (hosting WCF service) after it reaches particular memory limit.

I would like to restart Windows Service after memory consumption of it reaches certain limit. Scenario: I have WCF Service hosted on Windows Service. WCF service keeps on increasing in memory consumption after every call without releasing significantly as seen from Task Manager. It results in OutOfMemory exception. I would like to res...

Inherit from a class in a wcf service

Hello I want to inherit from a class which is located in a WCF Service. The Inheritance works fine (I see the properties of the base class in my child class), my problem occurs when I try to call a method from the service and pass the childtype as a parameter and not the basetype. Base class in WCF Service (Pet): [ServiceContract] pub...

Concurrent acess to EF4 entities (Parallel + EF4)

I'm currently working in a dispatcher service that processes thousands of messages delivered in different channels (email, private message, application message) using EF4 and WCF. To try to speed up message dispatching i'm trying to use Parallels: Parallel.ForEach(currentMessageList, m => { Processors.DispatcherWrapper.Dispatch(m, m.un...

WCF Service Error accessing DB

I have a WCF Service running under IIS 7.0. The app pool identity is set to a user account lets call it "MyDomain\MyAcc." I have given "MyDomain\MyAcc" login permissions to the SQL 2005 Server, and the two DBs that it uses on that server. When I try to invoke one of the WCF methods I get the following in my logs: "Login failed for use...

Ajax Enabled WCF service not responding with data

Hi All, I have a very simple Ajax enabled WCF service that should return a single Entity of type EntityObject serialized to JSON. Here is my .svc file: [ServiceContract(Namespace = "FASServices")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class FASService { [Operati...

Silverlight authentication and ICredential

Hi I've setup up a WCF web service to handle requests from a Silverlight application. That service has Windows authentication set up which works well with the following endpoint configuration <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="Test.Service.ServiceBehavior"> <serviceMetadata...

WebSocket WCF Transport Binding

I recently discovered WebSockets and their possible usage in my project. Currently, I use raw web sockets, but I have been exploring the possibility of making a custom transport binding/channel that would handle everything and allow me to host it in IIS. I've started work on this, but I'm having issues figuring out how to get IIS to for...

Authentication with basicHttpBinding

I have converted my webservice to wcf service keeping the extension of wcf service as asmx since I have a large client base and do not want to ask users to change the extension. Currently I have username / pwd authentication for my clients which I want them to move out of. Since my user base calls my web service from all sorts of machine...

VS Error: "You must choose a publish location that is different from the source Web application"

I'm trying to publish my WCF service to a server on my network: http://machineName/ProjectName The most recent (first) version of the service is already there as I did this no more than 15 minutes ago. I then made some changes to the service's web.config and one setting in IIS and now I can't publish the service anymore, getting th...

Why do I get a 403 error when calling a WCF Webservice?

I'm really posting this question so that others searching for the answer can find it. Scenario: WCF Service: Has worked fine at some point but currently is returning 403 errors. The web.config looks fine as far as I can tell. This machine has set the web.config to disable transport and message security and is using BasicHTTPBinding. ...