微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

wsdl 生成 webservice 代理类

-Microsoft .NET Framework SDK v2.0

--SDK Command Prompt

---D:/Program Files/Microsoft Visual Studio 8/SDK/v2.0>

wsdl http://qcs-iptest/myprofile/myprofile/updatehrms.asmx /out:c:/1.cs
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework,Version 2.0.50727.42]
copyright (C) Microsoft Corporation. All rights reserved.
Writing file 'c:/1.cs'.

 

 

剔除异步的方法

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.1873
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;

//
// This source code was auto-generated by wsdl,Version=2.0.50727.42.
//


/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl","2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name = "UpdateHRMSSoap",Namespace = "http://tempuri.org/")]
public partial class MyProfileUpdateHRMS : System.Web.Services.Protocols.soapHttpClientProtocol
{

    private System.Threading.SendOrPostCallback MyProfileUpdateHRMSOperationCompleted;

    /// <remarks/>
    public MyProfileUpdateHRMS()
    {
        this.Url = "http://qcs-iptest/myprofile/myprofile/updatehrms.asmx";
    }


    /// <remarks/>
    [System.Web.Services.Protocols.soapDocumentMethodAttribute("http://tempuri.org/MyProfileUpdateHRMS",RequestNamespace = "http://tempuri.org/",ResponseNamespace = "http://tempuri.org/",Use = System.Web.Services.Description.soapBindingUse.Literal,ParameterStyle = System.Web.Services.Protocols.soapParameterStyle.Wrapped)]
    public bool MyProfileUpdateHRMS(string strEmpInfoXml)
    {
        object[] results = this.Invoke("MyProfileUpdateHRMS",new object[] {
                    strEmpInfoXml});
        return ((bool)(results[0]));
    }

  }

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐