62,267
社区成员
发帖
与我相关
我的任务
分享
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.4927")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://tempuri.org/", IsNullable=false)]
public partial class MyHeader : System.Web.Services.Protocols.SoapHeader {
private string tokenField;
private System.Xml.XmlAttribute[] anyAttrField;
/// <remarks/>
public string token {
get {
return this.tokenField;
}
set {
this.tokenField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
public System.Xml.XmlAttribute[] AnyAttr {
get {
return this.anyAttrField;
}
set {
this.anyAttrField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="AccountServiceSoapBinding", Namespace="http://api.tg.soso.com/advertise/accountservice/v1")]
public partial class AccountService : System.Web.Services.Protocols.SoapHttpClientProtocol {
private MyHeader _token;
public MyHeader token
{
get
{
return _token;
}
set
{
_token = value;
}
}
[System.Web.Services.Protocols.SoapHeaderAttribute("token")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://api.tg.soso.com/advertise/AccountService/V1/getAdvertiserInfo", RequestElementName="getAdvertiserInfoRequest", RequestNamespace="http://api.tg.soso.com/advertise/accountservice/v1", ResponseNamespace="http://api.tg.soso.com/advertise/accountservice/v1", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("advertiser", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public AdvertiserType getAdvertiserInfo() {
object[] results = this.Invoke("getAdvertiserInfo", new object[0]);
return ((AdvertiserType)(results[0]));
}
com.qq.tg.api_sandbox.AccountService client = new WindowsFormsApplication1.com.qq.tg.api_sandbox.AccountService();
client.token = new WindowsFormsApplication1.com.qq.tg.api_sandbox.MyHeader();
client.token.token = "d573b032-507f-4f07-88da-7a4019d36252";
var t = client.getAdvertiserInfo();