Witam

Dopiero zaczynam swoja przygode z allegro webapi i juz jest w miare ok.. potrafie odczytywac dane jak sa zwracane proste typy zmiennych (stringi,int itp.). Schody zaczynaja sie gdy zwraca swoje typy np. doGetMyAddresses (opis funkcji http://motoallegro.pl/webapi/documentation.php/show/id,724 )

wywolanie wyglada mniej wiecej tak:

 
var
adress: AddressesInfoStruct;
begin

adress:=uploader.GetAllegroWebApiPortType.doGetMyAddresses(sesja)

end;

pytanie jak dobrac sie do pobranych wartosci ? np. user_full_name.

a tak jest zdefiniowania struktura AddressesInfoStruct;

 

AddressInfoStruct = class(TRemotable)
  private
    Faddress_type: Integer;
    Faddress_user_data: AddressUserDataStruct;
  public
    destructor Destroy; override;
  published
    property address_type:      Integer                read Faddress_type write Faddress_type;
    property address_user_data: AddressUserDataStruct  read Faddress_user_data write Faddress_user_data;
  end;

  AddressUserDataStruct = class(TRemotable)
  private
    Fuser_company: string;
    Fuser_full_name: string;
    Fuser_address: string;
    Fuser_postcode: string;
    Fuser_city: string;
  published
    property user_company:   string  read Fuser_company write Fuser_company;
    property user_full_name: string  read Fuser_full_name write Fuser_full_name;
    property user_address:   string  read Fuser_address write Fuser_address;
    property user_postcode:  string  read Fuser_postcode write Fuser_postcode;
    property user_city:      string  read Fuser_city write Fuser_city;
  end;


  AddressesInfoStruct = array of AddressInfoStruct;

Dzieki z gory za podpowiedzi !

pozdrawiam