java wsdl校验_根据Java wsdl文档生成客户端代码,添加自定义header验证

//------------------------------------------------------------------------------此代码由工具生成。//运行时版本:4.0.30319.42000//

//对此文件的更改可能会导致不正确的行为,并且如果//重新生成代码,这些更改将会丢失。------------------------------------------------------------------------------

usingSystem;usingSystem.ComponentModel;usingSystem.Diagnostics;usingSystem.Web.Services;usingSystem.Web.Services.Protocols;usingSystem.Xml.Serialization;//

//此源代码由 wsdl 自动生成, Version=4.8.3928.0。//

public classCustomSoapHeader : SoapHeader

{public string ClientId { get; set; }public string OperationCode { get; set; }

}///

[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute("code")]

[System.Web.Services.WebServiceBindingAttribute(Name= "com.wynca.esb.provider.sap.limsHttpBinding", Namespace = "http://esb.primeton.com/sap-adaptor")]public partial classcomwyncaesbprovidersaplims : System.Web.Services.Protocols.SoapHttpClientProtocol

{public CustomSoapHeader SoapHeader { get; set; }privateSystem.Threading.SendOrPostCallback ZPP_LIMS_CREATE_BATCH_CHARACTOperationCompleted;///

publiccomwyncaesbprovidersaplims()

{this.Url = "http://127.0.0.2:9090/com.wynca.esb.provider.sap.lims";

}///

public eventZPP_LIMS_CREATE_BATCH_CHARACTCompletedEventHandler ZPP_LIMS_CREATE_BATCH_CHARACTCompleted;///

[System.Web.Services.Protocols.SoapHeader("SoapHeader")]

[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "http://esb.primeton.com/sap-adaptor", ResponseNamespace = "http://esb.primeton.com/sap-adaptor", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle =System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]

[return: System.Xml.Serialization.XmlElementAttribute("RETURN", IsNullable = true)]public RETURN ZPP_LIMS_CREATE_BATCH_CHARACT([System.Xml.Serialization.XmlElementAttribute(IsNullable = true)] ZIMPORT ZIMPORT)

{object[] results = this.Invoke("ZPP_LIMS_CREATE_BATCH_CHARACT", new object[] {

ZIMPORT});return ((RETURN)(results[0]));

}

[System.Web.Services.Protocols.SoapHeader("header")]///

public System.IAsyncResult BeginZPP_LIMS_CREATE_BATCH_CHARACT(ZIMPORT ZIMPORT, System.AsyncCallback callback, objectasyncState)

{return this.BeginInvoke("ZPP_LIMS_CREATE_BATCH_CHARACT", new object[] {

ZIMPORT}, callback, asyncState);

}

[System.Web.Services.Protocols.SoapHeader("header")]///

publicRETURN EndZPP_LIMS_CREATE_BATCH_CHARACT(System.IAsyncResult asyncResult)

{object[] results = this.EndInvoke(asyncResult);return ((RETURN)(results[0]));

}

[System.Web.Services.Protocols.SoapHeader("header")]///

public voidZPP_LIMS_CREATE_BATCH_CHARACTAsync(ZIMPORT ZIMPORT)

{this.ZPP_LIMS_CREATE_BATCH_CHARACTAsync(ZIMPORT, null);

}

[System.Web.Services.Protocols.SoapHeader("header")]public void ZPP_LIMS_CREATE_BATCH_CHARACTAsync(ZIMPORT ZIMPORT, objectuserState)

{if ((this.ZPP_LIMS_CREATE_BATCH_CHARACTOperationCompleted == null))

{this.ZPP_LIMS_CREATE_BATCH_CHARACTOperationCompleted = new System.Threading.SendOrPostCallback(this.OnZPP_LIMS_CREATE_BATCH_CHARACTOperationCompleted);

}this.InvokeAsync("ZPP_LIMS_CREATE_BATCH_CHARACT", new object[] {

ZIMPORT},this.ZPP_LIMS_CREATE_BATCH_CHARACTOperationCompleted, userState);

}private void OnZPP_LIMS_CREATE_BATCH_CHARACTOperationCompleted(objectarg)

{if ((this.ZPP_LIMS_CREATE_BATCH_CHARACTCompleted != null))

{

System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs=((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));this.ZPP_LIMS_CREATE_BATCH_CHARACTCompleted(this, newZPP_LIMS_CREATE_BATCH_CHARACTCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));

}

}///

public new void CancelAsync(objectuserState)

{base.CancelAsync(userState);

}

}///

[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]

[System.SerializableAttribute()]

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute("code")]

[System.Xml.Serialization.XmlTypeAttribute(Namespace= "http://esb.primeton.com/sap-adaptor/rfc")]public partial classZIMPORT

{privateZIFS_001 zCONTROLField;privateArrayOfZPPS_005T[] zDATAField;///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]publicZIFS_001 ZCONTROL

{get{return this.zCONTROLField;

}set{this.zCONTROLField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute("ZDATA", IsNullable = true)]publicArrayOfZPPS_005T[] ZDATA

{get{return this.zDATAField;

}set{this.zDATAField =value;

}

}

}///

[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]

[System.SerializableAttribute()]

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute("code")]

[System.Xml.Serialization.XmlTypeAttribute(Namespace= "http://esb.primeton.com/sap-adaptor/rfc")]public partial classZIFS_001

{private stringgUIDField;private stringiFDICField;private stringiFNUMField;private stringiFOPTField;private stringoRSYSField;private stringtRSYSField;///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringGUID

{get{return this.gUIDField;

}set{this.gUIDField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringIFDIC

{get{return this.iFDICField;

}set{this.iFDICField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringIFNUM

{get{return this.iFNUMField;

}set{this.iFNUMField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringIFOPT

{get{return this.iFOPTField;

}set{this.iFOPTField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringORSYS

{get{return this.oRSYSField;

}set{this.oRSYSField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringTRSYS

{get{return this.tRSYSField;

}set{this.tRSYSField =value;

}

}

}///

[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]

[System.SerializableAttribute()]

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute("code")]

[System.Xml.Serialization.XmlTypeAttribute(Namespace= "http://esb.primeton.com/sap-adaptor/rfc")]public partial classRETURN

{private stringgUIDField;private stringzDATAField;private stringbUSNOField;private stringiFMSGField;private stringiF_STATUField;///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringGUID

{get{return this.gUIDField;

}set{this.gUIDField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringZDATA

{get{return this.zDATAField;

}set{this.zDATAField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringBUSNO

{get{return this.bUSNOField;

}set{this.bUSNOField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringIFMSG

{get{return this.iFMSGField;

}set{this.iFMSGField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringIF_STATU

{get{return this.iF_STATUField;

}set{this.iF_STATUField =value;

}

}

}///

[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]

[System.SerializableAttribute()]

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute("code")]

[System.Xml.Serialization.XmlTypeAttribute(Namespace= "http://esb.primeton.com/sap-adaptor/rfc")]public partial classZPPS_005S

{private stringtZMSField;private stringaTINNField;private stringcHARGField;private stringmATNRField;private stringwERKSField;private stringhSDATField;private stringaTBEZField;private stringbLANK1Field;private stringbLANK10Field;private stringbLANK2Field;private stringbLANK3Field;private stringbLANK4Field;private stringbLANK5Field;private stringbLANK6Field;private stringbLANK7Field;private stringbLANK8Field;private stringbLANK9Field;///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringTZMS

{get{return this.tZMSField;

}set{this.tZMSField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringATINN

{get{return this.aTINNField;

}set{this.aTINNField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringCHARG

{get{return this.cHARGField;

}set{this.cHARGField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringMATNR

{get{return this.mATNRField;

}set{this.mATNRField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringWERKS

{get{return this.wERKSField;

}set{this.wERKSField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringHSDAT

{get{return this.hSDATField;

}set{this.hSDATField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringATBEZ

{get{return this.aTBEZField;

}set{this.aTBEZField =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringBLANK1

{get{return this.bLANK1Field;

}set{this.bLANK1Field =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringBLANK10

{get{return this.bLANK10Field;

}set{this.bLANK10Field =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringBLANK2

{get{return this.bLANK2Field;

}set{this.bLANK2Field =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringBLANK3

{get{return this.bLANK3Field;

}set{this.bLANK3Field =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringBLANK4

{get{return this.bLANK4Field;

}set{this.bLANK4Field =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringBLANK5

{get{return this.bLANK5Field;

}set{this.bLANK5Field =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringBLANK6

{get{return this.bLANK6Field;

}set{this.bLANK6Field =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringBLANK7

{get{return this.bLANK7Field;

}set{this.bLANK7Field =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringBLANK8

{get{return this.bLANK8Field;

}set{this.bLANK8Field =value;

}

}///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]public stringBLANK9

{get{return this.bLANK9Field;

}set{this.bLANK9Field =value;

}

}

}///

[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]

[System.SerializableAttribute()]

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute("code")]

[System.Xml.Serialization.XmlTypeAttribute(Namespace= "http://esb.primeton.com/sap-adaptor/rfc")]public partial classArrayOfZPPS_005T

{privateZPPS_005S zPPS_005SField;///

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]publicZPPS_005S ZPPS_005S

{get{return this.zPPS_005SField;

}set{this.zPPS_005SField =value;

}

}

}///

[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]public delegate void ZPP_LIMS_CREATE_BATCH_CHARACTCompletedEventHandler(objectsender, ZPP_LIMS_CREATE_BATCH_CHARACTCompletedEventArgs e);///

[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute("code")]public partial classZPP_LIMS_CREATE_BATCH_CHARACTCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs

{private object[] results;internal ZPP_LIMS_CREATE_BATCH_CHARACTCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, objectuserState) :base(exception, cancelled, userState)

{this.results =results;

}///

publicRETURN Result

{get{this.RaiseExceptionIfNecessary();return ((RETURN)(this.results[0]));

}

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值