Esempio n. 1
0
        private static Product getProdDetails(long prodId)
        {
            var authentication1 = new com.n11.api.Authentication();
            authentication1.appKey = apiAnahtari1; //api anahtarınız
            authentication1.appSecret = apiSifresi1;//api şifeniz

            com.n11.api.GetProductByProductIdRequest ProductRequest = new com.n11.api.GetProductByProductIdRequest();
            ProductRequest.auth = authentication1;

            com.n11.api.ProductServicePortService port = new ProductServicePortService();

            ProductRequest.productId = prodId;

            com.n11.api.GetProductByProductIdResponse response = port.GetProductByProductId(ProductRequest);
            var product = response.product;
            return product;
        }
Esempio n. 2
0
 /// <remarks/>
 public void GetProductByProductIdAsync(GetProductByProductIdRequest GetProductByProductIdRequest, object userState) {
     if ((this.GetProductByProductIdOperationCompleted == null)) {
         this.GetProductByProductIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProductByProductIdOperationCompleted);
     }
     this.InvokeAsync("GetProductByProductId", new object[] {
                 GetProductByProductIdRequest}, this.GetProductByProductIdOperationCompleted, userState);
 }
Esempio n. 3
0
        private static Product product(long prodId)
        {
            var authentication1 = new com.n11.api.Authentication();
            authentication1.appKey = apiAnahtari1; //api anahtarınız
            authentication1.appSecret = apiSifresi1;//api şifeniz

            ProductServicePortService proxy = new ProductServicePortService();
            GetProductByProductIdRequest request = new GetProductByProductIdRequest();
            request.auth = authentication1;
            request.productId = prodId;

            GetProductByProductIdResponse response = new GetProductByProductIdResponse();
            var product = proxy.GetProductByProductId(request).product;

            return product;
        }
Esempio n. 4
0
 /// <remarks/>
 public void GetProductByProductIdAsync(GetProductByProductIdRequest GetProductByProductIdRequest) {
     this.GetProductByProductIdAsync(GetProductByProductIdRequest, null);
 }