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