Discussions related to Visual Prolog
sbishop61
Posts: 14
Joined: 9 May 2021 9:55

OpenAPI client interface builder

Unread post by sbishop61 »

On the offchance, has anyone built an easy way to generate VIP classes to call an OpenAPI server?
User avatar
Thomas Linder Puls
VIP Member
Posts: 1418
Joined: 28 Feb 2000 0:01

Re: OpenAPI client interface builder

Unread post by Thomas Linder Puls »

We have not made such a generator.

But the actual calling of any web server is relatively simple using an iXMLHTTPRequest or an iServerXMLHTTPRequest2 object:

Code: Select all

class msxml_HTTP_api     [generated, feature("Commercial Edition")]   predicates     newServerXMLHTTP60 : () -> iServerXMLHTTPRequest2 IServerXMLHTTPRequest2.     newXMLHTTP60 : () -> iXMLHTTPRequest IXMLHTTPRequest.   end class msxml_HTTP_api
In our examples you can study the ...\webService\jsonRpcClient.
Regards Thomas Linder Puls
PDC
Post Reply