Trying out moving to EDG Studio

55 views
Skip to first unread message

Steve Ray

unread,
Feb 9, 2022, 3:04:48 PM2/9/22
to TopBraid Suite Users
With 7.1 I can no longer run my SWA scripts to generate Web pages, so I am gingerly stepping into experimenting with EDG Studio. A few questions:

After getting Studio running, I uploaded the projects that I think I need, using the Server Administration button. Previously, the local EDG server/TBL server could see everything in the TBC workspace. Is this the right first step? Alternatively, should I be doing this with the Files button in EDG?

Next problem: I tried a simple command from a terminal window as follows, and got an authentication error:

I'm logged in to the Studio UI as Administrator. Do I need to provide credentials in the curl call? Is the call still to ...tbl/service...?

Is there any documentation for migrating SWA services to Studio? I didn't see anything specific to Studio for SWA.

Thanks,
Steve


Holger Knublauch

unread,
Feb 10, 2022, 12:29:34 AM2/10/22
to topbrai...@googlegroups.com

On 10 Feb 2022, at 7:04 am, Steve Ray <st...@steveray.com> wrote:

With 7.1 I can no longer run my SWA scripts to generate Web pages,

With SWA scripts you are referring to SWP-based UI components that happened to use the swa.ui.ttlx library? We have gradually removed some SWA features over the last few releases, because they were left-overs from the “old editor” before we rewrote that in React.

so I am gingerly stepping into experimenting with EDG Studio. A few questions:

After getting Studio running, I uploaded the projects that I think I need, using the Server Administration button. Previously, the local EDG server/TBL server could see everything in the TBC workspace. Is this the right first step? Alternatively, should I be doing this with the Files button in EDG?

EDG Studio works on your local file system using a dedicated root folder. You don’t need to go through the complexity of project upload. Just modify the folders under the root folder and use the Refresh button on the Files page when needed. You should see any sub-folder of the root folder as a top-level project in that Files tree.


Next problem: I tried a simple command from a terminal window as follows, and got an authentication error:

I hope someone else answers this one.


I'm logged in to the Studio UI as Administrator. Do I need to provide credentials in the curl call? Is the call still to ...tbl/service...?

Is there any documentation for migrating SWA services to Studio? I didn't see anything specific to Studio for SWA.

This depends on which features of SWA you have been using, but in general there is migration guide. We recently rewrote and cleaned up the documentation for 7.1 and there you find help on all kinds of topics including how to write extensions with JavaScript/ADS, if that’s one option for you.

Holger



Thanks,
Steve



--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CAGUep86NdDG%3DHXG-HTw3JWfMnRokVzomJvHacRzSZjYte63dfw%40mail.gmail.com.

Steve Ray

unread,
Feb 10, 2022, 7:05:37 PM2/10/22
to TopBraid Suite Users
Thanks, this simplified things. No project uploads.
I now have two collections that "include" various graphs from the Files hierarchy, as in 7.0

I'm still getting the "No user is logged in" returned for my ADS dash:GraphService calls. They seem to work fine in the Swagger page, but not from my scripts:
Swagger:
image.png

I went to the Rights Management page and let Administrator do everything, but that didn't help.
I must be missing something.

Steve




TopQuadrant Support

unread,
Feb 11, 2022, 12:09:51 PM2/11/22
to topbrai...@googlegroups.com
Hi Steve,

You need a cookie in your curl.  Assuming you have the default no-auth setup for Studio, try this:

curl -X GET http://localhost:8083/tbl/service/qudt_owl_schema/qudt/listAllDefinitions -H "accept: */*" --cookie "username=Administrator"

Let us know if that works for you.

Thanks,
-Ken
TopQuadrant Support


Steve Ray

unread,
Feb 11, 2022, 12:52:26 PM2/11/22
to TopBraid Suite Users
Well well, whatdyaknow! That worked! Do I need that for all my curl calls? I have scripts with many such calls.

Steve




TopQuadrant Support

unread,
Feb 11, 2022, 4:45:09 PM2/11/22
to topbrai...@googlegroups.com
Hi Steve,

Yes, you'll need this for all of them.  Alternately, you can store the cookie in a cookie jar, and then have each curl use the same cookie jar:

curl -X GET http://localhost:8083/tbl/service/qudt_owl_schema/qudt/listAllDefinitions -H "accept: */*" --cookie "username=Administrator" --cookie-jar my.cookies

Unfortunately, it won't store the username cookie for you, but you can use a text editor to add it.  Copy the JSESSIONID cookie, and change the name and value:

# Netscape HTTP Cookie File

# https://curl.haxx.se/docs/http-cookies.html

# This file was generated by libcurl! Edit at your own risk.


#HttpOnly_localhost     FALSE   /       FALSE   0       JSESSIONID      SOMEHEXADECIMALNUMBER0225599CCFF

#HttpOnly_localhost     FALSE   /       FALSE   0       username        Administrator


Then use the cookie jar after that:

curl -X GET http://localhost:8083/tbl/service/qudt_owl_schema/qudt/listAllDefinitions -H "accept: */*" --cookie my.cookies
curl -X GET http://localhost:8083/tbl/service/qudt_owl_schema/qudt/someOtherService -H "accept: */*" --cookie my.cookies

Hope this helps!
-Ken
TopQuadrant Support


Reply all
Reply to author
Forward
0 new messages