开发者

Retrieving call source for a WCF service

I'm fighting since two days with a simple qu开发者_Go百科estion : Is there a way to identify the source of a WCF call ?

I'm trying to find a realiable .Net property that will let the service know the address (URI) of the calling Web Service.

Especially in the case where two Web Services are hosted on the same machine.

Thanks in advance.


What about the calling client do you want to detect??

In .NET 3.5, you can fairly easily find the client's IP address - see Keyvan's blog post on that topic.

Is that what you're looking for?? If not, you'd probably have to add the caller information to the message (or the headers) explicitly for the server to be able to inspect that information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜