I must've been not quite clear...
there's the scenario:
myWinFormApp
{
myWebservice WS1;
bool myWinFormApp.Auth(userID)
{
return ws1.auth(userid);
}
}
myWebService
{
myWebService ws2;
[Webmethod...]
public bool Auth(userid)
{
if (localServer is defined)
return local Auth(userid)
else
return ws2.Auth(userid) //in the web.config there is a custom
key: "remote server" (made at install)
// and the webservice on that "remote server" is called to authorize the
user if the local one is not defined
}
}
that's the issue: how can I call the webservice on a particular server
(refered to by IP/DNS name)
"Dilip Krishnan" <Di***********@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
You sure can. All you got to do is create a web reference and use the
proxy to call the other web service
"Bamse" wrote:
Hi all,
The problem is as follows:
I need to authorize a user: through a WS; if a setting is on, the
webservice will look in the local "database", if the setting is off it will connect
to the server ip that is set in the configuration and call the same WS to
check the user in the remote "database".
So far I don't know if I can call a webservice method from a webservice
method...
Is there a such way?
Thank you,
Daniel