how can WCF service tell who is calling it?

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.
mmingfeilamAsked:
Who is Participating?
 
PryratesCommented:
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
 
käµfm³d 👽Commented:
0
 
BuggyCoderCommented:
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
 
mmingfeilamAuthor Commented:
the solution we came up with is to have a distinct WCF url for each client.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.