Exemple #1
0
        private PxAgreementSoapClient GetPxAgreementClient()
        {
            Uri baseAddress;

            if (UseTestEnvironment)
            {
                baseAddress = new Uri("https://external.externaltest.payex.com/pxagreement/pxagreement.asmx");
            }
            else
            {
                baseAddress = new Uri("https://external.payex.com/pxagreement/pxagreement.asmx");
            }
            var payexOrder = new PxAgreementSoapClient(
                new BasicHttpBinding(BasicHttpSecurityMode.Transport),
                new EndpointAddress(baseAddress)
                );

            return(payexOrder);
        }
 public PxAgreementSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(PxAgreementSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
 public PxAgreementSoapClient(EndpointConfiguration endpointConfiguration) :
     base(PxAgreementSoapClient.GetBindingForEndpoint(endpointConfiguration), PxAgreementSoapClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }