Linux上的.Net Web服务 [英] .Net web services on linux

查看:82
本文介绍了Linux上的.Net Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在.net中实现了一些Web服务并将其托管在Windows服务器上,如何将其移植到Linux?为了在Linux机器上具有相同的Web服务,我必须用Java重写它吗?有任何想法吗.

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.

推荐答案

问题范围很广,因此这里是一个通用答案

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

如果您已经在WCF中实现了该服务,则mono(Linux上的.net)对此服务的支持有限.对于所有已知问题,请查看

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.

如果您需要同时在Windows和Linux上支持Web服务,那么我可以推荐WCF的替代方法

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

使用它来避免移植工作.这样,您就不必用Java重写并重用您的某些.net代码.

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

这篇关于Linux上的.Net Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆