Re: Can't query "intrinsic" web services exposed by WSS

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Wei-Dong XU [MSFT] (v-wdxu_at_online.microsoft.com)
Date: 08/02/04


Date: Mon, 02 Aug 2004 12:19:23 GMT

Hi Alex,

Appreciate your patience once more!

This appears to be one permission issue from the error message, 401
unauthorizaed. Could you be so kind to tell me the configuration of your
asp.net web application:
Is it set with Integrated security with "impersonate=true" and does the
user on the client(i.e. IE) have correct SPS privileges to call whatever
method is he trying to call in Webs.asmx.

The web request should be sent to the webs.asmx as the image below:
    IE ------------>ASP.net App------------------------------->Webs.asmx
User A (Virtual Dir set to Integrated
                        authentication with impersonate=true
                        and using DefaultCredentials)

The User A needs to have correct privileges in the SPS site to call the
method, I would suggest giving User A admin privliges on SPS server to see
if that works then.

Furthermore, you can also check, in SPS scenario, ASP.net application needs
to be in the _layouts folder or create a new virtual directory and exclude
it from the managed paths.

If all this doesn't work, we can create the credentials object and passing
it instead of DefaultCredentials property to see if that works.The sample
code is:
<web service proxy class> ws = new <web service proxy class>();
CredentialCache cache = new CredentialCache();
cache.Add(new Uri(ws.Url), "Negotiate", new NetworkCredential("v-wdxu",
"<password>", "<domainname>"));
ws.Credentials = cache;

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • Re: Cant query "intrinsic" web services exposed by WSS
    ... If that is on will it be able to pass another set of credentials ... IE) have correct SPS privileges to call whatever ... > The web request should be sent to the webs.asmx as the image below: ...
    (microsoft.public.sharepoint.windowsservices)
  • sps query web service authentication problem
    ... I'm trying to get SPS search web service to work. ... CredentialCache cache = new CredentialCache; ... System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) ...
    (microsoft.public.sharepoint.portalserver.development)