why can't we create proxy giving the one base address like
http://localhost:1648/ChatServer/ ?? tell me reason.
if we add another mex endpoint in my exsisting config file like below one
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
then can we create proxy with url like http://localhost:1648/ChatServer/
please discuss.
The MEX is a special endpoint in WCF that exposes metadata used to describe a service. As discussed in
this thread, you need use mex endpoint for TCP to get metadata. It will splice "mex" address with thebaseAddress you provided, to provide a metadata address like "net.tcp://localhost:1645/ChatServer/mex".
Best Regards.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
mou_inn
Participant
778 Points
954 Posts
what url need to type to create wcf service proxy at client end
Dec 28, 2012 02:42 PM|LINK
do we need use endpoint url to create proxy. just see one config entry
<service name="WCFService.Service" behaviorConfiguration="behaviorConfig">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:1645/ChatServer/"/>
<add baseAddress="http://localhost:1648/ChatServer/"/>
</baseAddresses>
</host>
<endpoint address="tcp"
binding="netTcpBinding"
bindingConfiguration="tcpBinding"
contract="ChatService.IChat"/>
<endpoint address="net.tcp://localhost:1645/ChatServer/mex"
binding="mexTcpBinding"
contract="IMetadataExchange"/>
</service>
why can't we create proxy giving the one base address like
http://localhost:1648/ChatServer/ ?? tell me reason.
if we add another mex endpoint in my exsisting config file like below one
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
then can we create proxy with url like http://localhost:1648/ChatServer/
please discuss.
Haixia Xie -...
Contributor
3023 Points
294 Posts
Microsoft
Re: what url need to type to create wcf service proxy at client end
Dec 31, 2012 08:09 AM|LINK
Hi,
The MEX is a special endpoint in WCF that exposes metadata used to describe a service. As discussed in this thread, you need use mex endpoint for TCP to get metadata. It will splice "mex" address with thebaseAddress you provided, to provide a metadata address like "net.tcp://localhost:1645/ChatServer/mex".
Best Regards.
Feedback to us
Develop and promote your apps in Windows Store