Re: accessing Web Service from Sharepoint cause permission error...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jéjé (willgart_at__A_hAotmail_A_.com)
Date: 02/18/04


Date: Wed, 18 Feb 2004 18:02:55 -0500

yes

the windows authentication is activated and the anonymous is disable.

I can reach the webservice from another test application (without
sharepoint, ASP.NET application directly)

"Dustin Miller [MVP]" <dustin-s-p-a-m@sharepointexperts.com> a écrit dans le
message de news:uBr9hdm9DHA.3900@tk2msftngp13.phx.gbl...
> Does the web service understand Windows Integrated Authentication
> credentials?
> --
> Dustin Miller [MVP]
> SharePoint Experts http://www.sharepointexperts.com
> SharePoint University http://www.sharepointu.com
> SharePoint Bootcamp http://www.sharepointexperts.com/training.htm
> ______________________________________________________________________
> "Jéjé" <willgart@_A_hAotmail_A_.com> wrote in message
> news:%23JEBkmj9DHA.1632@TK2MSFTNGP12.phx.gbl...
> > Hi,
> >
> > I try to create a simple webpart in sharepoint to list the reports in a
> > specific folder.
> >
> > My webpart works fine except when I call the webservice.
> > I received an HTTP 401 error.
> > if I try with the domain administrator account, I received an http 401 :
> > Unauthorized error
> > with my developper account an http 401 : access denied error appears.
> > (why 2 different errors when the 2 users have the same rights?)
> >
> > my code:
> >
> > Protected Overrides Sub RenderWebPart(ByVal output As
> > System.Web.UI.HtmlTextWriter)
> >
> > Dim oServ As New ReportServer.ReportingService
> >
> > Dim oRes As ReportServer.CatalogItem()
> >
> > Dim oCat As ReportServer.CatalogItem
> >
> > Try
> >
> > oServ.Credentials = Net.CredentialCache.DefaultCredentials
> >
> > oServ.Url = Server
> >
> > oRes = oServ.ListChildren(Path, False)
> >
> > If oRes Is Nothing OrElse oRes.Length = 0 Then
> >
> > output.Write("No items to display.")
> >
> > Else
> >
> > output.WriteBeginTag(HtmlTextWriterTag.Table)
> >
> > For Each oCat In oRes
> >
> > output.WriteBeginTag(HtmlTextWriterTag.Tr)
> >
> > output.WriteBeginTag(HtmlTextWriterTag.Td)
> >
> > output.Write(oCat.Name)
> >
> > output.RenderEndTag()
> >
> > output.RenderEndTag()
> >
> > output.WriteLine()
> >
> > Next
> >
> > output.RenderEndTag()
> >
> > End If
> >
> > Catch ex As Exception
> >
> > output.Write("User : " & Page.User.Identity.Name & "<br>")
> >
> > output.Write("Error : " & ex.ToString)
> >
> > End Try
> >
> > End Sub
> >
> >
> >
> > I've also tried to force a specific user (with networkcredential) but
> > nothing changes.
> >
> >
> >
> > This is the complete error:
> >
> > Error : System.Net.WebException: The request failed with HTTP status
401:
> > Access Denied. at
> >
>
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
> > Message message, WebResponse response, Stream responseStream, Boolean
> > asyncCall) at
> > System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
> > methodName, Object[] parameters) at
> >
ReportingServicesWebPart.ReportServer.ReportingService.ListChildren(String
> > Item, Boolean Recursive) at
> > ReportingServicesWebPart.ReportList.RenderWebPart(HtmlTextWriter output)
> >
> >
> >
> > What is the problem?
> >
> > Thanks.
> >
> >
> >
> > Jerome.
> >
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.591 / Virus Database: 374 - Release Date: 2004-02-17
> >
> >
>
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.591 / Virus Database: 374 - Release Date: 2004-02-17


Relevant Pages

  • Access Denied to Portal Site
    ... My portal is configured for Windows Authentication only. ... Sharepoint Administrators site group can access the portal. ... No, they're valid accounts. ... >> one worker process with other sites. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Problem mit Upload WebService
    ... ich möchte mittels WebService Dokumente in die Dokumente Bibliothek eines ... Da Sharepoint diesen WebService "von Haus" aus ... Ich habe auf dem Sharepoint Server die im Link angegebene Datei ...
    (microsoft.public.de.german.sharepointportalserver)
  • Problem mit WebService zum Uploaden
    ... ich möchte mittels WebService Dokumente in die Dokumente Bibliothek eines ... Da Sharepoint diesen WebService "von Haus" aus ... Ich habe auf dem Sharepoint Server die im Link angegebene Datei ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Only Site Group Administrators can access Portal
    ... My portal is configured for Windows Authentication only. ... anonymous access (both via IIS settings and sharepoint admin). ... Sharepoint Administrators site group can access the portal. ...
    (microsoft.public.sharepoint.portalserver)
  • Sharepoint View Setting
    ... I use InfoPath to create a form. ... form is saved in SharePoint via WebService. ... one is 1st approve deadline and one is 2nd approve deadline. ... Webservice and put the from to related view in SharePoint. ...
    (microsoft.public.sharepoint.portalserver.development)