Can't see WSDL on Delphi CGI with IIS7

I created a very simple Delphi 2010 CGI web service and was able to get the same problem on Delphi 2007.

My invokable interface looks like this:

ISimpleTest = interface(IInvokable)
['{4E318A9A-D361-4A18-A963-EE6D7F70E9C5}']
  function SayHello(const S: string; N: Integer): string; stdcall;
end;

And the function is just as simple:

function TSimpleTest.SayHello(const S: string; N: Integer): string;
begin
  Result := 'Hello ' + S + ', all ' + IntToStr(N) + ' of you';
end;

I copied the resulting SimplecGI.exe file to our Windows Server 2008 server with IIS7. I created my virtual folder, configured execution permissions, allowed unspecified CGI modules, enabled 32-bit applications, and finally was able to see the service information page from my browser using a URL similar to this: http: // myserver: 8001 / SimpleCGI / SimpleCGI.exe

IIS6, IIS. WSDL ISimpleTest, IIS6. IIS6, ( URL-: http://myserver/SimpleCGI/SimpleCGI.exe/wsdl/ISimpleTest) WSDL . IIS7, , . WSDL IWSDLPublish WSIL (http://myserver:8001/SimpleCGI/SimpleCGI.exe/inspection.wsil).

- ? - ?

+3
1

, : http://forums.iis.net/p/1100323/1745984.aspx

IIS7 URL- CGI. ( - ), web.config , :

<configuration>
  <system.webServer>
    <handlers>
      <add name="ScriptMap1" path="SimpleCGI.exe" verb="*" modules="CgiModule" scriptProcessor="E:\Mypath\SimpleCGI.exe" resourceType="File" allowPathInfo="true" />
    </handlers>
  </system.webServer>
</configuration>
+6

Source: https://habr.com/ru/post/1720551/


All Articles