Board index » delphi » ISAPI DLL not working on IIS 6

ISAPI DLL not working on IIS 6


2005-07-19 02:38:30 AM
delphi172
Hi
We have developed a Web Service using Delphi 7 and Webbroker
and compiled it as an ISAPI dll. We communicate with the web
service from a HTTPRio win32 client. It works perfectly on IIS
5 after allowing execute permissions on the dll.
On IIS 6 (after 'setting it up' in Web Service Extensions) it
behaves very strangely and thus do not work. When I use the
following URL in my browser:
http://localhost/webservice/webservice.dll/soap/IMyWebserver
The browser just shows the default web service page usually
found at http://localhost/webservice/webservice.dll
In fact I cannot even view the WSDL. Offcourse what happens now is that when my HTTPRio component tries to connect to the Web
service using the above mentioned URL, it throws an
exception: "Received content of invalid Content-Type setting:
text/html - SOAP expects text/xml"
Instead of passing the SOAP interface the client requires to
execute the function, it returns the "home-page" of the
webservice.
Any suggestions on how I can solve the problem?
Best Regards,
Marc Johnson
 
 

Re:ISAPI DLL not working on IIS 6

!! IIS 6.0 is installed totally secured !!, in fact it is impossible to use
without setting up Advanced.
1 you can verify if you eneble the good options.
2. Your application can use Mime, all suffix aren't mapped by default (as
IIS 5), you need to map manually (eg : .fhs de Flashplayer needs with
text/plain)
I hope these informations can help you...
In fact IIs 6 seems better than IIS 5.
Allan
"Marc Johnson" <XXXX@XXXXX.COM>a écrit dans le message de news:
42dbf726$XXXX@XXXXX.COM...
Quote

Hi

We have developed a Web Service using Delphi 7 and Webbroker
and compiled it as an ISAPI dll. We communicate with the web
service from a HTTPRio win32 client. It works perfectly on IIS
5 after allowing execute permissions on the dll.

On IIS 6 (after 'setting it up' in Web Service Extensions) it
behaves very strangely and thus do not work. When I use the
following URL in my browser:

http://localhost/webservice/webservice.dll/soap/IMyWebserver

The browser just shows the default web service page usually
found at http://localhost/webservice/webservice.dll

In fact I cannot even view the WSDL. Offcourse what happens now is that
when my HTTPRio component tries to connect to the Web
service using the above mentioned URL, it throws an
exception: "Received content of invalid Content-Type setting:
text/html - SOAP expects text/xml"

Instead of passing the SOAP interface the client requires to
execute the function, it returns the "home-page" of the
webservice.

Any suggestions on how I can solve the problem?

Best Regards,

Marc Johnson
 

Re:ISAPI DLL not working on IIS 6

Hi Allan
Thanks for your reply.
In the folder where the web service .dll is located, I mapped
a MIME for the extension ".dll" with a MIME type of 'text/xml'.
Unfortunately it did not solve my problem.
Maybe you can ellaborate on the 'good options' concept! I have
done the following:
1) 'Registered' the Web Service dll in the 'Web Service
Extensions' section of IIS Manager
2) Created an 'application' for the folder hosting the dll in
inetpub\wwwroot\mywebservice and specified execute permissions
for scripts and executables
3) Added the anonymous ISS user to the dll's security
properties and gave read and execute permissions.
4) As a last ditch attempt, I also allowed 'Everyone' Read and execute permissions...
Is there any other setting I need to change in order for it to work?
Regards,
Marc
"Allan" <XXXX@XXXXX.COM>writes:
Quote
!! IIS 6.0 is installed totally secured !!, in fact it is impossible to use
without setting up Advanced.
1 you can verify if you eneble the good options.
2. Your application can use Mime, all suffix aren't mapped by default (as
IIS 5), you need to map manually (eg : .fhs de Flashplayer needs with
text/plain)

I hope these informations can help you...

In fact IIs 6 seems better than IIS 5.

Allan
 

Re:ISAPI DLL not working on IIS 6

I've got the same problem with a SOAP Server Application made in D6!
Do u have some news about other configuration of IIS 6?
I'm really desperate.. :-/
Thanx in advance
Carlo
--
"Marc Johnson" <XXXX@XXXXX.COM>ha scritto nel messaggio
Quote

Hi Allan

Thanks for your reply.

In the folder where the web service .dll is located, I mapped
a MIME for the extension ".dll" with a MIME type of 'text/xml'.
Unfortunately it did not solve my problem.

Maybe you can ellaborate on the 'good options' concept! I have
done the following:

1) 'Registered' the Web Service dll in the 'Web Service
Extensions' section of IIS Manager
2) Created an 'application' for the folder hosting the dll in
inetpub\wwwroot\mywebservice and specified execute permissions
for scripts and executables
3) Added the anonymous ISS user to the dll's security
properties and gave read and execute permissions.
4) As a last ditch attempt, I also allowed 'Everyone' Read and execute
permissions...

Is there any other setting I need to change in order for it to work?

Regards,

Marc


"Allan" <XXXX@XXXXX.COM>writes:
>!! IIS 6.0 is installed totally secured !!, in fact it is impossible to use
>without setting up Advanced.
>1 you can verify if you eneble the good options.
>2. Your application can use Mime, all suffix aren't mapped by default (as
>IIS 5), you need to map manually (eg : .fhs de Flashplayer needs with
>text/plain)
>
>I hope these informations can help you...
>
>In fact IIs 6 seems better than IIS 5.
>
>Allan