How to generate C# 7.3 interface source files with RO 10.0.0.1611

When I rightclick a remoteRODL and generate the itf files for a .NET FW project the code does not build anymore.

It uses a C# code syntax which is too new

How can I generate a useable itf file?

Hi,

You can use rodl2code or ServiceBuilder for generate code using old codedom codegen.

  • rodl2code

use --codedom cmd line switch

  • ServiceBuilder

uncheck Use new codegen in Service Builder:

it will use old codedom codegen.

Any idea why it does not work via the commandline?

C:\Program Files (x86)\RemObjects Software\RemObjects SDK (Common)\Bin
λ rodl2code https://localhost:7572/bin --codedom --type:intf --platform:net --language:cs
Remoting SDK Service Interface Code Generator, based on CodeGen4 ( GitHub - remobjects/CodeGen4: A Swift library to generate source code for many languages )

Processing RODL file https://localhost:7572/bin
There was a problem loading the RODL.

RemObjects.Elements.RTL.HttpException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
at RemObjects.Elements.RTL.Http.ExecuteRequestSynchronous(HttpRequest aRequest, Boolean aThrowOnError)
at RemObjects.Elements.RTL.Http.ExecuteRequestSynchronous(HttpRequest aRequest)
at RemObjects.Elements.RTL.Http.GetString(Encoding aEncoding, HttpRequest aRequest)
at RemObjects.SDK.CodeGen4.RodlLibrary.LoadFromUrl(Url aUrl)
at RemObjects.SDK.CodeGen4.__Global.Main(String __args)

image

FYI: it is codefirst, I can only work with remoterodl.

This does not seem to load in Service Builder

Looks like self-signed certificate isn’t accepted. I’ll review this case

use

or you can download .rodl file in browser via https://localhost:7572/bin and load it into ServiceBuilder or use with rodl2code

Hi Evgeny,

It is not a self signed cert, it is a wildcard certificate

When playing with the browser I was reminded by this and thought it might be the reason why rodl2code fails and indeed by changing the URL I get the correct output

https://localhost.officinall.be:7572/bin

Thanks