Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 443
  • Last Modified:

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.
0
mmingfeilam
Asked:
mmingfeilam
3 Solutions
 
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
 
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
 
mmingfeilamAuthor Commented:
the solution we came up with is to have a distinct WCF url for each client.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now