.Net web services on linux

假如想象 提交于 2019-12-10 15:55:07

问题


I have implemented some web services in .net and hosted it on windows server, how I can port it to linux ? To have the same web services on linux machine, do I have to rewrite it in Java ? Any Ideas.


回答1:


A very wide scope of question , so here is a general answer

If you have implemented the service in WCF then mono ( .net on Linux ) ha limited support for it. For all the known issues look at

http://www.mono-project.com/WCF_Development

I have done this before for simple services without much problem.

If you need to support web services on both windows and Linux ,then I can recomend an alternative to WCF

https://github.com/ServiceStack/ServiceStack

Use this to avoid porting effort. This way you won't have to rewrite in java and reuse some of you .net code.



来源:https://stackoverflow.com/questions/12591852/net-web-services-on-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!