<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'WCF'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=WCF&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'WCF'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>WCF - SiteMinder Authentication + Impersonation</title><link>http://forums.asp.net/thread/3574287.aspx</link><pubDate>Sat, 19 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3574287</guid><dc:creator>victtim</dc:creator><description>&lt;p&gt;Hi Everyone,&lt;/p&gt;&lt;p&gt;I have a WCF service which provides some information based on the end-user&amp;#39;s Windows Login ID.&amp;nbsp; The service exposes an end-point which uses Windows authentication.&amp;nbsp; Subsequently, instead of passing the UserID as a parameter to a operation contract, I can find out who invoked a service operation by looking at the context information as shown below:&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;WindowsIdentity id = ServiceSecurityContext.Current.WindowsIdentity;&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;This works fine for Windows Desktop Clients.&amp;nbsp; It also works well for ASP.NET Clients as long as the web app is configured for Windows Authentication AND Impersonation is turned ON.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;However, some of the WCF&amp;#39;s clients are ASP.NET apps which do NOT use Windows Integrated Authentication.&amp;nbsp; Instead, they use other mechanisms, such as SiteMinder.&amp;nbsp; In these cases, the above code would return the ID under which the web application runs (i.e. ASPNET user account).&amp;nbsp; Subsequently, I cannot get the actual end-user&amp;#39;s windows ID.&lt;/p&gt;&lt;p&gt;Could you please provide some advice / guidance as to how to get the user ID.&amp;nbsp; In the ASP.NET app, I can get the userID from the SiteMinder request header (&amp;quot;SM_USER&amp;quot;).&amp;nbsp; Is there a way to pass this information in a secure fashion (similar to how Windows Authentication works)?&lt;/p&gt;&lt;p&gt;Any advice is much appreciated.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Tim&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Bing API</title><link>http://forums.asp.net/thread/3570716.aspx</link><pubDate>Thu, 17 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3570716</guid><dc:creator>chchinmaya</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; i am new to this functionality could any one give me guidence how to work on bing api......&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to set SecurityMode to Transport? (for WCF REST service via SSL)</title><link>http://forums.asp.net/thread/3559971.aspx</link><pubDate>Fri, 11 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3559971</guid><dc:creator>darrenwwwa</dc:creator><description>&lt;p&gt;Before I stared using the Starter Kit, I could set the &amp;#39;Security&amp;#39; to &amp;#39;Transport&amp;#39; to allow our webservice to be reached via HTTPS (SSL). Like this:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;webHttpBinding&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp; &amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;binding&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;name&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;mutual&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;
&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;security&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;mode&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Transport&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;transport&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;clientCredentialType&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Certificate&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;
&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;security&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp; &amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;binding&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;webHttpBinding&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Now, the config file is empty and everything is being set via attributes on the classes. Current web.config file:&lt;/p&gt;&lt;p&gt;&amp;lt;system.web&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;compilation debug=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/system.web&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;system.serviceModel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;serviceHostingEnvironment aspNetCompatibilityEnabled=&amp;quot;true&amp;quot;/&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/system.serviceModel&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;How do I set the security to Transport using these Attributes?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;[ServiceBehavior(IncludeExceptionDetailInFaults = true),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceContract]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public partial class Service&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [WebHelp(Comment = &amp;quot;This is my service&amp;quot;)]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [WebInvoke(UriTemplate = &amp;quot;MyService&amp;quot;)]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [OperationContract]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public OutputClass MyService(MyClass class)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Convert a List to a DataTable</title><link>http://forums.asp.net/thread/3560509.aspx</link><pubDate>Fri, 11 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3560509</guid><dc:creator>pepcoder</dc:creator><description>&lt;p&gt;private DataTable ToDataTable&amp;lt;T&amp;gt;(List&amp;lt;T&amp;gt; items)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;var tb = new DataTable(typeof(T).Name);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PropertyInfo[] props = typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;foreach (var prop in props)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;tb.Columns.Add(prop.Name, prop.PropertyType);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;foreach (var item in items)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;var values = new object[props.Length];&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (var i = 0; i &amp;lt; props.Length; i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;values[i] = props[i].GetValue(item, null);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;tb.Rows.Add(values);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return tb;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;p&gt;I have seen a method like above to convert a generic list to&amp;nbsp; a datatable.Can somebody help me out how can i convert my below generic list to a datatable using the above method.&lt;/p&gt;&lt;p&gt;public List&amp;lt;AsocServiceLayoutField&amp;gt; GetServicesForLayoutFields()&lt;/p&gt;&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;&amp;nbsp; //return a list object of AsocServiceLayoutField&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Please also suggest is there any other solution better than I have mentioned over here..&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thnx in advance&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Schema validation  &amp;amp; custom serialisation on a WCF REST web service?</title><link>http://forums.asp.net/thread/3553996.aspx</link><pubDate>Tue, 08 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3553996</guid><dc:creator>darrenwwwa</dc:creator><description>&lt;p&gt;I am trying to tighten security on a WCF REST webservice.&lt;/p&gt;&lt;p&gt;I would like to validat the XML coming in against a SCHEMA.&lt;/p&gt;&lt;p&gt;I would also like to use a custom deserializer for the incoming message so I can prevent XML Bombs and External Entity Attacks (set a timeout, maxCharactersFromEntity, etc.).&lt;/p&gt;&lt;p&gt;Is this possible? I was hoping I could do this with the new Starter Kit, but I have not yet found how.&lt;/p&gt;&lt;p&gt;The schema validation works great on wsHttpBinding, but not on webHttpBinding.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The November (2009) issue of MSDN magazine has a great article on preventing XML attacks, but I can&amp;#39;t figure out how to apply this to the deserialization of the message as our webservice receives it.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Any suggestions?&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Passing a list via wcf need help</title><link>http://forums.asp.net/thread/3547769.aspx</link><pubDate>Fri, 04 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3547769</guid><dc:creator>thinkrajesh</dc:creator><description>&lt;p&gt;Try this&lt;br /&gt;&lt;/p&gt;&lt;p&gt;List&amp;lt;ListingType&amp;gt; lists = client.GetAllListings()); // check if u need to convert this./...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;foreach(ListingType type in lists)&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&amp;quot;{0} {1}&amp;quot;, type.dataMakeID, type.datanotes);&amp;nbsp;&amp;nbsp; // whatever you want to print...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;}&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WCF vs ASMX</title><link>http://forums.asp.net/thread/3541078.aspx</link><pubDate>Tue, 01 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3541078</guid><dc:creator>eddieaks</dc:creator><description>&lt;p&gt;
hi sir/madam,

&lt;/p&gt;&lt;p&gt;im just started to learn web services and wcf, and found some articles/blogs differenciate between *.asmx and wcf *.svc. seems wcf has more advantages or enhanced version of *.asmx. does it means wcf exists to replace *.asmx?? dont know which one should i go for.

&lt;/p&gt;&lt;p&gt;welcome any comments&lt;/p&gt;&lt;p&gt;regards

&lt;/p&gt;</description></item><item><title>want to copy a few files on client computer without actually acknowledging him</title><link>http://forums.asp.net/thread/3535487.aspx</link><pubDate>Fri, 27 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3535487</guid><dc:creator>victor_vivek</dc:creator><description>&lt;p&gt;Dear Friends&lt;/p&gt;&lt;p&gt;I am working on Online Test in C#.net and my requirement involves copying some files over client computer without acknowledging him. Means I want to copy some file of size near 200kb on client, these are questions in html format and a single xml file.I want to do this because I want the test takers not to bother about internet connection. If connection goes off still they can continue with their test as the questions has already been copied on his/her computer. I am searching for it for last few days, even a few told its not possible but others told WCF might be helpful. So first of all I want to know is it possible to copy files over client computer ???&lt;/p&gt;&lt;p&gt;2nd Question - I want to know in WCF technology do we need to install something on client computer too, or is it like we have to bother just about server side everything else will bother about itself&lt;/p&gt;&lt;p&gt;Thanks in advance...&lt;/p&gt;</description></item><item><title>Consuming WCF service for development in advance?</title><link>http://forums.asp.net/thread/3533752.aspx</link><pubDate>Thu, 26 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3533752</guid><dc:creator>mittalpa</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;I was asked this question - How do you start consuming a WCF service in advance (read before being implemented/deployed)? &lt;br /&gt;&lt;br /&gt;I couldn&amp;#39;t think of a very convincing answer and said probably we can generate a proxy and provide some stubs ..etc... you got the idea. Even I was not convinced with myself. The question do make sense as presentation and services are different tiers. One should not be waiting on other in development at least.&lt;br /&gt;&lt;br /&gt;Anyways, so I have been thinking since then and need some pointers on this from experts out there. Any suggestions / aproaches?. &lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;AJ&lt;/p&gt;</description></item><item><title>Accessing WCF service through SSL</title><link>http://forums.asp.net/thread/3523087.aspx</link><pubDate>Thu, 19 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3523087</guid><dc:creator>nanite2000</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I have created a WCF service that works fine on localhost, and also works fine when transferred to our live server when served by standard HTTP at:&lt;/p&gt;&lt;p&gt;http://my.domain.com/Service/MyService.svc&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The problem is that I want to secure the WCF service using windows authentication over SSL. Is this possible? My WCF service is also served over SSL at:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;https://my.domain.com/Service/MyService.svc&lt;/p&gt;&lt;p&gt;I have configured my Web.Config to enable Windows Authentication as follows:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre name="code" class="xhtml"&gt;&amp;lt;bindings&amp;gt;
   &amp;lt;wsHttpBinding&amp;gt;
    &amp;lt;binding name=&amp;quot;SecureBinding&amp;quot;&amp;gt;
     &amp;lt;security mode=&amp;quot;Transport&amp;quot;&amp;gt;
        &amp;lt;transport clientCredentialType=&amp;quot;Windows&amp;quot; /&amp;gt;
     &amp;lt;/security&amp;gt;
    &amp;lt;/binding&amp;gt;
   &amp;lt;/wsHttpBinding&amp;gt;
  &amp;lt;/bindings&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt; My service behaviour configuration in Web.Config looks as follows:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre name="code" class="xhtml"&gt;&amp;lt;service behaviorConfiguration=&amp;quot;AuditServiceBehavior&amp;quot; name=&amp;quot;AuditService&amp;quot;&amp;gt;
    &amp;lt;endpoint address=&amp;quot;&amp;quot; binding=&amp;quot;wsHttpBinding&amp;quot; bindingConfiguration=&amp;quot;SecureBinding&amp;quot;
     name=&amp;quot;Secure&amp;quot; contract=&amp;quot;IAuditService&amp;quot; listenUri=&amp;quot;https://my.domain.com/Service/MyService.svc&amp;quot;&amp;gt;
     &amp;lt;identity&amp;gt;
      &amp;lt;dns value=&amp;quot;localhost&amp;quot; /&amp;gt;
     &amp;lt;/identity&amp;gt;
    &amp;lt;/endpoint&amp;gt;
    &amp;lt;endpoint address=&amp;quot;mex&amp;quot; binding=&amp;quot;mexHttpBinding&amp;quot; contract=&amp;quot;IMetadataExchange&amp;quot; /&amp;gt;
   &amp;lt;/service&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt; When I try to access the secure URL of my Service through my web browser, I get prompted for a username and password. Upon successfully entering the username and password, I am presented with the following warning message:&lt;/p&gt;&lt;p&gt;&lt;b&gt;XML Parsing Error: no element found&lt;br /&gt;Location: https://my.domain.com/Service/MyService.svc&lt;br /&gt;Line Number 1, Column 1:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;But at least the login credentials are accepted by the server.&lt;/p&gt;&lt;p&gt;I then try to access my Service through an ASP.NET web client. In Visual Studio 2008 I click to &amp;#39;Add Service Reference&amp;#39;. In the &amp;#39;Add Service Reference&amp;#39; window, I am prompted for the URL of my service. I enter:&lt;/p&gt;&lt;p&gt;https://my.domain.com/Service/MyService.svc&lt;/p&gt;&lt;p&gt;And then click &amp;#39;OK&amp;#39;. I am immediately prompted to enter a username and password. When I enter identical login details to the web login mentioned earlier, I get prompted for it again, and then I get the following error message:&lt;/p&gt;&lt;p&gt;&lt;i&gt;There was an error downloading &amp;#39;https://my.domain.com/Service/MyService.svc&amp;#39;.&lt;br /&gt;The request failed with HTTP status 400: Bad Request.&lt;br /&gt;Metadata contains a reference that cannot be resolved: &amp;#39;https://my.domain.com/Service/MyService.svc&amp;#39;.&lt;br /&gt;The HTTP request is unauthorized with client authentication scheme &amp;#39;Anonymous&amp;#39;. The authentication header received from the server was &amp;#39;Negotiate,NTLM&amp;#39;.&lt;br /&gt;The remote server returned an error: (401) Unauthorized.&lt;br /&gt;If the service is defined in the current solution, try building the solution and adding the service reference again.&lt;/i&gt;&lt;/p&gt;&lt;p&gt;Questions:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Why can I login through my web browser, but not through Visual Studio with identical credentials? The server logs show the login attempt through Visual Studio was successful. Is this a case of Visual Studio misinterpreting the error message from the server? Is it really telling me that it cannot discover the web services becasue the XML page is not being served?&lt;/li&gt;&lt;li&gt;Why is my SSL server not serving an XML discovery file that the web browser and Visual Stduio can read?&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Standard HTTP serves the services out perfectly without altering the Web.Config file.&lt;/p&gt;&lt;p&gt;What have I done wrong? Why does HTTP work, but not HTTPS?&lt;/p&gt;&lt;p&gt;I really appreciate any help or insight you can provide!&lt;/p&gt;&lt;p&gt;Thanks.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>