From: Marcus S. <mar...@gm...> - 2002-05-28 22:30:00
|
Hi, I think, one possibility to create a Web Service out of a Delphi COM object, would be the following: 1. Write Delphi code 2. Expose Delphi code via a COM object 3. Generate a proxy assembly via the TLBIMP.EXE utility of the .NET framework that dispatches .NET calls to the COM object. 4. For each CoClass inside the COM object, an ASP.NET has to be created (the implementation takes place in the same file) 5. For every method and property of the COM object a wrapper method is added to the ASP.NET file that redirects incoming calls to the previously generated proxy assembly. That would require that we write a little utility program that calls the TLBIMP utility and generates the appropriate ASP.NET files. Who would be interested in writing such a utility ? Or don't you agree with the shown way of exposing a COM object as an .NET Web Service ? A nice benefit would be that we can handle any COM object - not only Delphi ones. But when we let the ASP.NET file call a COM object, the user that runs the ASP.NET requires the permission to access that object. cu marcus |