我有一个以某种地址出版的WCF服务,我希望通过视频演播室生成的代理人与它联系。
I want the messages from my proxy to be sent with a specific TCP source port, but it apparently assigns a random port on each call.
The problem is this: I have two hosts A and B which are running a WCF Service (the same on each host), host A has the service up on address AdA and port PA, host B on address AdB and port PB. Host A sends a message to host B. Host B performs some internal operations after the message, and then sends a message to host A. The problem is that when Host A invokes a webmethod on B, it sends a TCP message with a random src port, and one that does not match the port on which A has the service hosted, so the webmethod is not invoked on A because the source port assigned by WCF does not match the port the service is published at.
我迄今一直在使用基本HttpBelle。
我如何能够做到这一点?
感谢。