简体   繁体   English

Linux上的.Net Web服务

[英].Net web services on linux

I have implemented some web services in .net and hosted it on windows server, how I can port it to linux ? 我已经在.net中实现了一些Web服务并将它托管在Windows服务器上,我如何将它移植到linux? To have the same web services on linux machine, do I have to rewrite it in Java ? 要在linux机器上拥有相同的Web服务,我是否必须用Java重写它? Any Ideas. 有任何想法吗。

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. 如果您已在WCF中实现了该服务,那么mono(Linux上的.net)会限制对它的支持。 For all the known issues look at 对于所有已知问题,请查看

http://www.mono-project.com/WCF_Development 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 如果您需要在Windows和Linux上支持Web服务,那么我可以推荐WCF的替代方案

https://github.com/ServiceStack/ServiceStack 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. 这样您就不必在java中重写并重用一些.net代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM