示例#1
0
 public SoapSapRfcConnection(SapSoapRfcDestinationElement destination)
 {
     this.Destination     = destination;
     this._webClient      = new SoapRfcWebClient(this.Destination);
     this.metadataCache   = new SoapRfcMetadataCache(this._webClient);
     this.structureMapper = new SoapRfcStructureMapper(new SoapRfcValueMapper());
 }
 public SoapSapRfcConnection(string name)
 {
     this.Destination     = SapSoapRfcConfigurationSection.GetConfiguration(name);
     this._webClient      = new SoapRfcWebClient(this.Destination);
     this.metadataCache   = new SoapRfcMetadataCache(this._webClient);
     this.structureMapper = new SoapRfcStructureMapper(new SoapRfcValueMapper());
 }
示例#3
0
        protected override SapRfcConnection GetConnection()
        {
            SapSoapRfcDestinationElement cfg = new SapSoapRfcDestinationElement();

            cfg.Client   = "001";
            cfg.Name     = "CUSTOM-SOAP-CONN";
            cfg.RfcUrl   = "http://sap-vm:8000/sap/bc/soap/rfc";
            cfg.WsdlUrl  = "http://sap-vm:8000/sap/bc/soap/wsdl";
            cfg.User     = "******";
            cfg.Password = "******";
            cfg.Timeout  = 5000;
            return(new SoapSapRfcConnection(cfg));
        }
示例#4
0
 public SoapRfcWebClient(SapSoapRfcDestinationElement destination)
 {
     this.destination = destination;
 }