Webservice gateway using ajax

Hi, users of stackoverflow.

My server setup is as follows: Web server with access to http / 80, running on www.domain.com Application server with access to the internal network (db, etc.) Using webservice

I have this simple problem with server setup.

Now I want to call my web service from ajax script from a website on my web server. But since my application server does not have access to the Internet, this will (in my opinion) be impossible, since javascript (works in the end-user browser) has access to this web service.

I came up with a solution by inventing a web service on a web server that calls a web service on my application server, but this is a weird solution. Do any of you have an idea how to solve this?

+4
source share
2 answers

I do not think you can do this. You will need to provide something on WebServer using an end user who can access your application server.

You have several options for this.

  • PageMethods
  • Web services on WebServer that will relay ajax calls to the application server

I hope this information helps you.

+2
source

If I understand correctly, you are simply using webservice as a proxy server through some network firewalls. However, there are tools that will do this for you, if you use a simple service, then I do not see a problem with your setup.

One such tool for IIS is Application Request Routing

0
source

Source: https://habr.com/ru/post/1397778/


All Articles