问题
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