wcf

WCF security using client IP address

I have a WCF service that provides access to some data. Our client has requested that this service be limited such that a given user can only make so many calls within a certain time period. My thinking was to establish a request rate limit and issue a temporary ban to that IP address once it exceeded that limit. However, there appears ...

wcf https and authentication error

I want to authenticate user in WCF and getting this errror: Test method TestProject1.UnitTest1.TestLocalB2Bssl threw exception: System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Basic'. The authentication header received from the server was 'Basic...

WebHttpBinding in Silverlight 4

I know SL 3 didn't have this but from reading about SL 4, it sounds like it supports WebHttpBinding for REST... But how do I create one in code? I can't find WebHttpBinding anywhere in the ServiceModel.* assemblies for Silverlight? ...

WCF authentication with multiple providers

There is the following design: the back-end implemented as WCF, the public front site and two intranet sites (all three talking to the back-end). I believe that authentication on the sites is not enough (i.e. passing ClientID to WCF in each request as a parameter) and i want to protect my back-end (WCF) with authentication to perform dou...

Spring.NET, NHibernate and WCF: Session Management

Hi, I know that this issue has been discussed but all answers seem to be quite outdated (back in 2008). I have a perfectly well configured application architecture with Spring.NET DI and transaction management and NHibernate. Session management works well within my integration tests. But: what is the best way to handle the NHibernate ...

determine which IP addressed has been used to open a url in c#

Say, I have 2 or more active network cards on my machine. i am using a c# application from which i am calling an asynchronous service. i want to be able to determine which ipaddress have i used when calling this service. for example, my two active ip's are 192.168.10.5 and 192.168.5.7 and the service ipaddress is 192.168.7.12. ...

WCF Instance Management

Hi I am creating a silverlight card game which talks to a WCF service using a duplex binding Each client communicates with the service when it is their turn by sending their ID and the cards they want to play And in response, the updated Game state is transmitted to each client While I've been testing, I have had the instancing set...

How to control Wcf REST XmlSerialization output.

I am trying to control the Xml output during a Wcf Rest serialisation process. I want to lose a tier in the output hierarchy. (I.e. lose the <content> tags). I have looked through the various attribute settings available, but not managed to find what I'm looking for. Can anyone help? My output is currently: <?xml version="1.0" encodi...

Windows service for WCF Stops

Hi, I have a WCF application hosted as a windows service. This windows service triggers this WCF every 15 minutes. But when an exception occurs in this WCF the service is getting stopped. I don't want this service to stop. I want to some how handle this exception and trigger this WCF after another 15 minutes. How can i do that? Plea...

Calling WCF Service from MS Access

Hi all, I want to create a create a WCF Service which is invoked on the button click of MS Access Form. Please help me out. Kind Regards, Shahid Hazoor ...

WCF + SmtpClient: only works in a Windows 2008 environment

Hello all, Continuing the discussion started in another post: I used windows service to host a WCF mail sender. The service itself is quite simple: it uses a DataContract to get the basic System.Net.Mail.MailMessage class properties (supports attachment - please see the mentioned post, code by edosoft) and the System.Net.Mail.SmtpClient...

Exposing a WCF Service REST-fully

Hello, I have created a brand new WCF Service. I created this service by just saying Add New Item... -> WCF Service in Visual Studio. I then edited the contract slightly to look like the following: [ServiceContract] public interface IMyService { [OperationContract] [WebGet(UriTemplate = "/Authenticate/{username}/{password}", Re...

wsDualHttpBinding failing with larger datasets

I am using wsDualBinding in my wcf service to handle 2 way communication in my software. Everything seems to work fine except when I call a method to get a customer list. If in the service I limit the results of the query to 2730 records I can get the results in about 1-2 seconds and display them in a datagrid. If I limit the results to ...

Service contract and variable names

Hi, I have WCF service. I have changed the name of the variable in datacontract, rebuilt service but did not rebuilt client Before, this is operation contract for client [OperationContract(Name = "SubscribeWcfProvider")] bool Subscribe(Guid subscriptionid); After, this is operation contract for service [OperationContract(Name = "S...

Silverlight 3 and WCF

Hi I am new to this and hence getting no clue of the solution. I've my silverlight3 app built and WCF services also built and hosted on local host. I'm looking for a way to call methods of my service from my silverlight3 app. i dnt knw the steps and not able to find them through web also. please guide me step by step. its driving me cra...

C# WCF service throws an error but continues

If my service encounters an error, I want that thread to return an error and terminate, but later requests should still work fine. How do I do this? If I have an unhandled exception, it will get passed back to the client, but then the service stops. ...

Adding custom function to gmail's web surface to access a WCF web service

Hi, I need a way to extend GMail's web surface in order to be able to send the message body of the currently selected emails (multi select) to my WCF .Net web service. Is there a way to accomplish this in a secure way? I need it to be available only by me and other colleges I trust. Thank you. -- Hudgi ...

How do I force the auto-generated WSDL on two load-balanced machines to match?

We have a WCF service that is deployed to two servers. The bits are exactly the same. In the auto-generated WSDL at https://mywebsite.com/SomeService/Soap.svc?wsdl, the <wsdl:types> node lists out a bunch of XSD's, in this format: <xsd:import schemaLocation="https://mywebsite.com/SomeService/Soap.svc?xsd=xsd0" namespace="http://service...

Help Translating a small C# WCF app into Visual Basic

Hi - I'm trying to write a simple/small Windows Communication Foundation service application in Visual Basic (but I am very novice in VB) and all the good examples I've found on the net are written in C#. So far I've gotten my WCF service application working but now I'm trying to add callback functionality and the program has gotten mor...

Two-way WCF service operation returns no reply instead of an exception.

I have two different WCF services doing mostly your basic CRUD operations. For both services, regardless of the client, if the service throws an exception the exception will not be returned to the client. In fact, the only way I can see the actual exception is to turn on tracing in the services and view the trace file. This is true rega...