ertan2002 adlı üyeden alıntı: mesajı görüntüle
hatadan neden bahsetmemissin?

iki kod arasindaki fark ilk bakista su

var Kategoriler= proxy.GetTopLevelCategories(request);

burda proxy objesi üzerinden sorgu yapmissin ama proxy nedir belli degil. Ayni yerde port degiskenini kullanarak metodu cagirsana

var Kategoriler= port.GetTopLevelCategories(request);

bakalim sonuc ne
cevabınız için teşekkür ederim. Öncelikle kusura bakmayın kendim değişiklikler yaparken portu proxy olarak değiştirmemişim. kategorileri GetTopLevelCategories ile getiriyorum sorun şu n11'in bize verdiği aşağıdaki java örnek dökümanda ProductServicePort port = new ProductServicePortService().getProductServicePortS oap11(); obje tanımlaması c# da geçerli olmuyor ve bu yüzden GetProductList getiremiyorum.

GetProductList Örnek Çağrı (JAVA) 

public static void main (String []args) {
    
    String strAppKey = "***";
    String strAppSecret = "***";
    int currentPageValue = 0;
    int pageSizeValue = 3;
    
    Authentication authentication = new Authentication();
    authentication.setAppKey(strAppKey);
    authentication.setAppSecret(strAppSecret);

    RequestPagingData requestPagingData = new RequestPagingData();
    requestPagingData.setCurrentPage(currentPageValue);
    requestPagingData.setPageSize(pageSizeValue);

    GetProductListRequest getProductListRequest = new GetProductListRequest();
    getProductListRequest.setAuth(authentication);
    getProductListRequest.setPagingData(requestPagingData);

    ProductServicePort port = new ProductServicePortService().getProductServicePortSoap11();
    GetProductListResponse response = port.getProductList(getProductListRequest);
    List<ProductBasic> productList = response.getProducts().getProduct();

    for (ProductBasic sampleProduct:productList
            ) {
        System.out.println("Title of product is : " + sampleProduct.getTitle());
    }
}
C# ile benim yaptığım: