Example #1
0
        private catalogProductRepositoryV1PortTypeClient CreateMagentoCatalogProductRepositoryServiceClient(string baseMagentoUrl)
        {
            var endPoint = new List <string> {
                baseMagentoUrl, SoapApiUrl + "catalogProductRepositoryV1"
            }.BuildUrl(trimTailsSlash: true);

            var customBinding      = CustomBinding(baseMagentoUrl, MessageVersion.Soap12);
            var magentoSoapService = new catalogProductRepositoryV1PortTypeClient(customBinding, new EndpointAddress(endPoint));

            magentoSoapService.Endpoint.Behaviors.Add(new ChannelBehaviour.CustomBehavior()
            {
                AccessToken = this.ApiKey
            });

            return(magentoSoapService);
        }
Example #2
0
 public catalogProductRepositoryV1PortTypeClient RefreshMagentoCatalogProductRepositoryServiceClient(catalogProductRepositoryV1PortTypeClient client)
 {
     return(this.RefreshClient(client));
 }