Can someone verify my formatting on this email? Is it me, or does this look like I wrote in one big line with no paragraphs?
The email im talking about is the one directly below here. Does it look fine? -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Steve Welborn Sent: Tuesday, July 05, 2005 11:38 AM To: [email protected] Subject: Re: [ADVANCED-DOTNET] Calling a Web Service over the network Set the credentials after you make setup the Remote Object and after you register the channel. This is the code I use for credentials. See if you could use the same: //start of code IDictionary channelProperties = ChannelServices.GetChannelSinkProperties(objQPackages); NetworkCredential credentials; credentials = new NetworkCredential("UserName-Here", "Password-Here"); ObjRef objectReference = RemotingServices.Marshal((MarshalByRefObject)objQPackages); Uri objectUri = new Uri(objectReference.URI); CredentialCache credCache = new CredentialCache(); // Substitute "authenticationType" with "Negotiate", "Basic", // "Digest", // "Kerberos" or "NTLM" credCache.Add(objectUri, "NTLM", credentials); channelProperties["credentials"] = credCache; channelProperties["preauthenticate"] = true; channelProperties["unsafeauthenticatedconnectionsharing"] = true; channelProperties["connectiongroupname"] = strDomain + "UserName-Here"; //End code Hope this helps. Steve -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Eduard Lascu Sent: Tuesday, July 05, 2005 11:08 AM To: [email protected] Subject: [ADVANCED-DOTNET] Calling a Web Service over the network Hello everybody, I have a Web Service that's hosted on one machine. There is a difference between calling it from the same machine or from a different machine in the network: in the second case I am prompted to enter my credentials (user name, password and domain). Is there a way to prevent this? I have set the Anonymous access with Integrated Windows authentication for this web service (if Integrated Windows authentication is not set, the Web Service is not accessible). The problem I have is that an ASP.NET client is supposed to call the Web Service in order to get a report. Could it be that the only way to do it is to pass the credentials from the Web page, along with all the parameters for the web method? And if so, where should I set the credentials? Any suggestion will be appreciated. Regards, Eddie =================================== This list is hosted by DevelopMentorR http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com =================================== This list is hosted by DevelopMentorR http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
