public void UrunSatisiniDurdur(string StokKodu) { try { String strSellerCode = StokKodu; n11ProductSellingService.Authentication authentication = new n11ProductSellingService.Authentication(); authentication.appKey = strAppKey; authentication.appSecret = strAppSecret; n11ProductSellingService.StopSellingProductBySellerCodeRequest request = new n11ProductSellingService.StopSellingProductBySellerCodeRequest(); request.auth = authentication; request.productSellerCode = strSellerCode; n11ProductSellingService.ProductSellingServicePortService port = new n11ProductSellingService.ProductSellingServicePortService(); n11ProductSellingService.StopSellingProductBySellerCodeResponse response = port.StopSellingProductBySellerCode(request); n11ProductSellingService.ProductBasic sampleProduct = response.product; //System.out.println(sampleProduct.getId() + " has been stopped."); } catch (Exception ex) { throw ex; } }
public void UrunSatisiniBaaslat(string StokKodu) { try { //String strAppKey = "***"; //String strAppSecret = "***"; String strSellerCode = StokKodu; n11ProductSellingService.Authentication authentication = new n11ProductSellingService.Authentication(); authentication.appKey = strAppKey; authentication.appSecret = strAppSecret; n11ProductSellingService.StartSellingProductBySellerCodeRequest request = new n11ProductSellingService.StartSellingProductBySellerCodeRequest(); request.auth = authentication; request.productSellerCode = strSellerCode; n11ProductSellingService.ProductSellingServicePortService port = new n11ProductSellingService.ProductSellingServicePortService(); //n11ProductSellingService.startSellingProductBySellerCodeResponse response = port.StartSellingProductBySellerCode(request);// startSellingProductBySellerCode(request); n11ProductSellingService.StartSellingProductBySellerCodeResponse response = port.StartSellingProductBySellerCode(request); n11ProductSellingService.ProductBasic sampleProduct = response.product;// getProduct(); } catch (Exception ex) { throw ex; } }