# ROServiceGroupAttribute and rodl2code

**URL:** https://talk.remobjects.com/t/roservicegroupattribute-and-rodl2code/22746
**Category:** Remoting SDK
**Tags:** delphi
**Created:** [August 3, 2020, 10:08pm UTC](https://talk.remobjects.com/t/roservicegroupattribute-and-rodl2code/22746 "2020-08-03T22:08:48Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![claudio.piffer](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@claudio.piffer](https://talk.remobjects.com/u/claudio.piffer)
#### Post date: [August 3, 2020, 10:08pm UTC](https://talk.remobjects.com/t/roservicegroupattribute-and-rodl2code/22746/1 "2020-08-03T22:08:48Z")

</div>

Hi

in my server application in all services (code-first) I add the ROServiceGroup attribute to be able to manage them separately on the client side.

Currently in my service (but there will be many services developed with Hydra) there are two defined services:

1.login

```
  [ROService('LoginService', '{66980D47-CF19-40D3-B3D5-9B68B0279279}')]
  [RONamespace(__RODLLibraryNamespace)]
  [ROServiceGroup('login')]
  [ROStandardClassFactory]
  TLoginService = class(TSimpleLoginService, ILoginServiceServer)

```

2.common

```
  [ROService('CommonService', '{CCE18AD1-F304-49D4-80C8-2AC6B48190C6}')]
  [RONamespace(__RODLLibraryNamespace)]
  [ROServiceGroup('common')]
  [ROPooledClassFactoryAttribute(50)]
  TCommonService = class(TDataAbstractService)

```

I noticed that if I invoke from browser this link:

`http://127.0.0.1:8099/rodl?servicegroup=login`

the generated rodl is complete also with the common service

While if I throw this:

`http://127.0.0.1:8099/bin?servicegroup=login`

the generated rodl contains only the login service definitions.

Is this behavior correct?

I changed only /rodl? with /bin?

If I then try to generate the unit for the client with the use of rodl2code this does not work because the distributed Echoes.dll library is in version 10.0.02456 while the tool looks for the version 10.0.0.2480

This is the error that is raised:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly ‘Echoes, Version = 10.0.0.2480, Culture = neutral, PublicKeyToken = 3df3cad1b7aa5098’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I have seen that this problem has already been resolved.

Is it possible to have the tool update?

Thank you very much

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [August 4, 2020, 7:31am UTC](https://talk.remobjects.com/t/roservicegroupattribute-and-rodl2code/22746/2 "2020-08-04T07:31:40Z")

</div>

Hi,

> [@claudio.piffer](#):
>
> I changed only /rodl? with /bin?

I can’t reproduce this issue with simple testcase. probably this issue is reproduced only with hydra plugins…  
can you create a simple testcase that reproduce it, pls?  
you can attach it here or send directly to support@ for keeping privacy.

as a temporary workaround, you can use delphi based project (`rocg4_helper.zip`) from [CodeFirst and Client-Side interfaces - Generates only one interface file](https://talk.remobjects.com/t/codefirst-and-client-side-interfaces-generates-only-one-interface-file/17395/68) topic

---

<div class="post-metadata">

### Author: ![claudio.piffer](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@claudio.piffer](https://talk.remobjects.com/u/claudio.piffer)
#### Post date: [August 4, 2020, 7:46am UTC](https://talk.remobjects.com/t/roservicegroupattribute-and-rodl2code/22746/3 "2020-08-04T07:46:55Z")

</div>

> [@EvgenyK](#):
>
> I can’t reproduce this issue with simple testcase. probably this issue is reproduced only with hydra plugins…

hmm. In this moment my server is compiled with runtime packages but not load any plugins. I tried to compile without runtime package but I have the same problem.

Could be code-first the problem?

I try to send you an example

> [@EvgenyK](#):
>
> as a temporary workaround, you can use delphi based project ( `rocg4_helper.zip` ) from [CodeFirst and Client-Side interfaces - Generates only one interface file](https://talk.remobjects.com/t/codefirst-and-client-side-interfaces-generates-only-one-interface-file/17395/68) topic

Ok. I try with this tool

Best regards

---

<div class="post-metadata">

### Author: ![claudio.piffer](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@claudio.piffer](https://talk.remobjects.com/u/claudio.piffer)
#### Post date: [August 4, 2020, 8:46am UTC](https://talk.remobjects.com/t/roservicegroupattribute-and-rodl2code/22746/4 "2020-08-04T08:46:03Z")

</div>

Hi EvgenyK

i create a new sample ROSDK code-first service and I have the same problem.

Login service:

```
type
  [ROService( __ServiceName,__ ServiceID)]
  [RONamespace(fServerDataModule.__RODLLibraryNamespace)]
  [ROServiceGroup('login')]
  [ROStandardClassFactory]
// [ROZeroConfService(__ServiceName)]
  TLoginService = class(TRORemoteDataModule)

```

CodeFist service

```
  [ROService( __ServiceName,__ ServiceID)]
  [RONamespace(fServerDataModule.__RODLLibraryNamespace)]
  [ROServiceGroup('codefirst')]
  [ROStandardClassFactory]
  // [ROZeroConfService(__ServiceName)]
  TCodeFirstSeverService = class(TRORemoteDataModule)

```

Open the browser I see all services despite having applied the filter:

 ![image](https://talk.remobjects.com/uploads/default/original/2X/9/9d87dfa76491284a24ccfa6e1d6716492fb0a9eb.png)

When if I filter through the /bin? parameter it works properly

 ![image](https://talk.remobjects.com/uploads/default/original/2X/f/f7966d01eb2797b2b389d01eadc65adef6b5dd6f.png)

Here the sample source project:

[RODemo3.7z](https://talk.remobjects.com/uploads/short-url/46SmcNIVqtyktbWlHE5S9tD5Atv.7z) (52.7 KB)

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [August 4, 2020, 8:55am UTC](https://talk.remobjects.com/t/roservicegroupattribute-and-rodl2code/22746/5 "2020-08-04T08:55:13Z")

</div>

Hi,

I’ve tested with plain http server.  
you have used superhttp server. this is a reason for this issue

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [August 4, 2020, 8:55am UTC](https://talk.remobjects.com/t/roservicegroupattribute-and-rodl2code/22746/6 "2020-08-04T08:55:19Z")

</div>

Thanks, logged as [bugs://84770](https://www.remobjects.com/portal/bugs/?id=84770)

---

<div class="post-metadata">

### Author: ![claudio.piffer](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@claudio.piffer](https://talk.remobjects.com/u/claudio.piffer)
#### Post date: [August 4, 2020, 9:27am UTC](https://talk.remobjects.com/t/roservicegroupattribute-and-rodl2code/22746/7 "2020-08-04T09:27:36Z")

</div>

Ah ok!

then as a workaround I add a plain http connection to my server

Thank you very much

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [August 4, 2020, 9:46am UTC](https://talk.remobjects.com/t/roservicegroupattribute-and-rodl2code/22746/8 "2020-08-04T09:46:32Z")

</div>

Hi,  
pls update `uROBaseSuperHttpServer.pas` as

```auto
procedure TROBaseSuperHTTPServer.HandleRequest(aTarget: IROHTTPClientCapabilities;
  aRequestHeaders: TIPHTTPRequestHeaders; aRequest: TBytes);
...
            else if DoProcessDocs(lTransport,lResponseHeaders,lResponseStream,lroot,lSubPath) then begin // 1st param is changed

```

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [August 4, 2020, 9:52am UTC](https://talk.remobjects.com/t/roservicegroupattribute-and-rodl2code/22746/9 "2020-08-04T09:52:30Z")

</div>

[bugs://84770](https://www.remobjects.com/portal/bugs/?id=84770) got closed with status fixed.
