Accessing Sharepoint web services from a web application
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Accessing Sharepoint web services from a web application

 
Post new topic   Reply to topic    Windows Server Forum Index -> Team Services
Author Message
Shahan
Guest





Posted: Fri Oct 29, 2004 6:47 am    Post subject: Accessing Sharepoint web services from a web application Reply with quote

I am trying to call a share point web service from a web application
running on a different IIS than the sharepoint server. I keep on
getting Unauthorized response. When I try to do the same call from a
console or windows form it works from the client machine.
I tried to include in my code
myservice.Credentials = new
NetworkCredential(userName,password,domain)
or
WindowsImpersonationContext windowsContext =
CreateIdentity(userName,domain,password).Impersonate();
myservice.Credentials =
System.Net.CredentialCache.DefaultCredentials;


It still gives me the same error. But when I run the same web form
from the SharePoint server machine it works.
Could anyone please tell me how to start resolving this problem.
Regards,
Shahan
Back to top
Mike Walsh
Guest





Posted: Fri Oct 29, 2004 9:11 am    Post subject: Re: Accessing Sharepoint web services from a web application Reply with quote

This is the newsgroup for SharePoint Team Services

Windows SharePoint Services which I presume you want is at

microsoft.public.sharepoint.windowsservices

SharePoint Portal Server 2003 which also might be what you are using is at

microsoft.public.sharepoint.portalserver

Please post to the correct one of those.

Mike Walsh, Helsinki, Finland
STS FAQ at http://www.collutions.com/Lists/FAQ
WSS FAQ at http://wss.collutions.com
Please post questions to the newsgroup only.


"Shahan" <visitshahan@gmail.com> wrote in message
news:4df35c65.0410281747.69509f6c@posting.google.com...
Quote:
I am trying to call a share point web service from a web application
running on a different IIS than the sharepoint server. I keep on
getting Unauthorized response. When I try to do the same call from a
console or windows form it works from the client machine.
I tried to include in my code
myservice.Credentials = new
NetworkCredential(userName,password,domain)
or
WindowsImpersonationContext windowsContext =
CreateIdentity(userName,domain,password).Impersonate();
myservice.Credentials =
System.Net.CredentialCache.DefaultCredentials;


It still gives me the same error. But when I run the same web form
from the SharePoint server machine it works.
Could anyone please tell me how to start resolving this problem.
Regards,
Shahan
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Team Services All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB