.NET WCF service references use server name rather than IP address causing issues when consuming

后端 未结 3 890
谎友^
谎友^ 2021-01-19 10:57

So, I\'m a newbie to WCF...

I created my ServiceLibrary and web-site project that consumed the ServiceLibrary. I am able to access the service by creating a proxy cl

3条回答
  •  时光取名叫无心
    2021-01-19 11:29

    Take a look at the WCFExtras library. In particular, the section on "Override SOAP Address Location URL". The brief answer is that you need a custom endpoint behavior provided by implementing IWsdlExportExtension.ExportEndpoint.

提交回复
热议问题