Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Delphi 10.1 Webservices ISAPI DLL Run Error Under IIS 10



Permlink Replies: 3 - Last Post: Dec 8, 2016 10:33 AM Last Post By: embt1 HAiDA
liang cheng

Posts: 7
Registered: 12/13/04
Delphi 10.1 Webservices ISAPI DLL Run Error Under IIS 10
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 25, 2016 7:51 AM
I use Delphi 10.1 berlin to create a default Sample WEBSERVICES ISAPI DLL, I put it in the IIS 7 or IIS 10, "http://127.0.0.1/project1.dll" can access right back to the WSDL page, but I use the following code to access the Webservices report "Abstract Error", but the same code compiled in Delphi 10 seattle run normal. Thanks.
====================================
Var
T : ITEST;
Begin
T: = GetITEST;
Edt1.Text: = FloatToStr (T.echoDouble (111));
T: = nil;
End;
=====================================

Edited by: liang cheng on Nov 25, 2016 3:36 PM
liang cheng

Posts: 7
Registered: 12/13/04
Re: Delphi 10.1 Webservices ISAPI DLL Run Error Under IIS 10
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 25, 2016 7:39 PM   in response to: liang cheng in response to: liang cheng
IIS LOG:
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2016-11-26 02:17:49 W3SVC3 127.0.0.1 POST /isapi/Project1.dll/soap/ITEST - 80 - 127.0.0.1 HTTP/1.1 CodeGear+SOAP+1.3 - 500 0 0 1206
2016-11-26 02:18:09 W3SVC3 127.0.0.1 POST /isapi/Project1.dll/soap/ITEST - 80 - 127.0.0.1 HTTP/1.1 CodeGear+SOAP+1.3 - 500 0 0 1
2016-11-26 02:18:11 W3SVC3 127.0.0.1 POST /isapi/Project1.dll/soap/ITEST - 80 - 127.0.0.1 HTTP/1.1 CodeGear+SOAP+1.3 - 500 0 0 0
2016-11-26 02:20:51 W3SVC3 127.0.0.1 POST /isapi/Project1.dll/soap/ITEST - 80 - 127.0.0.1 HTTP/1.1 CodeGear+SOAP+1.3 - 500 0 0 0
liang cheng

Posts: 7
Registered: 12/13/04
Re: Delphi 10.1 Webservices ISAPI DLL Run Error Under IIS 10
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 25, 2016 9:06 PM   in response to: liang cheng in response to: liang cheng
Solved, set the WebModule's BeforeDispatch event like Below:

procedure TWebModule1.WebModuleBeforeDispatch(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
Request.ReadTotalContent; //Get full content
end;

Have a thorough solution? Thanks!
embt1 HAiDA

Posts: 1
Registered: 1/28/10
Re: Delphi 10.1 Webservices ISAPI DLL Run Error Under IIS 10
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 8, 2016 10:33 AM   in response to: liang cheng in response to: liang cheng
Have a thorough solution? Thanks!

https://quality.embarcadero.com/browse/RSP-14674
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02