110,533
社区成员
发帖
与我相关
我的任务
分享
namespace TestDemo
{
using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Collections.Generic;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.test.com")]
public partial class MyClass
{
private string messageField;
private string otherdataField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]
public string message
{
get
{
return this.messageField;
}
set
{
this.messageField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]
public string otherdata
{
get
{
return this.otherdataField;
}
set
{
this.otherdataField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Web.Services.WebServiceAttribute(Namespace = "http://www.test.webservice.com")]
[System.Web.Services.WebServiceBindingAttribute(Name = "TestHttpBinding", Namespace = "http://www.test.com")]
[System.Web.Services.Protocols.SoapDocumentService(RoutingStyle = SoapServiceRoutingStyle.RequestElement)]
public partial class TestService : System.Web.Services.WebService
{
/// <remarks/>
[System.Web.Services.WebMethodAttribute()]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "http://www.test.com", ResponseNamespace = "http://www.test.com", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("out", IsNullable = true)]
public int testservice([System.Xml.Serialization.XmlElementAttribute(IsNullable = true)] MyClass in0)
{
if(in0 == null)
{
return 0;
}
else
{
return 1;
}
}
}
}
SoapElementAttribute
SoapEnumAttribute
SoapIgnoreAttribute
SoapIncludeAttribute
[Serializable]
public class MyClass
{
public MyClass();
public string message { get; set; }
public string otherdata { get; set; }
}