Solved

how can WCF service tell who is calling it?

Posted on 2010-11-25
4
440 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 75

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

690 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