Web Connection User Discussions
Making Web Connection Service public
Gravatar is a globally recognized avatar based on your email address. Making Web Connection Service public
  Ganga
  All
  Jan 3, 2022 @ 10:50am

Happy, Safe and Prosperous New Year to All!

I have recently downloaded the Web Connection shareware version and enjoy learning about REST Webservices.

How do I make an end point public that was added to webprocess.prg. Eg: Function CustomerListJson is accessed via http://localhost/WebDemo/CustomerListJson.wp url. I would like to have someone else get the JSON response from this endpoint by sending a request. Currently it only works in my computer. I like to learn how this works in real world by making it public. Is there a way to replace "localhost" with some public url and test this without making things too complicated?

I am very new to these concepts, please assist me.

Thanks - Ganga

Gravatar is a globally recognized avatar based on your email address. re: Making Web Connection Service public
  Rick Strahl
  Ganga
  Jan 3, 2022 @ 01:16pm

You have to publish your application on a Web Server that is publically accessible. A hosting service - most likely a Virtual Machine Provider Service like Vultr.

Otherwise the process is very similar to how it works on your local machine.

More info in the documentation:

Deploying your Web Connection Application

For a more detailed walk through of creating a virtual machine, configuring and getting an application ready there's a white paper from a couple of years ago:

Deploying and Configuring Web Connection Applications

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Making Web Connection Service public
  Ganga
  Rick Strahl
  Jan 3, 2022 @ 01:59pm

Thanks Rick for all the guidance and reference materials!

I will take a look at them.

Thanks - Ganga

Gravatar is a globally recognized avatar based on your email address. re: Making Web Connection Service public
  Carl Chambers
  Ganga
  Jan 4, 2022 @ 12:40pm

Hi Ganga,

If you only want to show a particular person the response for demo purposes as opposed to making the site truly public, you can use tunneling software such as ngrok to enable that person you access your local dev machine as if it were a published site.

Carl

© 1996-2024