How to influence the URL to access a registered Delphi web service

We created a dll for webservice with Delphi XE2 and are running on our IIS7 server, accessible from the URL http: //server/webservice.dll/soap

To be able to debug the service, I created the webservice.exe project, which can be launched in WebAppDebugger Delphi. The problem now is that the web service running in the debugger is accessible from the URL http: //localhost/webservice.webservice/soap

Our client application has the last part of the URL "webservice.dll / soap" hardcoded (security reasons), so I can not change this when testing with our client application, the server address " http: // server / " is configured in the client.

So my question is: how can I register a debugging service in my webappdebugger to use a url like my production dll?

+8
soap delphi delphi-xe2
source share
1 answer

I found a solution myself; -)

In debug initialization, there was the following line:

TWebAppSockObjectFactory.Create ('WebService');

changing this to:

TWebAppSockObjectFactory.Create ('DLL');

changed the general change to http: //localhost/Webservice.dll/

This left a small problem that the debugger project had to be renamed to Webservice.exe instead of WebserverDebug.exe, because it was called, but moving it to a subfolder made this renaming possible.

+6
source share

All Articles