473,383 Members | 1,855 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

unauthorized Webserice call

Hi All,

I have a webservice on a win 2003 server and I'm trying to call it from
another win2003 server which is hosting my sharepoint portal server.

I am trying to call that webservice from a webpart but I get this error
which says :
System.Net.WebException: The request failed with HTTP status 401:
Unauthorized. at RSTreeWebPart.RSTree.reportsList() at
RSTreeWebPart.RSTree.RenderWebPart(HtmlTextWriter output)

If I put my webpart in the same server as the webservice resides everything
is fine.

Thanks for your help.

P.S. I'm using Intergrated Windows Authentication an in my web part I call
the webservice in this way:
ReportingService rService = new ReportingService(RSSever);
rService.Credentials = System.Net.CredentialCache.DefaultCredentials;
CatalogItem[] catalogItems;
catalogItems = rService.ListChildren(RepPath, true);

Nov 23 '05 #1
2 3560
ALI-R,

Are both servers part of the same domain? Can you confirm that the
credentials passed to the web service identify a domain account, not a
local account on the SharePoint box?

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko
-----Original Message-----
From: ALI-R [mailto:ne****@microsoft.com]
Posted At: Tuesday, January 18, 2005 3:44 PM
Posted To: microsoft.public.dotnet.framework.webservices
Conversation: unauthorized Webserice call
Subject: unauthorized Webserice call

Hi All,

I have a webservice on a win 2003 server and I'm trying to call it from another win2003 server which is hosting my sharepoint portal server.

I am trying to call that webservice from a webpart but I get this error which says :
System.Net.WebException: The request failed with HTTP status 401:
Unauthorized. at RSTreeWebPart.RSTree.reportsList() at
RSTreeWebPart.RSTree.RenderWebPart(HtmlTextWriter output)

If I put my webpart in the same server as the webservice resides
everything
is fine.

Thanks for your help.

P.S. I'm using Intergrated Windows Authentication an in my web part I call the webservice in this way:
ReportingService rService = new ReportingService(RSSever);
rService.Credentials = System.Net.CredentialCache.DefaultCredentials;
CatalogItem[] catalogItems;
catalogItems = rService.ListChildren(RepPath, true);

Nov 23 '05 #2
Yes,they are both from the same Domain.I didn't underestand the second part
of your question.How can I identify it?

Thanks for your reply.
"Christoph Schittko [MVP]" <IN**********@austin.rr.com> wrote in message
news:O$**************@TK2MSFTNGP09.phx.gbl...
ALI-R,

Are both servers part of the same domain? Can you confirm that the
credentials passed to the web service identify a domain account, not a
local account on the SharePoint box?

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko
-----Original Message-----
From: ALI-R [mailto:ne****@microsoft.com]
Posted At: Tuesday, January 18, 2005 3:44 PM
Posted To: microsoft.public.dotnet.framework.webservices
Conversation: unauthorized Webserice call
Subject: unauthorized Webserice call

Hi All,

I have a webservice on a win 2003 server and I'm trying to call it

from
another win2003 server which is hosting my sharepoint portal server.

I am trying to call that webservice from a webpart but I get this

error
which says :
System.Net.WebException: The request failed with HTTP status 401:
Unauthorized. at RSTreeWebPart.RSTree.reportsList() at
RSTreeWebPart.RSTree.RenderWebPart(HtmlTextWriter output)

If I put my webpart in the same server as the webservice resides
everything
is fine.

Thanks for your help.

P.S. I'm using Intergrated Windows Authentication an in my web part I

call
the webservice in this way:
ReportingService rService = new ReportingService(RSSever);
rService.Credentials = System.Net.CredentialCache.DefaultCredentials;
CatalogItem[] catalogItems;
catalogItems = rService.ListChildren(RepPath, true);


Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jayakumar | last post by:
Hi, I am trying to convert a word document to pdf file from java for this, I am using a asp file to convert doc file to pdf. I got it working when I put the url which has file name as the query...
1
by: ag | last post by:
Hi guys.. need your help. We have abc.asp page on the source server which calls a .net component on that server. The component is in MTS running under say "domain2\id1" identity. The component...
0
by: Kyle Baley | last post by:
I'm developing an MCMS web service and am getting a 401 unauthorized error when I try to consume it from a client. It works fine when I use the test harness to navigate to the asmx file directly....
1
by: Phil396 | last post by:
I have a web service that works fine on the development server but will not work in production. In IIS Admin I have tried just about everything to get past the HTTP status 401:Unauthorized error...
0
by: Francois Guerin | last post by:
I have an application calling a web service on a different machine. The application code runs under a local user account on the application server. The account (identical username/password) is...
0
by: Daatmor | last post by:
Hi, I've worte a program that will grab the html file content from web server. It's work ...
1
by: Aikido | last post by:
Hi, I'm having an issue calling my WebService from an application. I published the WebService successfully on our DMZ box using https://, and in a Windows Application I made a WebReference to...
5
by: johnlim20088 | last post by:
Hi SOMEONE PLEASE HELP ME I have a vb net program to call localhost http://localhost/hi.aspx, my page work FINE when I browse it, but when I call it through vb net program it return error ...
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.