Mega Demo (CodeFirst) SOAP

Hi,

it seems EchoPerson Mega Demo CodeFirst version doesn’t work using SOAP message type.

After some source code investigations, it seems I’ve to register enum types (eg. TSex) in _RODLTypes unit.

The same happens with any service converted with “convert to codefirst server” wizard.

My _RODLTypes.pas source code changes follows:


initialization
  uRORTTIServerSupport.RODLLibraryName := LibraryName;
  uRORTTIServerSupport.RODLLibraryID := LibraryUID;

  RegisterROEnum('TSex', System.TypeInfo(TSex), LibraryName);
  RegisterEnumMapping('TSex', 'sxMale', 'sxMale', LibraryName);
  RegisterEnumMapping('TSex', 'sxFemale', 'sxFemale', LibraryName);
finalization
  UnRegisterEnumMappings('TSex', LibraryName);
  UnregisterROEnum('TSex', LibraryName);
end.

Hope this helps.

Giovanni

Thanks, logged as bugs://77261

bugs://77261 got closed with status fixed.

ROEnumSoapName attribute was added, also ROEnum* methods were updated

  [ROEnumSoapName('sxFemale','sxFemale1')]
  [ROEnumSoapName('sxMale','sxMale1')]
  TSex = (
    TSex_sxMale,
    TSex_sxFemale
  );

Great!

Is it already possible to download the updated sources in Alfa version?

Thank you very much

yep. it will be present in next beta

Logged as bugs://i65004.

bugs://i65004 was closed as fixed.