Solved

how can WCF service tell who is calling it?

Posted on 2010-11-25
4
435 Views
Last Modified: 2012-05-10
i have a WCF service that multiple external clients calls, how can i tell who is calling it?  i need to know that in order to redirect the client to call the right middle tier method.  thanks.
0
Comment
Question by:mmingfeilam
4 Comments
 
LVL 74

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 83 total points
ID: 34215115
0
 
LVL 20

Assisted Solution

by:BuggyCoder
BuggyCoder earned 83 total points
ID: 34217025
you need to fetch end point, if you are looking at IP address of your WCF Client. otherwise please elaborate the question a bit furthur....
0
 
LVL 13

Accepted Solution

by:
Pryrates earned 84 total points
ID: 34221627
we use a certificates to identify our different clients.

You need to configure that in the settings of the wcf endpoint and each client needs to install the certificate on its machine and configure the communication channel to "sign" the call to the webservice with the certificate.
On the server you can catch the certificate info by examing the identity object.

Works pretty good for us :)

You can use an internal CA to generate the certificates.

Otherwise you can use self issued ceertificates if it is just for user-recognition, BUT it is insecure of course.
http://www.codeproject.com/KB/WCF/wcfcertificates.aspx
0
 

Author Comment

by:mmingfeilam
ID: 34367369
the solution we came up with is to have a distinct WCF url for each client.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now