Create REST without OE Architect?

Posted by vfonseca on 28-Jan-2014 10:30

Hello guys,

is there any way to create and deploy on AP SERVER REST Services without using the OE Architect?

Victor Fonseca
Systems Engineer

78 Geraldo Flausino Gomes, 15th floor | Sao Paulo, SP | 04575-060 | Brazil
PHONE +55 11 5508-3594
MOBILE +5511 98611 5276

From: Roberta Miller <>
Reply-To: "" <>
Date: terça-feira, 28 de janeiro de 2014 14:23
To: "" <>
Subject: RE: Run REST Client from Openedge

Reply by Roberta Miller

Yes, there is a little bit of an echo :-). When a post is marked as an "answer", it is copied to the top of the thread so readers don't have to scroll all the way down, but it also stays in it's spot in chronological order. Therefore you will see the "answers" twice in the thread.

Stop receiving emails on this subject.

Flag this post as spam/abuse.


All Replies

Posted by pkavuri on 28-Jan-2014 10:55

There is no simple way to generate REST service without using PDSOE (erstwhile Architect).

Posted by vfonseca on 28-Jan-2014 11:26

But you know how to Pkavuri? Thanks!

Posted by Matt Baker on 28-Jan-2014 20:05

What part are you trying to do outside of PDS?  Are you looking to define the service itself or are you trying to build the .war from outside PDS?

Deployment to a live server is normally done by using export from PDS and placing the resulting .war in the web apps directory.

Posted by asthomas on 30-Jan-2014 03:34

It is actually possible to do, but not without rolling your own code or using a framework or toolset for it.

We use Julian's Maia toolset for generating ABL model classes which includes REST support  :

The rest support is based on WebSpeed and not AppServer, but I am sure it could be tweaked to work with AppServer as well.

Posted by Riverside Software on 30-Jan-2014 03:40

Being able to generate it from Ant (or any other system) would be really helpful. I'm sure those steps could be easily integrated in PCT, but I'd need to know how it works under the hood.

Posted by Michael Jacobs on 30-Jan-2014 05:42

Maybe some technical background will help you choose the right path.

You could build the REST service's .war file easy enough with ANT, using the sources located in $DLC/rest/lib and $DLC/rest/server directories.   However, that would be missing the REST service's description file(s) (.paar) that contains all of the Service Interface's definition for HTTP message parts, datatypes, defaults, and AppServer procedure/parameter mapping.    Without theREST service description file, the .war file you generated with ANT will not function.  

The generation of a REST service description file requires creating 4 (complex) .xml files with all of the interface definition information.  That is the role that only PDS can play - which is to generate the REST service description file(s) from the .p/.cls sources (with their annotations) and PDS's REST mapper tool.   Not something anyone could do in any reasonable amount of time manually, but PDS does in a matter of milliseconds.   For automated build processes, release 11.3 introduced the 'restgen.bat' command line utility that allows you to generate the .war or REST service description file from a PDS REST project.   But I think that utility does not solve what you want to do because it still requires you to develop using PDS.

In the final analysis, you will require PDS to create and deploy REST or Mobile services to access an AppServer.

I hope this information helps.

Posted by Riverside Software on 30-Jan-2014 07:56

Hello Michael,

From what I understand, the build automation only needs to generate the .paar file. This is only during automated deployment that this file will be dropped in the REST adapter application (in $DLC/servlets), and configured to point to the correct appserver (among other things). Is that right ? I'll have a look at restgen, and how it can be wrapped in an ANT task.

I don't really care about modifying the REST services description within ANT, just building what is stored in the source code repository, and be able to deploy it automatically.

By the way, I just tried to execute restgen.bat on a test project, and I got :

Creating REST Service WAR file with [TestRESTService] at target C:\Progress\Work\OPENED~1.3\test.war

Exception in thread "main" java.lang.NoClassDefFoundError: com/progress/tools/caf/core/model/ILocation

       at java.lang.Class.forName0(Native Method)

       at java.lang.Class.forName(



Caused by: java.lang.ClassNotFoundException:



       at Method)


       at java.lang.ClassLoader.loadClass(

       at sun.misc.Launcher$AppClassLoader.loadClass(

       at java.lang.ClassLoader.loadClass(

       ... 4 more

Probably just a classpath problem, but it's a plain 11.3.1 install, and running it from proenv 11.3.1

I'll have a look a bit later.


Posted by Michael Jacobs on 30-Jan-2014 14:29

We're looking at the error you are seeing now and hope to get back to you soon.

Posted by Irfan on 31-Jan-2014 03:41

There seems to be an issue with the restgen.bat in 11.3.1, it works well in 11.3.2. If you could access 11.3.2  please upgrade to the latest version and give it a try.

Posted by Michael Jacobs on 04-Feb-2014 09:29

Sorry to have to tell you but we have confirmed that release 11.3.1 requires a library change in the developer's studio, so to get resign.bat support you will have to update your development environment to 11.3.2 or later.  

Posted by Riverside Software on 04-Feb-2014 09:42

I will update to 11.3.2 and keep you posted, thanks.


This thread is closed