Best way to distribute <service_name>Library_Intf.pas file after changes in a service

But I have still a problem with the names of the units. Can you look at it? If I am executing the following code, I am getting the wrong names. I am using the beta version 9.1.100.1267

"C:\Program Files (x86)\RemObjects Software\RemObjects SDK (Common)\Bin\rodl2code.exe" http://yourserver.example.com:8099/bin --type:intf --platform:delphi --language:delphi

the generated files have in its unit-names the following text:

_Intf.pas
unit ./<name>

_ServerAccess
unit ./<name>.pas;

thx. fixed

Hi Evgeny,

I have tried the version 9.1.100.1269. The bug is still there. Or am I using the wrong one?

Best regards!

9.1.100.1269 was released Oct 19, 2016, but this issue was fixed yesterday ā€¦
fix will be present in next beta build

:slight_smile: Oh sorryā€¦ when is the next build? Or what are the cycles of the builds? Thank you for your answers and sorry for the annoyed questions :wink:

usually we release beta every week.
btw, you can compile rodl2code manually from https://github.com/remobjects/ROCodeGen

Can I compile it with delphi!?

no, you need to use elements for compiling rodl2code.

you can use this version of rodl2code until we ship new beta or RTM:
rodl2code.zip (310.8 KB)

Great! Thank you! :thumbsup: Unfortunately I donā€™t have the elements :frowning:

error at runningā€¦

you didnā€™t specify what languages you are using so Iā€™ve uploaded a set of files that generates Delphi.
Iā€™ve attached required lib
Swift.zip (40.0 KB)

I am using Delphi. Pure Pascal :slight_smile:

Iā€™ve tried it! It works how expected! Thank you!

One more question:

Is it possible to add a feature changing the string in the _ServerAccess file?

from
const SERVER_URL = 'http://yourserver.example.com:8099/bin';

to something predefined, e.g. the servername from which the RODL comes from, e.g.
const SERVER_URL = 'http://myservername:1234/bin';

So I donā€™t have to change manually this stringā€¦

fixed.
rodl2code.zip (350.9 KB)

1 Like

Wow! Great! Thank you very much! It works!

New beta build is also out now.

1 Like

Sorry, there is still a bug in generating of the _ServerAccess unit

Inside it has still the extension in the unit name, i.e.

unit <name>.pas;

Could you fix it please? Thank you!

try this rodl2code.zip (350.9 KB)

it works! Thx!

So, now I have another problem :slight_smile:

I am using the last stable release 9.0.97.1245 to create Remoting SDK services. And if I am using the rodl2code.exe from the last beta release it generates me the _Intf and _ServerAccess units which are unfortunatelly not compatible to the version 9.0.97.1245.

If itā€™s not a big deal could you provide please a rodl2code.exe which generate these units compatible to the last stable version? It would be really great! And thank you very much in advance!!!

Best regards!