Professional Documents
Culture Documents
Host
Take Home
• A ServiceHost is not tied to any particular
application domain. This means that unlike ASMX
files, which always reside at an IIS virtual
directory (for example,
http://computer/vDirectory), ServiceHost when
opened does not know where it is. It must
therefore be passed (or infer from absolute
addressing) a “base” or “root” address to which
all relative addresses used by the host are
appended.
Absolute Address
Endpoint Address
Endpoint Address
The client can access the service via the endpoint address
such as the following:
• http://mymachine:8080/myservice/
Once the client has accessed the service via the endpoint
address, the client can talk to the service, and all
communication to and from the service goes through this
endpoint at this address.
Base Address
Base Address
• The base address is associated to the service, allowing you
to assign relative addresses to the individual endpoints.
With the base address assigned to the service, you can then
assign the three endpoints the following relative addresses:
• http://mymachine:8080/myservice/service1
• http://mymachine:8080/myservice/service2
• http://mymachine:8080/myservice/service3
MEX Address