Hi,
I’m trying to learn to build code-first servers & I’m putting together a file download server/client with login as a test.
The login service has a TehUserInfo = class(TROComplexType) declared in it, that is also in the _Intf file on the client.
I’m trying to execute a RODesignTimeCall on the Login method in the client & I’m getting
Unknown class "TehUserInfo"
Is there something I’m missing?
I’ve tested using the Service Tester and it all passes ok.
This is the whole project so far: https://www.dropbox.com/s/tbqlguijppp5p81/ehFileServer.zip?dl=0
Thanks
RO 9.2.103.1311
Delphi 10.1
EvgenyK
(Evgeny Karpov)
October 2, 2017, 8:11am
2
Delphi IDE knows nothing about your custom class.
If you put this class into package and install such package into IDE, this error will be disappeared.
Hi,
Thanks for the reply, I get that.
Could you also tell me how to use the SimpleLoginService as an ancestor so I can get access to the LoginEx method, or do we have to write all this from scratch with Code First servers?
Thanks
EvgenyK
(Evgeny Karpov)
October 2, 2017, 8:32am
4
something like
{$IFDEF RO_RTTI_Support}
[ROService('NewService')]
{$ENDIF}
TNewService = class(TSimpleLoginService)
end;
TBaseLoginService
already contains Code-First compatible declaration.
If you version of DAD doesn’t contain it, try to update to latest DAD beta.
1 Like