• 大小: 526KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-16
  • 语言: 其他
  • 标签: WCF  安全性  

资源简介

WCF 四种身份验证方式 都通过本人测试 qq:574311505 None Windows 自定义证书 自定义用户名密码

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.ServiceModel;

namespace WcfClient
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnTest_Click(object sender EventArgs e)
        {
            NetTcpBinding netTcp = new NetTcpBinding();
            ChannelFactory ftc = new ChannelFactory();
            netTcp.Security.Mode = SecurityMode.None;
            IServiceTcp proxy = ChannelFactory.CreateChannel(netTcp new EndpointAddress(“net.tcp://127.0.0.1:8731/WcfServiceLibrary“));
            txtMessage.Text = proxy.GetDataUsingDataContract(new WcfServiceLibrary.CompositeType() { StringValue = “sssss“ }).StringValue;

        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1601  2012-03-02 14:09  身份验证 - None\WcfClient\WcfClient\App.config

     文件      10752  2012-03-02 14:13  身份验证 - None\WcfClient\WcfClient\bin\Debug\WcfClient.exe

     文件       1601  2012-03-02 14:09  身份验证 - None\WcfClient\WcfClient\bin\Debug\WcfClient.exe.config

     文件      30208  2012-03-02 14:13  身份验证 - None\WcfClient\WcfClient\bin\Debug\WcfClient.pdb

     文件      11600  2012-03-02 14:14  身份验证 - None\WcfClient\WcfClient\bin\Debug\WcfClient.vshost.exe

     文件       1601  2012-03-02 14:09  身份验证 - None\WcfClient\WcfClient\bin\Debug\WcfClient.vshost.exe.config

     文件        490  2010-03-17 22:39  身份验证 - None\WcfClient\WcfClient\bin\Debug\WcfClient.vshost.exe.manifest

     文件        962  2012-03-02 14:14  身份验证 - None\WcfClient\WcfClient\Form1.cs

     文件       2576  2012-03-02 14:07  身份验证 - None\WcfClient\WcfClient\Form1.Designer.cs

     文件       5817  2012-03-02 14:07  身份验证 - None\WcfClient\WcfClient\Form1.resx

     文件       2152  2012-03-02 14:06  身份验证 - None\WcfClient\WcfClient\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6600  2012-03-02 14:13  身份验证 - None\WcfClient\WcfClient\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        320  2012-03-02 14:09  身份验证 - None\WcfClient\WcfClient\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        746  2012-03-02 14:09  身份验证 - None\WcfClient\WcfClient\obj\x86\Debug\GenerateResource.write.1.tlog

     文件        962  2012-03-02 14:14  身份验证 - None\WcfClient\WcfClient\obj\x86\Debug\WcfClient.csproj.FileListAbsolute.txt

     文件      10752  2012-03-02 14:13  身份验证 - None\WcfClient\WcfClient\obj\x86\Debug\WcfClient.exe

     文件        180  2012-03-02 14:09  身份验证 - None\WcfClient\WcfClient\obj\x86\Debug\WcfClient.Form1.resources

     文件      30208  2012-03-02 14:13  身份验证 - None\WcfClient\WcfClient\obj\x86\Debug\WcfClient.pdb

     文件        180  2012-03-02 14:09  身份验证 - None\WcfClient\WcfClient\obj\x86\Debug\WcfClient.Properties.Resources.resources

     文件        490  2012-03-02 14:06  身份验证 - None\WcfClient\WcfClient\Program.cs

     文件       1350  2012-03-02 14:06  身份验证 - None\WcfClient\WcfClient\Properties\AssemblyInfo.cs

     文件       2866  2012-03-02 14:06  身份验证 - None\WcfClient\WcfClient\Properties\Resources.Designer.cs

     文件       5612  2012-03-02 14:06  身份验证 - None\WcfClient\WcfClient\Properties\Resources.resx

     文件       1092  2012-03-02 14:06  身份验证 - None\WcfClient\WcfClient\Properties\Settings.Designer.cs

     文件        249  2012-03-02 14:06  身份验证 - None\WcfClient\WcfClient\Properties\Settings.settings

     文件       4242  2012-03-02 14:08  身份验证 - None\WcfClient\WcfClient\ServiceTcp.cs

     文件       3860  2012-03-02 14:09  身份验证 - None\WcfClient\WcfClient\WcfClient.csproj

     文件        227  2012-03-02 14:09  身份验证 - None\WcfClient\WcfClient\WcfClient.csproj.user

     文件        869  2012-03-02 14:06  身份验证 - None\WcfClient\WcfClient.sln

    ..A..H.     10240  2012-03-02 14:09  身份验证 - None\WcfClient\WcfClient.suo

............此处省略394个文件信息

评论

共有 条评论