private catalogInventoryStockRegistryV1PortTypeClient CreateMagentoCatalogInventoryStockServiceClient(string baseMagentoUrl) { var endPoint = new List <string> { baseMagentoUrl, SoapApiUrl + "catalogInventoryStockRegistryV1" }.BuildUrl(trimTailsSlash: true); var magentoSoapService = new catalogInventoryStockRegistryV1PortTypeClient(this._customBinding, new EndpointAddress(endPoint)); magentoSoapService.Endpoint.Behaviors.Add(new ChannelBehaviour.CustomBehavior() { AccessToken = this.ApiKey }); return(magentoSoapService); }
public catalogInventoryStockRegistryV1PortTypeClient RefreshMagentoCatalogInventoryStockServiceClient(catalogInventoryStockRegistryV1PortTypeClient client) { return(this.RefreshClient(client)); }