Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Be careful when a loop exits to the same place from side and bottom.


computers / comp.os.vms / Restful API w/JSON client package or library on OpenVMS

SubjectAuthor
* Restful API w/JSON client package or library on OpenVMSRichard Jordan
+* Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
|`* Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
| `- Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
+* Re: Restful API w/JSON client package or library on OpenVMSCraig A. Berry
|`- Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
+* Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
|+* Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
||`* Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
|| `* Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
||  `* Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
||   `* Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
||    `* Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
||     `* Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
||      `* Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
||       `* Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
||        `* Re: Restful API w/JSON client package or library on OpenVMSMichael S
||         `* Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
||          `* Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
||           +* Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
||           |`- Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
||           +* Re: Restful API w/JSON client package or library on OpenVMSDan Cross
||           |`* Re: Restful API w/JSON client package or library on OpenVMSChris Townley
||           | `* Re: Restful API w/JSON client package or library on OpenVMSSimon Clubley
||           |  `- Re: Restful API w/JSON client package or library on OpenVMSSingle Stage to Orbit
||           `- Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
|`* Re: Restful API w/JSON client package or library on OpenVMSDave Froble
| `- Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
`* Re: Restful API w/JSON client package or library on OpenVMSRichard Jordan
 +- Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
 `* Re: Restful API w/JSON client package or library on OpenVMSDave Froble
  +* Re: Restful API w/JSON client package or library on OpenVMSStephen Hoffman
  |+* Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
  ||`- Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
  |`- Re: Restful API w/JSON client package or library on OpenVMSLawrence D'Oliveiro
  `* Re: Restful API w/JSON client package or library on OpenVMSSimon Clubley
   +* Re: Restful API w/JSON client package or library on OpenVMSSingle Stage to Orbit
   |`* Re: Restful API w/JSON client package or library on OpenVMSSimon Clubley
   | +- Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj
   | `- Re: Restful API w/JSON client package or library on OpenVMSSingle Stage to Orbit
   `- Re: Restful API w/JSON client package or library on OpenVMSArne Vajhøj

Pages:12
Restful API w/JSON client package or library on OpenVMS

<ust9ls$16b03$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33719&group=comp.os.vms#33719

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: usenet@cropcircledogs.com (Richard Jordan)
Newsgroups: comp.os.vms
Subject: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 13 Mar 2024 17:34:13 -0500
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ust9ls$16b03$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 13 Mar 2024 22:34:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="827113d35962a6fad387d390e57ae56e";
logging-data="1256451"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gp1lXqW0DTA/6qgB/cOWl"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:oo/Jyu1JNl9dKdOkOk3VMRy4wCI=
Content-Language: en-US
 by: Richard Jordan - Wed, 13 Mar 2024 22:34 UTC

One of our customers currently on VSI VMS on Integrity has been using
the GSOAP kit from HP as a client to communicate with a third party app
on windows server. The company making that product is dropping
SOAP/GSOAP and moving to only support JSON-based Restful API.

I see several items that purport to provide a Restful API for 'server'
side use on VMS, like WSIT from VSI. Client mentions seem to be
relegated to other platforms. Other options seem to be the same; server
only.

Are there any packages, callable libraries, "Netlib" like options, etc
that would allow VMS programs to access restful API servers? Whether
its encapsulation like the GSOAP kits, or just linking in a callable
library of routines?

Major props if it can be called from BASIC without intervening C or
other language.

Is VMS Python an option since it looks like Restful API is supported by
recent versions of that language on VMS? I assume we'd have to get
BASIC to talk to Python to do the communications in that case...

Thanks for any suggestions or info.

Re: Restful API w/JSON client package or library on OpenVMS

<ustapm$16ghu$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33720&group=comp.os.vms#33720

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 13 Mar 2024 22:53:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <ustapm$16ghu$3@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 Mar 2024 22:53:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="71ae5262ccd34dd01afa45cb3ad06860";
logging-data="1262142"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186Hx3fmvisjuON83o8Nhk+"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:MarscqzAhU3QtqafiztqBzGF5ww=
 by: Lawrence D'Oliv - Wed, 13 Mar 2024 22:53 UTC

On Wed, 13 Mar 2024 17:34:13 -0500, Richard Jordan wrote:

> Is VMS Python an option since it looks like Restful API is supported by
> recent versions of that language on VMS?

REST is just HTTP under another name.

Re: Restful API w/JSON client package or library on OpenVMS

<ustcrb$173e0$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33721&group=comp.os.vms#33721

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: craigberry@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 13 Mar 2024 18:28:42 -0500
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <ustcrb$173e0$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 Mar 2024 23:28:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3476b85b91ad113ef8ff605097216665";
logging-data="1281472"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PQsy4VPI6F7SgqlJKzdhVdIYvMyS0zyc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:SbMsKs+Rxm7g5acsMuSuk7e8yMU=
Content-Language: en-US
In-Reply-To: <ust9ls$16b03$1@dont-email.me>
 by: Craig A. Berry - Wed, 13 Mar 2024 23:28 UTC

On 3/13/24 5:34 PM, Richard Jordan wrote:
> One of our customers currently on VSI VMS on Integrity has been using
> the GSOAP kit from HP as a client to communicate with a third party app
> on windows server.  The company making that product is dropping
> SOAP/GSOAP and moving to only support JSON-based Restful API.
>
> I see several items that purport to provide a Restful API for 'server'
> side use on VMS, like WSIT from VSI.  Client mentions seem to be
> relegated to other platforms.  Other options seem to be the same; server
> only.
>
> Are there any packages, callable libraries, "Netlib" like options, etc
> that would allow VMS programs to access restful API servers?  Whether
> its encapsulation like the GSOAP kits, or just linking in a callable
> library of routines?
>
> Major props if it can be called from BASIC without intervening C or
> other language.
>
> Is VMS Python an option since it looks like Restful API is supported by
> recent versions of that language on VMS?  I assume we'd have to get
> BASIC to talk to Python to do the communications in that case...
>
> Thanks for any suggestions or info.

There are basically two pieces to this:

1.) send the GET/POST/PUT/PATCH requests to the HTTP(S) endpoints
2.) parse the JSON that comes back

If you're particularly desperate, you can just use curl to send the
requests and dump the results to something (temp file or whatever), and
then parse the JSON somehow, perhaps with DCL if showing the kids how
things were done in the old days is the main goal. There are currently
better options.

There are plenty of capabilities with both Perl and Python to do #1 and
#2 together. Java too. To do it in BASIC you might need two libraries,
one for HTTP and one for JSON, or one library that does both, and those
libraries would probably be written in C and need wrappers for those
BASIC dynamic strings. Quite likely libcurl has everything you need,
though I've never actually done this kind of implementation with it.

VSI seems to be using Lua for some of its REST API implementations such
as the current web management product. I have no experience with it but
it's yet another way to do the HTTP thing with VMS as the client.

Re: Restful API w/JSON client package or library on OpenVMS

<usteis$17drt$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33722&group=comp.os.vms#33722

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 13 Mar 2024 23:58:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <usteis$17drt$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <ustcrb$173e0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 Mar 2024 23:58:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a2351749b4eebd2a62c741e1ddb0aa2";
logging-data="1292157"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tXxHhGBiPM+02b+Yqr3tb"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:/7/Sv/ecadssxIQtARPTJ2INS0c=
 by: Lawrence D'Oliv - Wed, 13 Mar 2024 23:58 UTC

On Wed, 13 Mar 2024 18:28:42 -0500, Craig A. Berry wrote:

> If you're particularly desperate, you can just use curl to send the
> requests and dump the results to something (temp file or whatever), and
> then parse the JSON somehow ...

I would use wget rather than curl (simpler tool with less of a potential
attack surface).

JSON can be manipulated/parsed/generated from the command line using jq
<https://manpages.debian.org/1/jq.en.html>.

Re: Restful API w/JSON client package or library on OpenVMS

<usth0f$17t0a$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33723&group=comp.os.vms#33723

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 13 Mar 2024 20:39:42 -0400
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <usth0f$17t0a$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 14 Mar 2024 00:39:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4f626696c26a82c0ec4e0cd4efbdbd81";
logging-data="1307658"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MbugAJU6jpJ/rjMByF/VNBlb8tyovnU4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mP9ZpNzAGnccNoFBHkXPIAAkq9A=
In-Reply-To: <ust9ls$16b03$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Thu, 14 Mar 2024 00:39 UTC

On 3/13/2024 6:34 PM, Richard Jordan wrote:
> One of our customers currently on VSI VMS on Integrity has been using
> the GSOAP kit from HP as a client to communicate with a third party app
> on windows server.  The company making that product is dropping
> SOAP/GSOAP and moving to only support JSON-based Restful API.
>
> I see several items that purport to provide a Restful API for 'server'
> side use on VMS, like WSIT from VSI.  Client mentions seem to be
> relegated to other platforms.  Other options seem to be the same; server
> only.
>
> Are there any packages, callable libraries, "Netlib" like options, etc
> that would allow VMS programs to access restful API servers?  Whether
> its encapsulation like the GSOAP kits, or just linking in a callable
> library of routines?
>
> Major props if it can be called from BASIC without intervening C or
> other language.
>
> Is VMS Python an option since it looks like Restful API is supported by
> recent versions of that language on VMS?  I assume we'd have to get
> BASIC to talk to Python to do the communications in that case...

I know of some options for client for RESTful web services:
* Java with any HTTP client including builtin HttpURLConnection
and any JSON library including GSon
* Python with request and json modules
* PHP with curl extension and json_encode/json_decode
* native code with plain sockets and some JSON library
like cJSON

There are code examples for client in Java, Groovy, Python,
PHP, C and Pascal here:
https://www.vajhoej.dk/arne/articles/vmsipc.html#rest

I guess I could come up with a Basic example similar to
the Pascal example.

But else:

Basic program--(binary/socket)--Java/Groovy/Python gateway
program--(JSON/HTTP)-->web service

should not be that bad.

Arne

Re: Restful API w/JSON client package or library on OpenVMS

<usth7n$17t0a$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33724&group=comp.os.vms#33724

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 13 Mar 2024 20:43:35 -0400
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <usth7n$17t0a$2@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <ustapm$16ghu$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 14 Mar 2024 00:43:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4f626696c26a82c0ec4e0cd4efbdbd81";
logging-data="1307658"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3PTfYbkwR8/CyUv7oEVpAu+XauDmA61Y="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:qJNL2Y2eSMdo1CAi32AGXehpk+E=
In-Reply-To: <ustapm$16ghu$3@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Thu, 14 Mar 2024 00:43 UTC

On 3/13/2024 6:53 PM, Lawrence D'Oliveiro wrote:
> On Wed, 13 Mar 2024 17:34:13 -0500, Richard Jordan wrote:
>> Is VMS Python an option since it looks like Restful API is supported by
>> recent versions of that language on VMS?
>
> REST is just HTTP under another name.

No.

A RESTful web service will always use HTTP as transport
protocol, but not all web services using HTTP as protocol
are RESTful.

RESTful implies a lot about data model, URL format and
the use of HTTP methods.

Arne

Re: Restful API w/JSON client package or library on OpenVMS

<ustjb9$18a5n$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33725&group=comp.os.vms#33725

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Thu, 14 Mar 2024 01:19:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <ustjb9$18a5n$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <ustapm$16ghu$3@dont-email.me>
<usth7n$17t0a$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 14 Mar 2024 01:19:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a2351749b4eebd2a62c741e1ddb0aa2";
logging-data="1321143"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181hXWCkuhjV5hgMRTDxvFB"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:fncQvq2Sg0BZMarb1XE0AUuso34=
 by: Lawrence D'Oliv - Thu, 14 Mar 2024 01:19 UTC

On Wed, 13 Mar 2024 20:43:35 -0400, Arne Vajhøj wrote:

> RESTful implies a lot about data model, URL format and the use of HTTP
> methods.

So does HTTP.

Re: Restful API w/JSON client package or library on OpenVMS

<ustlii$18ma1$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33726&group=comp.os.vms#33726

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Thu, 14 Mar 2024 01:57:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <ustlii$18ma1$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 14 Mar 2024 01:57:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a2351749b4eebd2a62c741e1ddb0aa2";
logging-data="1333569"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/rhygkWGwIjQRtdDnjBsC2"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:RDLXKiCxPskNRusGFRSt2k0JODc=
 by: Lawrence D'Oliv - Thu, 14 Mar 2024 01:57 UTC

On Wed, 13 Mar 2024 20:39:42 -0400, Arne Vajhøj wrote:

> * Java with any HTTP client including builtin HttpURLConnection

I don’t think that does any cookie management
<https://docs.oracle.com/en%2Fjava%2Fjavase%2F11%2Fdocs%2Fapi%2F%2F/java.base/java/net/HttpURLConnection.html>.
So if you want session authentication, you will need to do things in a
more complicated way.

Re: Restful API w/JSON client package or library on OpenVMS

<ustmrj$1cjbk$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33727&group=comp.os.vms#33727

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: davef@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 13 Mar 2024 22:19:20 -0400
Organization: A noiseless patient Spider
Lines: 66
Message-ID: <ustmrj$1cjbk$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 14 Mar 2024 02:19:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ca93ce251e8f31bd44e9dd5f6df7645e";
logging-data="1461620"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/dVnnoDaRtzTGEYbzL+U2ZllPSUhrw3U="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:gVjmAJlUbd0BzrRNmUhQMmr1xSY=
In-Reply-To: <usth0f$17t0a$1@dont-email.me>
 by: Dave Froble - Thu, 14 Mar 2024 02:19 UTC

On 3/13/2024 8:39 PM, Arne Vajhøj wrote:
> On 3/13/2024 6:34 PM, Richard Jordan wrote:
>> One of our customers currently on VSI VMS on Integrity has been using the
>> GSOAP kit from HP as a client to communicate with a third party app on windows
>> server. The company making that product is dropping SOAP/GSOAP and moving to
>> only support JSON-based Restful API.
>>
>> I see several items that purport to provide a Restful API for 'server' side
>> use on VMS, like WSIT from VSI. Client mentions seem to be relegated to other
>> platforms. Other options seem to be the same; server only.
>>
>> Are there any packages, callable libraries, "Netlib" like options, etc that
>> would allow VMS programs to access restful API servers? Whether its
>> encapsulation like the GSOAP kits, or just linking in a callable library of
>> routines?
>>
>> Major props if it can be called from BASIC without intervening C or other
>> language.
>>
>> Is VMS Python an option since it looks like Restful API is supported by recent
>> versions of that language on VMS? I assume we'd have to get BASIC to talk to
>> Python to do the communications in that case...
>
> I know of some options for client for RESTful web services:
> * Java with any HTTP client including builtin HttpURLConnection
> and any JSON library including GSon
> * Python with request and json modules
> * PHP with curl extension and json_encode/json_decode
> * native code with plain sockets and some JSON library
> like cJSON
>
> There are code examples for client in Java, Groovy, Python,
> PHP, C and Pascal here:
> https://www.vajhoej.dk/arne/articles/vmsipc.html#rest
>
> I guess I could come up with a Basic example similar to
> the Pascal example.
>
> But else:
>
> Basic program--(binary/socket)--Java/Groovy/Python gateway
> program--(JSON/HTTP)-->web service
>
> should not be that bad.
>
> Arne
>
>

I have some code that does an HTTPS POST written in Basic. Also have some code
that does a DNS lookup from VMS. Available to whoever asks.

Note, the code uses some code written in C. Some things I don't know how to do
from Basic.

As for Restful, I have no experience. But if you do the POST, you then have the
reply which can be parsed and used.

Never seen any reason to use a bunch of overhead to do a simple operation.

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: Restful API w/JSON client package or library on OpenVMS

<ustmrr$18rqp$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33728&group=comp.os.vms#33728

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 13 Mar 2024 22:19:39 -0400
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <ustmrr$18rqp$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
<ustlii$18ma1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 14 Mar 2024 02:19:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4f626696c26a82c0ec4e0cd4efbdbd81";
logging-data="1339225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/EHaOjfegPWpwOrAjLiE+vzZ3Uktpp/t0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:XqJXAT0Jvpc2qE3OronTA4wm18Y=
Content-Language: en-US
In-Reply-To: <ustlii$18ma1$1@dont-email.me>
 by: Arne Vajhøj - Thu, 14 Mar 2024 02:19 UTC

On 3/13/2024 9:57 PM, Lawrence D'Oliveiro wrote:
> On Wed, 13 Mar 2024 20:39:42 -0400, Arne Vajhøj wrote:
>> * Java with any HTTP client including builtin HttpURLConnection
>
> I don’t think that does any cookie management
> <https://docs.oracle.com/en%2Fjava%2Fjavase%2F11%2Fdocs%2Fapi%2F%2F/java.base/java/net/HttpURLConnection.html>.
> So if you want session authentication, you will need to do things in a
> more complicated way.

It does not handle cookies automatically.

But since RESTful web services should not use session cookies,
then that is not really a problem.

Arne

Re: Restful API w/JSON client package or library on OpenVMS

<ustnd0$18rqp$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33729&group=comp.os.vms#33729

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 13 Mar 2024 22:28:48 -0400
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <ustnd0$18rqp$2@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
<ustmrj$1cjbk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 14 Mar 2024 02:28:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4f626696c26a82c0ec4e0cd4efbdbd81";
logging-data="1339225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/KyQs4CjSYQEu2cPRTXCjz8k6OQwmxjc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:V9A+l0fvYsksH+AoWyW2LnsFEOY=
In-Reply-To: <ustmrj$1cjbk$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Thu, 14 Mar 2024 02:28 UTC

On 3/13/2024 10:19 PM, Dave Froble wrote:
> On 3/13/2024 8:39 PM, Arne Vajhøj wrote:
>> There are code examples for client in Java, Groovy, Python,
>> PHP, C and Pascal here:
>>   https://www.vajhoej.dk/arne/articles/vmsipc.html#rest
>>
>> I guess I could come up with a Basic example similar to
>> the Pascal example.
>>
>> But else:
>>
>> Basic program--(binary/socket)--Java/Groovy/Python gateway
>> program--(JSON/HTTP)-->web service
>>
>> should not be that bad.
>
> I have some code that does an HTTPS POST written in Basic.  Also have
> some code that does a DNS lookup from VMS.  Available to whoever asks.
>
> Note, the code uses some code written in C.  Some things I don't know
> how to do from Basic.

I got something like that as well.

https://www.vajhoej.dk/arne/articles/vmsipc.html#http_wrap

https://www.vajhoej.dk/arne/articles/vmstd12.html#bas

> As for Restful, I have no experience.  But if you do the POST, you then
> have the reply which can be parsed and used.

With REST you sometimes chose to ignore the body in the reply to POST.

The REST convention for POST is that the request body contains the
new item to be added to collection and the reply body contain the
same item with any attributes added server side. But if the server
side is not adding any attributes, then there is no need to parse
the reply body as it then just contains the same as in the request
body.

Arne

Re: Restful API w/JSON client package or library on OpenVMS

<ustocp$1cr9p$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33730&group=comp.os.vms#33730

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Thu, 14 Mar 2024 02:45:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <ustocp$1cr9p$2@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
<ustlii$18ma1$1@dont-email.me> <ustmrr$18rqp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 14 Mar 2024 02:45:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a2351749b4eebd2a62c741e1ddb0aa2";
logging-data="1469753"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+UKylSUvocZJEBmexzL80b"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:LJKkxQQcNvDM2BHweEaNoDn+16Q=
 by: Lawrence D'Oliv - Thu, 14 Mar 2024 02:45 UTC

On Wed, 13 Mar 2024 22:19:39 -0400, Arne Vajhøj wrote:

> But since RESTful web services should not use session cookies ...

Why not? It’s a valid form of authentication.

Re: Restful API w/JSON client package or library on OpenVMS

<ut04p1$1tp3f$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33731&group=comp.os.vms#33731

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Thu, 14 Mar 2024 20:29:21 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ut04p1$1tp3f$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
<ustlii$18ma1$1@dont-email.me> <ustmrr$18rqp$1@dont-email.me>
<ustocp$1cr9p$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Mar 2024 00:29:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9657d08b5feaf3fe39ab55070c9f3caa";
logging-data="2024559"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SRTHNAwMlmvExyHii9VeEKL7nV6kee1Y="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rEtjthn2M0JvHYwqmLXKNl6jUiE=
In-Reply-To: <ustocp$1cr9p$2@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Fri, 15 Mar 2024 00:29 UTC

On 3/13/2024 10:45 PM, Lawrence D'Oliveiro wrote:
> On Wed, 13 Mar 2024 22:19:39 -0400, Arne Vajhøj wrote:
>> But since RESTful web services should not use session cookies ...
>
> Why not? It’s a valid form of authentication.

Sessions is a great idea for browsers communicating
with web applications. Session cookies may not be that
great, but they are better than the alternative URL
rewriting to support sessions.

But web services in general are different. RESTful web
services are very different. There is no general
purpose browser but a specific client application.
A RESTful service is stateless so it cannot keep a
session server side. Frequently the authorizing service
is different from the authorized service for modern web
services. Session cookies are not an option in that context.
There are plenty of alternatives. I believe that HTTP Authorization
header with "Bearer" type and JWT tokens are common.

Arne

Re: Restful API w/JSON client package or library on OpenVMS

<ut08cu$1ugmi$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33732&group=comp.os.vms#33732

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Fri, 15 Mar 2024 01:31:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <ut08cu$1ugmi$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
<ustlii$18ma1$1@dont-email.me> <ustmrr$18rqp$1@dont-email.me>
<ustocp$1cr9p$2@dont-email.me> <ut04p1$1tp3f$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Mar 2024 01:31:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="923cb71133c4c2bd336d691e5929520c";
logging-data="2048722"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NjzussKlCJQ2JSRnj9J61"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:pa5c1r1og6Nz5EgtX7tzym34RmI=
 by: Lawrence D'Oliv - Fri, 15 Mar 2024 01:31 UTC

On Thu, 14 Mar 2024 20:29:21 -0400, Arne Vajhøj wrote:

> A RESTful service is stateless so it cannot keep a
> session server side.

Who says it can’t?

> Frequently the authorizing service
> is different from the authorized service for modern web
> services. Session cookies are not an option in that context.

If a REST client is not a web browser, it doesn’t have to abide by web
browser security restrictions.

Re: Restful API w/JSON client package or library on OpenVMS

<ut0blq$1v3ah$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33733&group=comp.os.vms#33733

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Thu, 14 Mar 2024 22:27:05 -0400
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <ut0blq$1v3ah$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
<ustlii$18ma1$1@dont-email.me> <ustmrr$18rqp$1@dont-email.me>
<ustocp$1cr9p$2@dont-email.me> <ut04p1$1tp3f$1@dont-email.me>
<ut08cu$1ugmi$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Mar 2024 02:27:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9657d08b5feaf3fe39ab55070c9f3caa";
logging-data="2067793"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BTp4CCtRkvVIDJSL9OXMzkcP+GBk6UjM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:xGIL4Ec7TunlvpxOM3Q7fjh9L5s=
In-Reply-To: <ut08cu$1ugmi$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Fri, 15 Mar 2024 02:27 UTC

On 3/14/2024 9:31 PM, Lawrence D'Oliveiro wrote:
> On Thu, 14 Mar 2024 20:29:21 -0400, Arne Vajhøj wrote:
>> A RESTful service is stateless so it cannot keep a
>> session server side.
>
> Who says it can’t?

Fielding.

<quote>
5.1.3 Stateless

We next add a constraint to the client-server interaction: communication
must be stateless in nature, as in the client-stateless-server (CSS)
style of Section 3.4.3 (Figure 5-3), such that each request from client
to server must contain all of the information necessary to understand
the request, and cannot take advantage of any stored context on the
server. Session state is therefore kept entirely on the client.
</quote>

>> Frequently the authorizing service
>> is different from the authorized service for modern web
>> services. Session cookies are not an option in that context.
>
> If a REST client is not a web browser, it doesn’t have to abide by web
> browser security restrictions.

The client can do anything it wants to.

But using browser cookie HTTP headers for implementing
a different semantics than browsers do is the worst possible
design. Standards are good. Hacks are bad. Hacks that pretend
to look like standards are the worst.

Arne

Re: Restful API w/JSON client package or library on OpenVMS

<ut0e7u$2374m$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33734&group=comp.os.vms#33734

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Fri, 15 Mar 2024 03:10:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <ut0e7u$2374m$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
<ustlii$18ma1$1@dont-email.me> <ustmrr$18rqp$1@dont-email.me>
<ustocp$1cr9p$2@dont-email.me> <ut04p1$1tp3f$1@dont-email.me>
<ut08cu$1ugmi$1@dont-email.me> <ut0blq$1v3ah$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Mar 2024 03:10:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="923cb71133c4c2bd336d691e5929520c";
logging-data="2202774"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2wPUEHsjU6Yor4EjxvrAW"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:erwzKB/GHTGpLUOjuJyZVTLakhU=
 by: Lawrence D'Oliv - Fri, 15 Mar 2024 03:10 UTC

On Thu, 14 Mar 2024 22:27:05 -0400, Arne Vajhøj wrote:

> On 3/14/2024 9:31 PM, Lawrence D'Oliveiro wrote:
>
>> On Thu, 14 Mar 2024 20:29:21 -0400, Arne Vajhøj wrote:
>>
>>> A RESTful service is stateless so it cannot keep a
>>> session server side.
>>
>> Who says it can’t?
>
> Fielding.

Who is this “Fielding”?

>> If a REST client is not a web browser, it doesn’t have to abide by web
>> browser security restrictions.
>
> The client can do anything it wants to.
>
> But using browser cookie HTTP headers for implementing
> a different semantics than browsers do is the worst possible
> design.

Who says it has “different semantics than browsers do”?

Re: Restful API w/JSON client package or library on OpenVMS

<ut1hhb$29jl1$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33735&group=comp.os.vms#33735

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Fri, 15 Mar 2024 09:13:16 -0400
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <ut1hhb$29jl1$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
<ustlii$18ma1$1@dont-email.me> <ustmrr$18rqp$1@dont-email.me>
<ustocp$1cr9p$2@dont-email.me> <ut04p1$1tp3f$1@dont-email.me>
<ut08cu$1ugmi$1@dont-email.me> <ut0blq$1v3ah$1@dont-email.me>
<ut0e7u$2374m$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Mar 2024 13:13:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9657d08b5feaf3fe39ab55070c9f3caa";
logging-data="2412193"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5vMuPf4MVYImWyko5Mqz4bBdjeNNzi8Q="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:FZ2yYdq8a2RporFqdFkHpX5h7YM=
Content-Language: en-US
In-Reply-To: <ut0e7u$2374m$1@dont-email.me>
 by: Arne Vajhøj - Fri, 15 Mar 2024 13:13 UTC

On 3/14/2024 11:10 PM, Lawrence D'Oliveiro wrote:
> On Thu, 14 Mar 2024 22:27:05 -0400, Arne Vajhøj wrote:
>> On 3/14/2024 9:31 PM, Lawrence D'Oliveiro wrote:
>>> On Thu, 14 Mar 2024 20:29:21 -0400, Arne Vajhøj wrote:
>>>> A RESTful service is stateless so it cannot keep a
>>>> session server side.
>>>
>>> Who says it can’t?
>>
>> Fielding.
>
> Who is this “Fielding”?

Roy Fielding - the guy that defined REST.

Arne

Re: Restful API w/JSON client package or library on OpenVMS

<ut2cmd$2fd1e$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33736&group=comp.os.vms#33736

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Fri, 15 Mar 2024 20:56:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <ut2cmd$2fd1e$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
<ustlii$18ma1$1@dont-email.me> <ustmrr$18rqp$1@dont-email.me>
<ustocp$1cr9p$2@dont-email.me> <ut04p1$1tp3f$1@dont-email.me>
<ut08cu$1ugmi$1@dont-email.me> <ut0blq$1v3ah$1@dont-email.me>
<ut0e7u$2374m$1@dont-email.me> <ut1hhb$29jl1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Mar 2024 20:56:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="923cb71133c4c2bd336d691e5929520c";
logging-data="2602030"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FtcZ8HakOUPmGDpRbanYo"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:y90NdVC7u3JXB4+9RFJmvd5ADlc=
 by: Lawrence D'Oliv - Fri, 15 Mar 2024 20:56 UTC

On Fri, 15 Mar 2024 09:13:16 -0400, Arne Vajhøj wrote:

> On 3/14/2024 11:10 PM, Lawrence D'Oliveiro wrote:
>>
>> On Thu, 14 Mar 2024 22:27:05 -0400, Arne Vajhøj wrote:
>>>
>>> On 3/14/2024 9:31 PM, Lawrence D'Oliveiro wrote:
>>>>
>>>> On Thu, 14 Mar 2024 20:29:21 -0400, Arne Vajhøj wrote:
>>>>>
>>>>> A RESTful service is stateless so it cannot keep a session server
>>>>> side.
>>>>
>>>> Who says it can’t?
>>>
>>> Fielding.
>>
>> Who is this “Fielding”?
>
> Roy Fielding - the guy that defined REST.

I would say his original vision suffered from ... a lack of imagination.

Re: Restful API w/JSON client package or library on OpenVMS

<20240317120923.00005261@yahoo.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33737&group=comp.os.vms#33737

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: already5chosen@yahoo.com (Michael S)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Sun, 17 Mar 2024 12:09:23 +0200
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <20240317120923.00005261@yahoo.com>
References: <ust9ls$16b03$1@dont-email.me>
<usth0f$17t0a$1@dont-email.me>
<ustlii$18ma1$1@dont-email.me>
<ustmrr$18rqp$1@dont-email.me>
<ustocp$1cr9p$2@dont-email.me>
<ut04p1$1tp3f$1@dont-email.me>
<ut08cu$1ugmi$1@dont-email.me>
<ut0blq$1v3ah$1@dont-email.me>
<ut0e7u$2374m$1@dont-email.me>
<ut1hhb$29jl1$1@dont-email.me>
<ut2cmd$2fd1e$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: dont-email.me; posting-host="fd62a22e31fcf9828d4eedf77229489a";
logging-data="3610420"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1hn7BI+qT0sluQa28mQ99wwRyMTobq/g="
Cancel-Lock: sha1:g+QluBYeimQe0fXV7Jt2KF6lbXU=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
 by: Michael S - Sun, 17 Mar 2024 10:09 UTC

On Fri, 15 Mar 2024 20:56:45 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:

> On Fri, 15 Mar 2024 09:13:16 -0400, Arne Vajhøj wrote:
>
> > On 3/14/2024 11:10 PM, Lawrence D'Oliveiro wrote:
> >>
> >> On Thu, 14 Mar 2024 22:27:05 -0400, Arne Vajhøj wrote:
> >>>
> >>> On 3/14/2024 9:31 PM, Lawrence D'Oliveiro wrote:
> >>>>
> >>>> On Thu, 14 Mar 2024 20:29:21 -0400, Arne Vajhøj wrote:
> >>>>>
> >>>>> A RESTful service is stateless so it cannot keep a session
> >>>>> server side.
> >>>>
> >>>> Who says it can’t?
> >>>
> >>> Fielding.
> >>
> >> Who is this “Fielding”?
> >
> > Roy Fielding - the guy that defined REST.
>
> I would say his original vision suffered from ... a lack of
> imagination.

I'd guess that limitation of the damage caused by too imaginative
developers was the main point behind REST.

Re: Restful API w/JSON client package or library on OpenVMS

<ut7m1m$3o0fg$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33739&group=comp.os.vms#33739

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Sun, 17 Mar 2024 21:07:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <ut7m1m$3o0fg$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <usth0f$17t0a$1@dont-email.me>
<ustlii$18ma1$1@dont-email.me> <ustmrr$18rqp$1@dont-email.me>
<ustocp$1cr9p$2@dont-email.me> <ut04p1$1tp3f$1@dont-email.me>
<ut08cu$1ugmi$1@dont-email.me> <ut0blq$1v3ah$1@dont-email.me>
<ut0e7u$2374m$1@dont-email.me> <ut1hhb$29jl1$1@dont-email.me>
<ut2cmd$2fd1e$1@dont-email.me> <20240317120923.00005261@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 17 Mar 2024 21:07:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b5c3033c9cb89f318b807c840903d225";
logging-data="3932656"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190GfvZSd8vylupx8YmJqLK"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:yzBIcVrbEWgYi08P3jmJKARbCd0=
 by: Lawrence D'Oliv - Sun, 17 Mar 2024 21:07 UTC

On Sun, 17 Mar 2024 12:09:23 +0200, Michael S wrote:

> I'd guess that limitation of the damage caused by too imaginative
> developers was the main point behind REST.

Some of us noticed that REST is just a rebranding of HTTP, and are
treating it accordingly.

Re: Restful API w/JSON client package or library on OpenVMS

<utdn9f$1a4o1$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33741&group=comp.os.vms#33741

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: usenet@cropcircledogs.com (Richard Jordan)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Tue, 19 Mar 2024 23:05:01 -0500
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <utdn9f$1a4o1$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Mar 2024 04:05:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0594d20a859c9b4f43268fcc211235f1";
logging-data="1381121"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bqFZnLhwoBEDMZFSGhBM8"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1b/Mr0rNH/9xOeX5cto25KaVSI8=
In-Reply-To: <ust9ls$16b03$1@dont-email.me>
Content-Language: en-US
 by: Richard Jordan - Wed, 20 Mar 2024 04:05 UTC

On 3/13/24 5:34 PM, Richard Jordan wrote:
> One of our customers currently on VSI VMS on Integrity has been using
> the GSOAP kit from HP as a client to communicate with a third party app
> on windows server.  The company making that product is dropping
> SOAP/GSOAP and moving to only support JSON-based Restful API.
>
> I see several items that purport to provide a Restful API for 'server'
> side use on VMS, like WSIT from VSI.  Client mentions seem to be
> relegated to other platforms.  Other options seem to be the same; server
> only.
>
> Are there any packages, callable libraries, "Netlib" like options, etc
> that would allow VMS programs to access restful API servers?  Whether
> its encapsulation like the GSOAP kits, or just linking in a callable
> library of routines?
>
> Major props if it can be called from BASIC without intervening C or
> other language.
>
> Is VMS Python an option since it looks like Restful API is supported by
> recent versions of that language on VMS?  I assume we'd have to get
> BASIC to talk to Python to do the communications in that case...
>
> Thanks for any suggestions or info.

Thanks for the responses. Got a little more info; where the current
GSoap implementation is done to the vendor software running on a local
server; the new one is cloud (O frabjous day! Callooh! Callay!) so the
connection is done to a public server with no reasonable option to set
up a test account so we can create the software to talk to it on VMS.

I may find something that can run as a generic server on one of the
customer's pc servers so we can test doing 'generic' restful but we'll
see. More likely we'll end up with some middleware on a local pc server
talking to the vendor cloud, and relaying requests from VMS.

Re: Restful API w/JSON client package or library on OpenVMS

<uteij4$1fhmo$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33742&group=comp.os.vms#33742

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 20 Mar 2024 07:51:01 -0400
Organization: A noiseless patient Spider
Lines: 77
Message-ID: <uteij4$1fhmo$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <utdn9f$1a4o1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Mar 2024 11:51:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a7e099f1e9bc6facfde734d93fbc2669";
logging-data="1558232"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qVti78zmpxRU/FTkCBRFQQO1jPuP/CBg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Di3AaJ0aufXkuvqWjpo7ck94TNk=
Content-Language: en-US
In-Reply-To: <utdn9f$1a4o1$1@dont-email.me>
 by: Arne Vajhøj - Wed, 20 Mar 2024 11:51 UTC

On 3/20/2024 12:05 AM, Richard Jordan wrote:
> On 3/13/24 5:34 PM, Richard Jordan wrote:
>> One of our customers currently on VSI VMS on Integrity has been using
>> the GSOAP kit from HP as a client to communicate with a third party
>> app on windows server.  The company making that product is dropping
>> SOAP/GSOAP and moving to only support JSON-based Restful API.
>>
>> I see several items that purport to provide a Restful API for 'server'
>> side use on VMS, like WSIT from VSI.  Client mentions seem to be
>> relegated to other platforms.  Other options seem to be the same;
>> server only.
>>
>> Are there any packages, callable libraries, "Netlib" like options, etc
>> that would allow VMS programs to access restful API servers?  Whether
>> its encapsulation like the GSOAP kits, or just linking in a callable
>> library of routines?
>>
>> Major props if it can be called from BASIC without intervening C or
>> other language.
>>
>> Is VMS Python an option since it looks like Restful API is supported
>> by recent versions of that language on VMS?  I assume we'd have to get
>> BASIC to talk to Python to do the communications in that case...
>>
>> Thanks for any suggestions or info.
>
> Thanks for the responses.  Got a little more info; where the current
> GSoap implementation is done to the vendor software running on a local
> server; the new one is cloud (O frabjous day! Callooh! Callay!) so the
> connection is done to a public server

From the client programming perspective it does not matter whether
the HTTP goes over 1000 inches of wire or 1000 miles of wire.

External cloud means that the network team need to open the firewalls
for this specific outbound traffic, but they must be doing that for
other traffic already so no big deal.

> with no reasonable option to set
> up a test account so we can create the software to talk to it on VMS.

No test system is a problem.

But:
* "usually" documentation for RESTful web services contains request
and response examples and if this one does then creating a server
simulator is easy
* a "well behaved" RESTful service does not change any state for
GET requests, so if that is the case then GET requests can be tested
against the real server (unless data privacy prevents test on real
data)

And this problem is not VMS specific. Any client in any language on
any OS will have this problem.

> I may find something that can run as a generic server on one of the
> customer's pc servers so we can test doing 'generic' restful but we'll
> see.

If you just need to play a little with RESTful web service then
any system is fine to host including your VMS system.

> More likely we'll end up with some middleware on a local pc server
> talking to the vendor cloud, and relaying requests from VMS.

That is obviously possible.

But that middleware could run on VMS as well.

Running on those Linux/Windows server greatly increases the
number of tools/frameworks/libraries available, but it could
run on VMS.

Arne

Re: Restful API w/JSON client package or library on OpenVMS

<utf16p$1iojq$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33744&group=comp.os.vms#33744

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: davef@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 20 Mar 2024 12:00:39 -0400
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <utf16p$1iojq$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <utdn9f$1a4o1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 16:00:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="12aa767ebd8ebe9f1bcd4e261fe0ac84";
logging-data="1663610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BREDWm/eotVAM5SKZSeZkUaImETvO5d8="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:4kz5d0U1qB0HOkuBOhdfW5WUIuQ=
In-Reply-To: <utdn9f$1a4o1$1@dont-email.me>
 by: Dave Froble - Wed, 20 Mar 2024 16:00 UTC

On 3/20/2024 12:05 AM, Richard Jordan wrote:
> On 3/13/24 5:34 PM, Richard Jordan wrote:
>> One of our customers currently on VSI VMS on Integrity has been using the
>> GSOAP kit from HP as a client to communicate with a third party app on windows
>> server. The company making that product is dropping SOAP/GSOAP and moving to
>> only support JSON-based Restful API.
>>
>> I see several items that purport to provide a Restful API for 'server' side
>> use on VMS, like WSIT from VSI. Client mentions seem to be relegated to other
>> platforms. Other options seem to be the same; server only.
>>
>> Are there any packages, callable libraries, "Netlib" like options, etc that
>> would allow VMS programs to access restful API servers? Whether its
>> encapsulation like the GSOAP kits, or just linking in a callable library of
>> routines?
>>
>> Major props if it can be called from BASIC without intervening C or other
>> language.
>>
>> Is VMS Python an option since it looks like Restful API is supported by recent
>> versions of that language on VMS? I assume we'd have to get BASIC to talk to
>> Python to do the communications in that case...
>>
>> Thanks for any suggestions or info.
>
> Thanks for the responses. Got a little more info; where the current GSoap
> implementation is done to the vendor software running on a local server; the new
> one is cloud (O frabjous day! Callooh! Callay!) so the connection is done to a
> public server with no reasonable option to set up a test account so we can
> create the software to talk to it on VMS.
>
> I may find something that can run as a generic server on one of the customer's
> pc servers so we can test doing 'generic' restful but we'll see. More likely
> we'll end up with some middleware on a local pc server talking to the vendor
> cloud, and relaying requests from VMS.

Well, not sure how much you want to get into things. But, if you're going to
implement something, why put some PC in the middle of things. It's rather
simple to do from VMS.

At the bottom of whatever is used is, wait for it, a socket. Simple socket
communications. Add SSL/TLS for encryption.

I'm not looking at your requirements, but, I'd bet that HTTPS is used. After
that, it's just what happens to the data.

Isn't data manipulation what we do?

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: Restful API w/JSON client package or library on OpenVMS

<utf7og$1kbu8$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33745&group=comp.os.vms#33745

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: seaohveh@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 20 Mar 2024 13:52:16 -0400
Organization: HoffmanLabs LLC
Lines: 83
Message-ID: <utf7og$1kbu8$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <utdn9f$1a4o1$1@dont-email.me> <utf16p$1iojq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="ab6fd5627c1b0ffdd7b21250b10a5640";
logging-data="1716168"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/47woQqBoGG6Q12jqxIHWWOM+e1hgnd3c="
User-Agent: Unison/2.2
Cancel-Lock: sha1:aIny1cwhbUUvCabktT8IT3JW0/Q=
 by: Stephen Hoffman - Wed, 20 Mar 2024 17:52 UTC

On 2024-03-20 16:00:39 +0000, Dave Froble said:

> On 3/20/2024 12:05 AM, Richard Jordan wrote:
>>
>> Thanks for the responses. Got a little more info; where the current
>> GSoap implementation is done to the vendor software running on a local
>> server; the new one is cloud (O frabjous day! Callooh! Callay!) so the
>> connection is done to a public server with no reasonable option to set
>> up a test account so we can create the software to talk to it on VMS.
>>
>> I may find something that can run as a generic server on one of the
>> customer's pc servers so we can test doing 'generic' restful but we'll
>> see. More likely we'll end up with some middleware on a local pc server
>> talking to the vendor cloud, and relaying requests from VMS.
>
> Well, not sure how much you want to get into things. But, if you're
> going to implement something, why put some PC in the middle of things.
> It's rather simple to do from VMS.
>
> At the bottom of whatever is used is, wait for it, a socket. Simple
> socket communications. Add SSL/TLS for encryption.
>
> I'm not looking at your requirements, but, I'd bet that HTTPS is used.
> After that, it's just what happens to the data.
>
> Isn't data manipulation what we do?

The source of annoyance for some reading here is that the available
native libraries are somewhere between unhelpful and ineffective, just
as soon as you need to interoperate with most anything else from the
past decade or two. Yeah, I can do all of this in VAX MACRO32 too, but
~nobody willingly chooses that path.

This annoyance particularly when we remember VAX/VMS was once the box
that was commonly used to connect everything else together. Too many of
us are now using other boxes to network OpenVMS to anything else. Use
of a middle box is already discussed in this thread, too.

Python and some other choices are likely the furthest along for this
general REST task, but the "traditional" OpenVMS languages and OpenVMS
RTLs are pre-millennially-less-than-entirely-useful, at best. As Dave
is well aware, TLS support is trailing, too.

In this case, lib$table_parse would be one path for rolling your own
communications implementation locally.

libcurl might be interesting and useful here within the lib$table_parse
action routines or within the context of some other finite state
machine, if not using TLS directly.

Some libcurl examples: https://curl.se/libcurl/c/http-post.html and
https://curl.se/libcurl/c/https.html and ilk, and some options:
https://curl.se/libcurl/competitors.html

cJSON was ported: https://www.vajhoej.dk/arne/opensource/ and JSON-C is
reportedly easily ported: https://github.com/json-c/json-c

Definitely go with a FSM design, here. Trying to code these tasks using
a OpenVMS classic procedural imperative style (and particularly without
an FSM) and nested if and the rest (no pun intended) just gets ugly and
gnarly.

The whole OpenVMS development environment is unfortunately far too
close to using a crayon in recent years, as compared with other
platform choices. But then, lib$table_parse is certainly one of the
remaining very useful built-in features.

The network connection testing here can potentially use MITMProxy or
ilk, assuming the remote server doesn't have a sandbox for testing
apps. https://mitmproxy.org You'll need to load some certificates to
allow MITMProxy access into the connection.

Porting Apache Serf and Apache APR via VSI SWS might be an alternative
to libcurl, but that's almost certainly going to be more involved
porting than using libcurl. And libcurl is already ported:
https://vmssoftware.com/products/curl/

Or use that middle box, of course.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: Restful API w/JSON client package or library on OpenVMS

<utf9ii$1kqtk$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33746&group=comp.os.vms#33746

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Restful API w/JSON client package or library on OpenVMS
Date: Wed, 20 Mar 2024 14:23:13 -0400
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <utf9ii$1kqtk$1@dont-email.me>
References: <ust9ls$16b03$1@dont-email.me> <utdn9f$1a4o1$1@dont-email.me>
<utf16p$1iojq$1@dont-email.me> <utf7og$1kbu8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Mar 2024 18:23:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a7e099f1e9bc6facfde734d93fbc2669";
logging-data="1731508"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gm9aE1pf3zzEKfBFfCurYhPo13ACVqkg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:DK+N0pTaylVTtcbg8xaRlxCjopY=
Content-Language: en-US
In-Reply-To: <utf7og$1kbu8$1@dont-email.me>
 by: Arne Vajhøj - Wed, 20 Mar 2024 18:23 UTC

On 3/20/2024 1:52 PM, Stephen Hoffman wrote:
> On 2024-03-20 16:00:39 +0000, Dave Froble said:
>> On 3/20/2024 12:05 AM, Richard Jordan wrote:
>>> Thanks for the responses.  Got a little more info; where the current
>>> GSoap implementation is done to the vendor software running on a
>>> local server; the new one is cloud (O frabjous day! Callooh! Callay!)
>>> so the connection is done to a public server with no reasonable
>>> option to set up a test account so we can create the software to talk
>>> to it on VMS.
>>>
>>> I may find something that can run as a generic server on one of the
>>> customer's pc servers so we can test doing 'generic' restful but
>>> we'll see. More likely we'll end up with some middleware on a local
>>> pc server talking to the vendor cloud, and relaying requests from VMS.
>>
>> Well, not sure how much you want to get into things.  But, if you're
>> going to implement something, why put some PC in the middle of things.
>> It's rather simple to do from VMS.
>>
>> At the bottom of whatever is used is, wait for it, a socket.  Simple
>> socket communications.  Add SSL/TLS for encryption.
>>
>> I'm not looking at your requirements, but, I'd bet that HTTPS is used.
>> After that, it's just what happens to the data.

> The source of annoyance for some reading here is that the available
> native libraries are somewhere between unhelpful and ineffective, just
> as soon as you need to interoperate with most anything else from the
> past decade or two. Yeah, I can do all of this in VAX MACRO32 too, but
> ~nobody willingly chooses that path.

> Python and some other choices are likely the furthest along for this
> general REST task, but the "traditional" OpenVMS languages and OpenVMS
> RTLs are pre-millennially-less-than-entirely-useful, at best. As Dave is
> well aware, TLS support is trailing, too.

Side note: Java is also a relevant choice on VMS. Or more
accurate: JVM languages are also a relevant choice on VMS,
if one happens to like Groovy or Kotlin or Scala better than
Java (I suspect Groovy is most relevant for the task).

It is true that the traditional/native VMS languages
are not good at this.

But one should note that on Windows/Linux then the
majority of this type of stuff is not done in
native code either, but in Java/Groovy/Kotlin/Scala, Python,
PHP, C#/VB.NET etc..

It is not just that VMS RTL's does not come with
builtin HTTP(S) and JSON support, but just as much
that VMS applications are almost entirely in native code
while on other platforms the majority of business
applications are now in non-native code.

Arne

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor