Esempio n. 1
0
 private static void SubmitProductPackageTest(MarketplaceAPIService serviceClient, HeaderMessage headerMessage)
 {
     ProductPackageRequest productPackageRequest = new ProductPackageRequest()
     {
         ZipFileFullPath = "http://www.unsite.fr/product.zip"
     };
     var submitProductPackageResponse = serviceClient.SubmitProductPackage(headerMessage, productPackageRequest);
 }
Esempio n. 2
0
        public SubmitProductPackageMessage(Request MyRequest)
        {
            _Environment = MyRequest._EnvironmentSelected;
            GetService();
            _ProductPackageRequest = new ProductPackageRequest();
            _ProductPackageRequest.ZipFileFullPath = MyRequest._Parameters["Values"];
            _ProductIntegrationReportMessage       = _MarketplaceAPIService.SubmitProductPackageAsync(MyRequest._HeaderMessage, _ProductPackageRequest);
            XmlSerializer xmlSerializer = new XmlSerializer(_ProductIntegrationReportMessage.Result.GetType());

            _RequestXML = _RequestInterceptor.LastRequestXML;
            _MessageXML = _RequestInterceptor.LastResponseXML;
        }
 public SubmitProductPackageRequest()
 {
     _hasParameters         = true;
     _ProductPackageRequest = new ProductPackageRequest();
     _Parameters.Add("zipfilepath", "");
 }