How to give service reference programatically in wcf?
I have a wcf service that present in a different system. I want to add that wcf reference in my production server. But i开发者_开发技巧n that server i dont have visual studion. So i cannot go through inbuilt add service reference, can you tell me how i can do this?I want to invoke a wcf service remotely and I dont have visual studio there. I can not go for add service reference.
<configuration>
<system.serviceModel>
<services>
<service name="RchTransfer.RCHService">
<endpoint binding="wsHttpBinding" address="http://localhost:9000/RCHService"
contract="eHeritage.Lib.IRCHService">
</endpoint>
<endpoint address="http://localhost:9000/RCHService/mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
</system.serviceModel>
</configuration>
Add IMetadataExchange endpoint to server configuration file
EDIT
Otherwise configure WCF service manually
WCF Services in .Net without using “Add Service Reference”
精彩评论