DBReader/SAPKernel/SAPProxy
//------------------------------------------------------------------------------
//
// This code was generated by a SAP. NET Connector Proxy Generator Version 1.0
// Created at 06.10.2003
// Created from Windows 2000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using System;
using System.Text;
using System.Collections;
using System.Runtime.InteropServices;
using System.Xml.Serialization;
using System.Web.Services;
using System.Web.Services.Description;
using System.Web.Services.Protocols;
using SAP.Connector;
namespace SAPReader.SAPKernel
{
// Client SAP proxy class
[WebServiceBinding(Name="", Namespace="urn:sap-com:document:sap:rfc:functions")]
public class SAPProxy : SAPClient
{
// Constructors
public SAPProxy(){}
public SAPProxy(string ConnectionString) : base(ConnectionString){}
// Exception constants
public const string Data_Buffer_Exceeded = "DATA_BUFFER_EXCEEDED";
public const string Field_Not_Valid = "FIELD_NOT_VALID";
public const string Not_Authorized = "NOT_AUTHORIZED";
public const string Option_Not_Valid = "OPTION_NOT_VALID";
public const string Table_Not_Available = "TABLE_NOT_AVAILABLE";
public const string Table_Without_Data = "TABLE_WITHOUT_DATA";
// Client call Methods
// Generated method used to call the remote function module RFC_READ_TABLE
// Throws: Data_Buffer_Exceeded Field_Not_Valid Not_Authorized Option_Not_Valid Table_Not_Available Table_Without_Data
[RfcMethod(AbapName = "RFC_READ_TABLE")]
[SoapDocumentMethodAttribute("",
RequestNamespace = "urn:sap-com:document:sap:rfc:functions",
RequestElementName = "RFC_READ_TABLE",
ResponseNamespace = "urn:sap-com:document:sap:rfc:functions",
ResponseElementName = "RFC_READ_TABLE.Response")]
public void Rfc_Read_Table (
[RfcParameter(AbapName = "DELIMITER",RfcType=RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1)]
[XmlElement("DELIMITER", IsNullable=false)]
string Delimiter,
[RfcParameter(AbapName = "NO_DATA",RfcType=RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1)]
[XmlElement("NO_DATA", IsNullable=false)]
string No_Data,
[RfcParameter(AbapName = "QUERY_TABLE",RfcType=RFCTYPE.RFCTYPE_CHAR, Optional = false, Direction = RFCINOUT.IN, Length = 30)]
[XmlElement("QUERY_TABLE", IsNullable=false)]
string Query_Table,
[RfcParameter(AbapName = "ROWCOUNT",RfcType=RFCTYPE.RFCTYPE_INT, Optional = true, Direction = RFCINOUT.IN, Length = 4)]
[XmlElement("ROWCOUNT", IsNullable=false)]
int Rowcount,
[RfcParameter(AbapName = "ROWSKIPS",RfcType=RFCTYPE.RFCTYPE_INT, Optional = true, Direction = RFCINOUT.IN, Length = 4)]
[XmlElement("ROWSKIPS", IsNullable=false)]
int Rowskips,
[RfcParameter(AbapName = "DATA",RfcType=RFCTYPE.RFCTYPE_ITAB, Optional = false, Direction = RFCINOUT.INOUT)]
[XmlArray("DATA", IsNullable=false)]
[XmlArrayItem("TAB512", IsNullable=false)]
ref TAB512Table Data,
[RfcParameter(AbapName = "FIELDS",RfcType=RFCTYPE.RFCTYPE_ITAB, Optional = false, Direction = RFCINOUT.INOUT)]
[XmlArray("FIELDS", IsNullable=false)]
[XmlArrayItem("RFC_DB_FLD", IsNullable=false)]
ref RFC_DB_FLDTable Fields,
[RfcParameter(AbapName = "OPTIONS",RfcType=RFCTYPE.RFCTYPE_ITAB, Optional = false, Direction = RFCINOUT.INOUT)]
[XmlArray("OPTIONS", IsNullable=false)]
[XmlArrayItem("RFC_DB_OPT", IsNullable=false)]
ref RFC_DB_OPTTable Options)
{
object[]results = null;
results = this.SAPInvoke("Rfc_Read_Table",new object[] {
Delimiter,No_Data,Query_Table,Rowcount,Rowskips,Data,Fields,Options });
Data = (TAB512Table) results[0];
Fields = (RFC_DB_FLDTable) results[1];
Options = (RFC_DB_OPTTable) results[2];
return;
}
public IAsyncResult BeginRfc_Read_Table (string Delimiter,string No_Data,string Query_Table,int Rowcount,int Rowskips,ref SAPKernel.TAB512Table Data,ref SAPKernel.RFC_DB_FLDTable Fields,ref RFC_DB_OPTTable Options, System.AsyncCallback callback, object asyncState)
{
return this.BeginSAPInvoke("Rfc_Read_Table",new object[] {
Delimiter,No_Data,Query_Table,Rowcount,Rowskips,Data,Fields,Options }, callback, asyncState);
}
public void EndRfc_Read_Table (System.IAsyncResult asyncResult, ref SAPKernel.TAB512Table Data,ref SAPKernel.RFC_DB_FLDTable Fields,ref RFC_DB_OPTTable Options)
{
object[]results = null;
results = this.EndSAPInvoke(asyncResult);
Data = (TAB512Table) results[0];
Fields = (RFC_DB_FLDTable) results[1];
Options = (RFC_DB_OPTTable) results[2];
return;
}
} // rfm client proxy
} // Namespace
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/232040/viewspace-969010/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DBReader/SAPKernel/SAPProxy.resxAPKAPP
- DBReader/SAPKernel/RFC_DB_FLDAPK
- DBReader/SAPKernel/RFC_DB_OPTAPK
- DBReader/SAPKernel/RFC_DB_FLDTableAPK
- DBReader/SAPKernel/TAB512APK
- DBReader/SAPKernel/RFC_DB_OPTTableAPK
- DBReader/SAPKernel/TAB512TableAPK
- DBReader/Classes/LogonGo
- 一個基於 SourceGenerator 生成 從 dbReader轉換為 class 資料的效能測試實驗