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());
 }
Exemple #2
0
        public void ParametersCanBeRead()
        {
            var destination = SapSoapRfcConfigurationSection.GetConfiguration("TST-SOAP");

            Assert.Equal("TST-SOAP", destination.Name);
            Assert.Equal("http://sap-vm:8000/sap/bc/soap/rfc", destination.RfcUrl);
            Assert.Equal("http://sap-vm:8000/sap/bc/soap/wsdl", destination.WsdlUrl);
            Assert.Equal("001", destination.Client);
            Assert.Equal("rfc_super", destination.User);
            Assert.Equal("rfcsuper1", destination.Password);
            Assert.Equal(5000, destination.Timeout);
        }
Exemple #3
0
 public SoapSapRfcConnection(string name)
     : this(SapSoapRfcConfigurationSection.GetConfiguration(name))
 {
 }