Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Delphi: TInvokableClassRegistryHelper.GetInterfaceNamespac e as the opposite of TInvok (https://www.delphipraxis.net/205508-delphi-tinvokableclassregistryhelper-getinterfacenamespac-e-opposite-tinvok.html)

DP News-Robot 17. Sep 2020 19:10

Delphi: TInvokableClassRegistryHelper.GetInterfaceNamespac e as the opposite of TInvok
 
A while ago, I needed the opposite of InvRegistry.RegisterInterface(TypeInfo(MySoapInter facePortType, 'urn:myURN', 'utf-8');, so instead of registering an interface with a namespace URN, obtain the URN by passing the interface inverting [WayBack] TInvokableClassRegistry.RegisterInterface. This is the class helper I wrote: type TInvokableClassRegistryHelper = class helper for TInvokableClassRegistry public function GetInterfaceNamespace(Info: PTypeInfo): string; end; function TInvokableClassRegistryHelper.Ge

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:29 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz