CodeFirst and Client-Side interfaces - Generates only one interface file

bugs://81427 got closed with status fixed.

Hi

Please, when will this feature be available and in which version?

Regards,

SF

This should be in the next beta drop, probably later this week.

hello happy new year 2019 !!!

Please, any preview for release of this review?

Best regards,

SF

this feature should be available in beta already.

usage:
http://localhost:8099/rodl?servicegroup=XXX

  • for RODL-based version, add ROServiceGroups custom attribute, like:
<CustomAttributes>
<ROServiceGroups Value="group1,group2" />
</CustomAttributes>
  • for Code-First version, add ROServiceGroup attriibute:
  [ROService]
  [ROServiceGroup('group1')]
  [ROServiceGroup('group2')]
  TNewService1 = class(TRORemotable)

OK. Thank you so much, I’ll test.

Please, can you send the link of the download version?

you can download it from http://beta.remobjects.com/ .
select Beta Downloads under RO or DA

I also need the declaration of the complex types (Struct Name) used in the parameters of the methods of each service.

Is it possible through the service name to retrieve all types used in the parameters of the methods of a service?

Current implementation of this feature requires this attribute for all objects.

but it is possible to add all used structs/arrays/enums in the parameters of the methods of a service to such request.

Got it. Please, can you add this feature? would help me a lot.

Thanks,

sure

Thanks, logged as bugs://81715

bugs://81715 got closed with status fixed.

Hi

It worked! but, would not it be possible to create a program to generate all automatically, generating separate files? like RODL2Intf.exe ?? passing as servicename parameter?

Best Regards,

SF

have you tried rodl2code.exe?
it accepts URL or .remoteRODL as parameter

I have the following error

Processing RODL file http: // localhost: 8099
There was a problem loading the RODL.

RemObjects.Elements.RTL.XmlException: Unexpected token. Whitespace is expected but TagClose found at 1/62

in RemObjects.Elements.RTL.XmlDocument.FromString (String aString)
in RemObjects.Elements.RTL.HttpResponse.GetContentAsXmlSynchronous ()
in RemObjects.SDK.CodeGen4.RodlLibrary.LoadFromUrl (String aUrl)
in RemObjects.SDK.CodeGen4.RodlLibrary..ctor (String aFilename)
in RemObjects.SDK.CodeGen4 .__ Global.Main (String [] __args)

I’m using the command line:

:> rodl2code “http://localhost:8099” --type:intf --platform:delphi --language:delphi --outpath:“c:\workspace\trunk\EquipMaint\EQMSERVER\EQMSERVER01\LOGIN” --namespace:LOGIN --codefirst-compatible

hmm, this one works for me w/o problems:

rodl2code "http://localhost:8099" --type:intf --platform:delphi --language:delphi --outpath:"y:\12" --namespace:LOGIN --codefirst-compatible
Remoting SDK Service Interface Code Generator, based on CodeGen4 (https://github.com/remobjects/codegen4)

Processing RODL file http://localhost:8099
Generating intf
Wrote file y:\12\MegaDemoLibrary_Intf.pas

try to specify url with /rodl like http://localhost:8099/rodl

if it won’t work too, can you send your .RODL to support@ for investigation, pls

sure that http://localhost:8099/ serves your rodl, and not the info page?

yeah! with http: //localhost:8099/rodl’ worked!

But it generated a single _intf file with all the services, even though I had specified the namespace = LOGIN.

I need to generate a file with only one service, for example, LOGIN_Intf. In the case, I think I would need to make the same change that was made to display in browse with url (http://localhost:8099/rodl?servicegroup=LOGIN) only the service.