douyun1546 2016-02-10 16:08
浏览 260

从Go应用程序消费WCF服务

Is it even possible more or less natively consume WCF service from Go application?

I can imagine it should be possible to execute SOAP calls in Go, but WCF is a bit more than that only, for example authorization will probably be a problem also...

Have anyone at least approached this area, or maybe someone can give useful me advice in this "wheel reinvention task"?

Thank you in advance for all your input, ideas and suggestions.

  • 写回答

2条回答 默认 最新

  • douqihua6212 2017-02-10 13:59
    关注

    I think you should expose a RESTful Service. I myself have the problem with exposing a WCF Service too many clients using PHP, Go, Ruby and all kind of languages. We never ever got it right, to automatically generate a proxy.

    The maybe simplest way is to use WCF, like described in this example: https://www.codeproject.com/Articles/105273/Create-RESTful-WCF-Service-API-Step- By-Step-Guide

    But I recommend to switch to ASP.NET Core (Migration is not that hard) or if you have the budget I would consider https://servicestack.net/

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog