Wcf why does a client need the same endpoint as the service?

The simple answer is that the service and client must agree on the mechanics of communication - that's what the endpoint is for.

Up vote 0 down vote favorite share g+ share fb share tw.

Wcf endpoint link|improve this question asked Feb 17 at 10:02skyyyy215 83% accept rate.

Yes! You've answered your own question. – Sixto Saez Feb 17 at 14:02.

The simple answer is that the service and client must agree on the mechanics of communication - that's what the endpoint is for They must agree on the address - the service will listen for requests there and the client will send its requests there. They must agree on the binding - this is the "how" of the communication - what transport protocol will be used, what will messages look like on the wire and how are things like security configured They must agree on the contract as this is a definition of what functionality is available and what data is expected and potentially returned In other words they must agree on the endpoint definition However, things are a little more complex than that in reality the address is really a "logical address" the physical address the service listens on is defined by the listenUri which the client can send messages to by defining a clientVia endpoint behavior the binding must be compatible, the client can send additional data in its binding which isn't intended for the service but rather, say, some routing intermediary the contracts must be compatible in that the WCF serialization engine must be able to render or deserialise the structure of the message based on its contract definition.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions