Discussions related to Visual Prolog
dominique f pannier
Active Member
Posts: 40
Joined: 23 Sep 2002 23:01

webRPC : more information ?

Unread post by dominique f pannier »

Hello,
I'd like to get more information about using IIS and the isapi dll.
I'm not at all familiar with IIS and appreciate the step-by-step explanation given in http://wiki.visual-prolog.com/index.php ... figuration that I followed exactly - except for the name webRCP that I replaced by webRPC), and also the http://wiki.visual-prolog.com/index.php ... b_Services page.
I'm using windows 10 and then IIS 10.0., and created the webRPC folder in the root C:\ with the jsonRpcService_isApi and Web folders like in the webRPC folder of the examples.

In order to test the application, I followed what was written in the IIS article :
For the example the path http://localhost/webRPC/jsonrpc should run the jsonRpcService_isApi ISAPI dll.

And then I run this path in the address box of EDGE. I did that on two machines :
- on the first one, running windows 10 home, the result was HTTP error 503 : server unavailable.
- on the second one, running windows 10 pro, the result was HTTP error 501 : this website cannot, now and in the future, display the requested page.

Is it the right way for the test ?
What should I get instead of these error messages ?
In the jsonRpcClient project, I see that the URL is the same one but with a server path different, and is followed by a POST request. How to do that with IIS ?

Thanks for your help.
Regards
Dominique Pannier
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

I have obviously misspelled webRPC, when I made the images.

With your spelling you should be able to load the files
  • http::/localhost/webRPC/test.htm
  • http::/localhost/webRPC/calendarhtm
Regards Thomas Linder Puls
PDC
dominique f pannier
Active Member
Posts: 40
Joined: 23 Sep 2002 23:01

Unread post by dominique f pannier »

Thank you for this information, Thomas.

But don't you think it would be better to indicate, in your tutorialhttp://wiki.visual-prolog.com/index.php ... figuration, for people like me who are really unfamiliar with IIS or who forgot how it runs, that the folder webRPC must not be placed directly in C:\, like we can believe when reading
The Alias defines name relative to the Path in the WEB, and Physical path defines the disk location that this path corresponds to, in this case http://localhost/webRPC will correspond to C:\webRPC\web, which is where the html, css and JavaScript files for the example are placed (in my case)
but in C:\inetpub\wwwroot.

When running in the first configuration, I received on the Windows 10 pro OS release , in additionnal information of the error, that the waited phycical Path was C:\inetpub\wwwroot\webRPC\test.htm.
I corrected my error by relocating the folder, all is now working well ! :wink:
Regards
Dominique Pannier
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

You can place the folder anywhere you like. I placed it exactly where it is placed on the images and ran it afterwards.

In fact, you may get some kind of confusion if placing it below c:\inetpub\wwwroot, because that folder is already configured for other things in IIS.
Regards Thomas Linder Puls
PDC
dominique f pannier
Active Member
Posts: 40
Joined: 23 Sep 2002 23:01

Unread post by dominique f pannier »

Yes,

I reinstalled IIS on widows 10 pro and followed again your configuration in C:\, without writing anything in C:\inetpub\wwwroot, and it is now running well.

Since a week, I got fast each day a Windows update; I suppose that I was the reason for which it was not running at the first try.
Regards
Dominique Pannier
User avatar
drspro2
VIP Member
Posts: 97
Joined: 28 Apr 2006 12:03

Unread post by drspro2 »

hi,

it should also work with Apache windows webserver ( can be found in Xampp lite and Xampp) , i think that is maybe easier to configure.
dominique f pannier
Active Member
Posts: 40
Joined: 23 Sep 2002 23:01

Unread post by dominique f pannier »

Hi,
If you follow step by step the tutorial with the right OS (which can run IIS), it's easy. But it could also be interesting, because on my machine with Windows 10 home, on which I'm building my projects, IIS does not run, and I'm usin wampServer.
Did you try ? And if yes, how to install the dll ?
Regards
Dominique Pannier
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

You should notice that you can also run a web service without WEB server at all. The example in jsonRpcService_httpApi does the same as the jsonRpcService_isApi without involving a WEB server.

Running without a WEB server also involves some configuration using netsh.

See Web_Services#Stand-alone_HTTP_server.
Regards Thomas Linder Puls
PDC
User avatar
drspro2
VIP Member
Posts: 97
Joined: 28 Apr 2006 12:03

Unread post by drspro2 »

hi,

i created this web service with visual-prolog, javascript and html5,

i have tested it now on most browsers on windows vista,

also tested on Iexplore 10 on windows 7,

tested on Ipad safari and Chrome,

- on iphone,


this version opens often new windows because this works good on tablets,

http://www.sportenmuziek.nl/testsystem.htm
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

Very impressive (though I don't know what it does ;-)).
Regards Thomas Linder Puls
PDC
User avatar
drspro2
VIP Member
Posts: 97
Joined: 28 Apr 2006 12:03

Unread post by drspro2 »

hi,

the last time i tested google translate, the translation almost seemed perfect,
with that i assume that i should be able to translate the whole application to english iin not too much time.

so i will try to do that soon.
Post Reply