Web service call using http context credentials 

Web service call using http context credentials 

Hi, i need a little help to do this. I tried some ways, using Enhanced Web Services.

My portal receives calls in an intranet, using integrated authentication of AD users. The necessary information is loaded from a WCF web service with an authentication layer, with this config:

        <binding maxReceivedMessageSize="2147483647">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows"/>

If i use Enhanced Web Services and set an credential ( user / pass ) the call works, otherwise i receive an 401 error! No permissions.

The goal will be to pass the user network credentials, who called the web page, because the web service catch the user name and responds differently to each one.
In code:
Service.TestWS serv = new Service.TestWS(); 
serv.Credentials = System.Net.CredentialCache.DefaultCredentials;

It this possible? Use, the user credential in http context to call a web service? 

tanks in advance :)
did you figure out how to do this?

Should be easy,
Make sure your screen that you need has the Integrated authentication property selected and the in your web reference set it as well.

The platform will automatically pass the credentials in the web reference call.

João Rosado
Thank you Joao. It works now in IE but not Chrome.

I had integrated authenticaiton set at the flow level but had to set it for every page that calls the web service.

I had integrated authentication set for the web service reference but there was a warning that i ignored. I have Application Server Type set to .NET for the calling application. do you know why i get this warning? Is this why it's not working in Chrome?

Not Implemented Feature

Integrated Authentication in 'COVADHelperWebService' not implemented for eSpaces with property 'Application Server Type' set to 'Both'.

Resolved the Chrome issue by adding the domain that issues the 401 challenge to the registry. See link below.