Page 1 of 1

webRPC : more information ?

Posted: 21 Aug 2015 15:32
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 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.

Posted: 22 Aug 2015 19:06
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

Posted: 24 Aug 2015 9:43
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 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:

Posted: 24 Aug 2015 10:27
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.

Posted: 24 Aug 2015 13:55
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.

Posted: 31 Aug 2015 7:49
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.

Posted: 31 Aug 2015 13:53
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 ?

Posted: 1 Sep 2015 19:43
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.

Posted: 28 Sep 2015 11:10
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

Posted: 29 Sep 2015 8:36
by Thomas Linder Puls
Very impressive (though I don't know what it does ;-)).

Posted: 30 Sep 2015 17:06
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.