Re: Calling Web Service that calls other Web Service with Windows Authentication



the second web service must be on the same server as the first web service
for this to work.

if its on a different server, then you must switch to basic or Kerberos
authentication.

-- bruce (sqlwork.com)

"Balasubramanian Ramanathan" <rbsubramanian@xxxxxxxxxxx> wrote in message
news:u8keF08jGHA.836@xxxxxxxxxxxxxxxxxxxxxxx
you can do this...

In webservice1 code behind you will be creating the reference object of
the second webservice.

There you can specify whet credential you have to use when calling web
service2.
for example

WebService2 ws = new WebService2();
ws.Credentials = ................

and call the 2nd web service..

since be default webservice2 will be called with the credential of asp.net
worker process you will be gettting this error.

Hope this helps

<manuelserpabrandao@xxxxxxxxx> wrote in message
news:1150300478.879897.254470@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all


I would like to now the answer to the following problem, if someone can

help.


Given a windows application client that's calling a web service (using
default credentials) the
web service gets invoked fine with the users credentials. However they
need
to call a second web service from the first one. When it hits the
second web
service, the web service (even though configured correctly) always
reports (401) Unauthorized.


Is there any possibility to do this or is impossible ?


Is possible to implement any workaround for this problem ?


Thanks in advance


Manuel Brandão




.



Relevant Pages

  • Re: Calling Web Service that calls other Web Service with Windows Authentication
    ... There you can specify whet credential you have to use when calling web ... WebService2 ws = new WebService2; ... Given a windows application client that's calling a web service (using ... web service gets invoked fine with the users credentials. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Credentials across multiple web service boundaries
    ... > web service gets invoked fine with the users credentials. ... > to call a second web service from the first one. ... it can't pass along the original client's credentials. ... NTLM authentication is limited to one-hop; ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Remoting Question
    ... You are absolutely correct that web service ... > you data access component, you should host it under COM+ and utilize ... >> Suppose I have one ASP.NET Web application that accesses a SQL Server on ... >> choice for accessing the database from the second Web application? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Credentials across multiple web service boundaries
    ... Given a client that's calling a web service (using default credentials) the ... to call a second web service from the first one. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Credentials across multiple web service boundaries
    ... Given a client that's calling a web service (using default credentials) the ... to call a second web service from the first one. ...
    (microsoft.public.dotnet.framework.webservices)