Attualmente sto creando soap wrappers per alcune funzioni di Delphi in modo che possiamo facilmente usarle da PHP, C# e Delphi.Come esporre un tipo di set Delphi tramite Soap
Mi chiedo quale sia il modo migliore per esporre i set.
type
TCountry = (countryUnknown,countryNL,countryD,countryB,countryS,countryFIN,countryF,countryE,countryP,countryPl,countryL);
TCountrySet = set of TCountry;
function GetValidCountrySet(const LicensePlate:string; const PossibleCountriesSet:TCountrySet):TCountrySet;
Attualmente sto avvolgendolo in questo modo per il server di sapone:
type
TCountryArray = array of TCountry;
function TVehicleInfo.GetValidCountrySet(const LicensePlate:string; const PossibleCountriesSet:TCountryArray):TCountryArray;
Funziona, ma ho bisogno di scrivere un sacco di codice inutile e brutto per convertire set -> array e array -> set.
C'è un modo più semplice, più elegante o più generico per farlo?