资源简介

这个工具也是在网上不经意间发现的 使用过后感觉很不错 主程序文件才100多kb但是能做的事情却很多 给需要的伙伴们分享

资源截图

代码片段和文件信息

/*============================================================
 **
 ** Purpose: The MainWindow UI
 ** Date:  Jan 12 2003
 ** Author: Sowmy Srinivasan
 **
 ===========================================================*/
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing.Design;
using System.Runtime.InteropServices;
using System.Security.Cryptography.xml;
using System.Security.Cryptography;
using System.Web.Services.Protocols;
using System.Windows.Forms;
using System.xml.Serialization;
using System.Text;
using System.IO;
using System;
using Microsoft.Web.Services.Security.X509;
using Microsoft.Web.Services.Security;
using Microsoft.Web.Services.Dime;
using Microsoft.Web.Services;
using WebServiceStudio;

public class WSEProxyProperties : IAdditionalProperties{
    public WSETimestamp Timestamp;
    public WSESecurity Security;
    public WSEDimeAttachment[] Attachments;
    public WSEProxyProperties(HttpWebClientProtocol proxy){
        WebServicesClientProtocol wseProxy = (WebServicesClientProtocol)proxy;
        Timestamp = new WSETimestamp(wseProxy);
        Security = new WSESecurity(wseProxy);
        Attachments = null;
    }
    public void UpdateProxy(HttpWebClientProtocol proxy){
        if (Timestamp != null)
            Timestamp.UpdateProxy((WebServicesClientProtocol)proxy);
        if (Security != null)
            Security.UpdateProxy((WebServicesClientProtocol)proxy);
        if (Attachments != null){
            foreach(WSEDimeAttachment attachment in Attachments){
                attachment.UpdateProxy((WebServicesClientProtocol)proxy);
            }
        }
    }
}

public class WSETimestamp {
    public long Ttl;
    public WSETimestamp(WebServicesClientProtocol wseProxy){
        Ttl = wseProxy.RequestSoapContext.Timestamp.Ttl;
    }
    public void UpdateProxy(WebServicesClientProtocol wseProxy){
        wseProxy.RequestSoapContext.Timestamp.Ttl = Ttl;
    }
}

public class WSESecurity {
    public WSESignature Signature;
    public WSEEncryption Encryption;
    public WSESecurity(WebServicesClientProtocol wseProxy){
        Signature = null;
        Encryption = null;
    }
    public void UpdateProxy(WebServicesClientProtocol wseProxy){
        if (Signature != null)
            Signature.UpdateProxy(wseProxy);
        if (Encryption != null)
            Encryption.UpdateProxy(wseProxy);
    }
}

[xmlInclude(typeof(WSEUsernameSignature))]
[xmlInclude(typeof(WSECertificateSignature))]
public abstract class WSESignature{
    public abstract void UpdateProxy(WebServicesClientProtocol wseProxy);
}


public class WSEUsernameSignature: WSESignature{
    public string Username;
    public string Password;
    public PasswordOption PasswordOption;
    public WSEUsernameSignature(){
        Username=null;
        Password=null;
        PasswordOption = PasswordOption.SendPlainText;
    }
    public override void

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-02-04 23:07  WebserviceStudio20\
     目录           0  2019-02-04 23:07  WebserviceStudio20\WSEExt\
     文件       21857  2003-04-10 18:54  WebserviceStudio20\WSEExt\WSEExt.cs
     文件        1201  2003-04-10 18:50  WebserviceStudio20\WSEExt\build.bat
     目录           0  2019-02-04 23:07  WebserviceStudio20\bin\
     文件      143360  2003-03-19 14:37  WebserviceStudio20\bin\WebServiceStudio.exe
     文件        2415  2019-01-23 15:16  WebserviceStudio20\bin\WebServiceStudio.exe.options
     文件       13312  2003-03-19 14:37  WebserviceStudio20\bin\wseext.dll
     文件       18911  2003-04-10 19:25  WebserviceStudio20\readme.rtf

评论

共有 条评论