kennethdk
kennethdk

Reputation: 53

Cross server webservice using ajax

Hi stackoverflow users.

My server setup is the following: A webserver with access on http/80 running www.domain.com A app server with access to the internal network (db etc.) running a webservice

I have this simple little server setup problem.

Now I want to call my webservice from a ajax script from a website on my webserver. But since my application server does not have access to the internet this will (in my mind) not be possible since the javascript (running in the end-users browser) shoud have access to that webservice.

I came up with the solution by inventing a webservice on the webserver calling the webservice on my application server, but thats a odd solution, does any of you have a idea how to solve this?

Upvotes: 4

Views: 160

Answers (2)

Davin Tryon
Davin Tryon

Reputation: 67336

If I understand correctly, you are just just using a webservice as a proxy through some network firewalls. There are tools that will do this for you, however, if you are running a simple service, then I don't see a problem with your setup.

One such tool for IIS is Application Request Routing

Upvotes: 0

Amar Palsapure
Amar Palsapure

Reputation: 9680

I don't think you can do this. You will have to provide some thing on WebServer using which end user can access your App Server.

You have multiple options for this

  • PageMethods
  • Web Services on WebServer which will relay ajax calls to the App Server

Hope this info helps you.

Upvotes: 2

Related Questions