开发者

Can Delphi created Soap server app run on linux?

I have been toying around with creating soap servers in Delphi then running and interacting with them being hosted on my localmachine via IIS.

I have a godaddy account that is linux hosting and开发者_如何学运维 I am curious if I'll be able to use the Delphi created Soap Servers on this hosting?


I think you have 3 options:

  • Run it through Wine which is very capable nowadays.
  • Build it with Kylix if you can get hold of a copy.
  • Build it with FreePascal.


Free Pascal will be a good alternative. We have deployed several (commercial) applications that use the wst toolkit in Free Pascal to build soap services that run both on windows and linux. Steep learning curve, but once you 'get it' it works very good.


In general, no. Delphi itself is a Windows product and you would need to compile your code differently for it to run on Linux.

You may be able to do this with Free Pascal, which is supposedly compatible with Delphi at some level, but no guarantees.


Delphi produces Win32 executables. You won't be able to run them on linux. You could try to run them within an emulator such as Wine.


Wine isn't going to be viable IMO. Typically your SOAP service is going to be a command-line executable in the cgi-bin directory. They typically have very short lifetimes (less than a second) so running natively is a big help here.
Unless the system is smart enough to know that your Win-32 app needs to run under Wine, and not have to incurr the overhead of spinning up a Wine session, it won't work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜