Herkese Merhaba
N11 Soap servisini kullanarak sipariş numarasına göre filtreleyip bir sipariş listesini çekmeye çalışıyorum.
Kod bloğum şu şekilde;
// Kimlik doğrulama
Authentication authentication = new Authentication();
authentication.appKey = api.ClientId;
authentication.appSecret = api.Password;
#region Sipariş Listesi
OrderDataListRequest searchData = new OrderDataListRequest()
{
orderNumber = "209515745435"
};
PagingData pagingData = new PagingData() { currentPage = 0, pageSize = 100 };
DetailedOrderListRequest listRequest = new DetailedOrderListRequest()
{
auth = authentication,
pagingData = pagingData,
searchData = searchData
};
OrderServicePortClient client = new OrderServicePortClient();
DetailedOrderListResponse1 response = await client.DetailedOrderListAsync(listRequest);
return response.DetailedOrderListResponse.orderList.Length.ToString();
#endregionBurada şöyle bir durumla karşılaşıyorum. Api bağlantısı başarılı, pagingData içerisini kontrol ettiğimde 1 adet kayıt getirdiğini görüyorum fakat orderList içerisinde o siparişi görüntüleyemiyorum. Konu ile alakalı GIF eklemesinde bulunuyorum.
Sorun ne olabilir? İlginiz ve yardımınız için teşekkür ederim, Herkese sağlıklı günler dilerim.