Call C# Web Service from Delphi

Hi,

I have never used Hydra. I have an existing VCL application that I need to access a Web Service, from a third-party. Embarcadero’s WSDL importer will not import the WSDL correctly. I was able to import the WSDL into a C# .cs file. Can I use this .cs file with Hydra to access the Web Service from Delphi?

Thanks,

David

Yes, you can use this class from Delphi code, but Hydra is plugin framework, so this will require some additional work.

a) You need a plugin. Since your class is not visual, you’ll need a .net non-visual plugin.
b) This plugin needs to be hosted, this is handled by Delphi vcl host.
c) To be able to access .net classes from Delphi you’ll also need a custom interfaces and ability to marshal objects.