English 中文(简体)
Delphi 2006 Standalone Webserver compilation error
原标题:

I m trying to create a SOAP Server application that is a stand alone application (no need for IIS to be configured). The problem is that I get this error when trying to compile:

I get the error

SockApp was compiled with a different version of IdTCPServer

Now this is because Delphi 2006 ships with INDY 10 but SockApp appear to have been compiled with INDY 9.

The read me states:

  1. Include $(BDS)LibIndy9 in the Library path and remove $(BDS)LibIndy10. However, this forces the application to use Indy9.
  2. Compile IndySockTransport and sockapp and put it in $(BDS)LibIndy10.

Option 1 works, but I need to use some of the INDY 10 features so this is not a great option for me.

Does anyone know how to implement option 2? i.e. how do I compile IndySockTransaport and sockapp?

最佳回答

You can also look here: http://www.cromis.net/blog/downloads/cromis-isapi-server/

It is simple to use, flexible (out of the box it works with Indy 9 and 10, but can work with any HTTP components) and tested. It is an ISAPI server side support, but you just build your SOAP module as ISAPI and it works as standalone server. You practically need only few lines of code.

问题回答

This tutorial covers the steps to build a standalone Soap Server using Indy 9 but it can be modified to work with Indy 10 too:

http://www.digicoast.com/delphi_soap_standalone.html

See also the accepted answer in How to build stand-alone SOAP web services using Delphi? with links to Indy 10 versions





相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签