Shahan
Guest
|
Posted:
Fri Oct 29, 2004 6:47 am Post subject:
Accessing Sharepoint web services from a web application |
|
|
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 |
|
Mike Walsh
Guest
|
Posted:
Fri Oct 29, 2004 9:11 am Post subject:
Re: Accessing Sharepoint web services from a web application |
|
|
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 |
|
|