开发者

How to give service reference programatically in wcf?

开发者 https://www.devze.com 2023-04-05 03:20 出处:网络
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

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”

0

精彩评论

暂无评论...
验证码 换一张
取 消