Different urls to same ws?

  • Thread starter Jukka Kenttälä
  • Start date
J

Jukka Kenttälä

Hi!

We are developing a web service that needs to use several
databases (each company that uses this web service has
their own database). Is it possible to create a different
url for each database and still use the same web service?

Is it possible to have company 'A' use web services by
referencing http://www.xxx.fi/A/service1.asmx?wdsl and
company 'B' using http://www.xxx.fi/B/service1.asmx?wdsl ?

And if we can somehow use different urls then how can we
tell in web service code which url the request came from?

Thanks in advance.
 
M

MSFT

Hello,

From the description, you want to access a web service from different URL.
To achieve this, we can store the web service related files in a physical
folder, for example c:\webservice. In IIS, we can create multiple virtual
folder to the physical folder, for example, webserviceA and webserviceB.
And the web service can be access with:

http://www.xxx.fi/webserviceA/service1.asmx?wdsl
http://www.xxx.fi/webserviceB/service1.asmx?wdsl

In the web service, you can distinguish the request from different url with
following string:

Context.Request.Path

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top