Multiple Web Services and Credentials

K

Kelly Elias

I have two webservices. I would like the first one to call the second. But I
am getting a 401 access denied error returned from IIS.

The first web service does impersonation and it works correctly, when it
calls the second web service it doesn't pass any credentials so the web
server denies the request because the user is anonymous.

How can you build your web services so that they can call each other on an
IIS server that DOES NOT allow anonymous access?
 
D

Dilip Krishnan

Hello Kelly,

Before you call the second ws you need to pass the credentials to the
proxy. There is a method on the proxy that allows you to set the client credentials.
Also you should try setting impersonate true on the second one aswell
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
 

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

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top