I am connecting to exchange using the exchange web service from within Sharepoint Server enterprise edition (2010) code running in an application page
service.Credentials = System.Net.
View Complete Post
I am trying to extract the login name from a web service that was authenticated using a custom username validator. It validates ok, but I am unable to extract this info within the service implementation.
So far, I have tried the following:
- return WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Authorization];
- return OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name;
- return ServiceSecurityContext.Current.WindowsIdentity.Name;
- return Thread.CurrentPrincipal.Identity.Name;
The first works fine if the service is using REST, but returns an empty string with SOAP, so I am thinking the authorization credentials are in the SOAP body rather than the HTTP header in that instance. (The WCF service supports both REST and SOAP,
so I will need a solution that will work with either).
The latter three attempts throw a null reference exception.
When trying to publish an InfoPath 2007 form template (as a Content Type), I am getting the following message with a UserName/Password dialog box:
Enter your credentials to connect to the following web service:
When I enter my credentials, the above dialog box appears again. I have carefully entered my credential. Another thing I noticed that despite this error I see the form got created at the destination library. The only thing is that the Content Type did not
get created and hence is not available in the "Site Content Type Gallery".
We are using Sharepoint 2007 enterprise edition. And I have recently published the InfoPath form templates several time as Content type without any issue.
Please help. Thanks........