//17.07.19: KA: Request to SOAP Shipment service
        public APIResultOfArrayOfShippingCarrier GetShippingCarriers()
        {
            EndpointAddress           endpoint = new EndpointAddress(client._xSiteMaster.EndpointAddressValueShipment);
            ShippingServiceSoapClient service  = new ShippingServiceSoapClient(new BasicHttpsBinding(), endpoint);

            return(service.GetShippingCarrierList(new APICredentials()
            {
                DeveloperKey = client._xSiteMaster.DevKey,
                Password = client._xSiteMaster.DevPassword
            }, client._xSiteMaster.AccountId));
        }
		public ShippingService( APICredentials credentials, string accountId )
		{
			this._credentials = credentials;
			this.AccountId = accountId;
			this._client = new ShippingServiceSoapClient();
		}
Beispiel #3
0
 public ShippingService(APICredentials credentials, string accountId)
 {
     this._credentials = credentials;
     this.AccountId    = accountId;
     this._client      = new ShippingServiceSoapClient();
 }