Re: accessing Web Service from Sharepoint cause permission error...
From: Jéjé (willgart_at__A_hAotmail_A_.com)
Date: 02/18/04
- Next message: Dustin Miller [MVP]: "Re: Can't get WSS to install and run correctly on Windows Server 2003"
- Previous message: Mikey_B: "SharePoint Timer Service"
- In reply to: Dustin Miller [MVP]: "Re: accessing Web Service from Sharepoint cause permission error..."
- Next in thread: Dustin Miller [MVP]: "Re: accessing Web Service from Sharepoint cause permission error..."
- Reply: Dustin Miller [MVP]: "Re: accessing Web Service from Sharepoint cause permission error..."
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Dustin Miller [MVP]: "Re: Can't get WSS to install and run correctly on Windows Server 2003"
- Previous message: Mikey_B: "SharePoint Timer Service"
- In reply to: Dustin Miller [MVP]: "Re: accessing Web Service from Sharepoint cause permission error..."
- Next in thread: Dustin Miller [MVP]: "Re: accessing Web Service from Sharepoint cause permission error..."
- Reply: Dustin Miller [MVP]: "Re: accessing Web Service from Sharepoint cause permission error..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|