Bonjour,

Comment définir un List<News> en idl, j'ai essayé avec :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
typedef sequence<News> ListeDeNews;
ça ne marche pas :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
OpenORB  IDL To Java Compiler / (c) 2002 The Community OpenORB
[..]
<idl_speficication>
<idl_definition> : 39
<idl_definition> : 49
<block_symbole>
<block_symbole>
<block_symbole>
<idl_definition> : 49
<block_symbole>
<block_symbole>
<block_symbole>
<block_symbole>
<block_symbole>
<idl_definition> : 52
<idl_definition> : 49
<block_symbole>
<block_symbole>
<block_symbole>
<block_symbole>
<block_symbole>
<block_symbole>
<block_symbole>
<block_symbole>
<block_symbole>
<block_symbole>
<block_symbole>
<block_symbole>
<idl_definition> : 37
Now translate to Java...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module Service{

	struct Humeur{
		 string humeur;
		 long idClient;
	};

	struct News{
		 string texte;
		 string dateAjout;
		 string titre;
		 long idClient;
	};

	typedef sequence<News> ListeDeNews;

	struct Client{ 

		 string login;
	     string password;
	     string ip;
	     string joinGroup;
	     string nom;
	     string prenom;
	     string date_de_naissance;
	     string langue;
		 long idClient;
		 Humeur humeur;
		 ListeDeNews listeNews;
	};	
 
	interface Facebook{
		 Client infoClient(in string ipClient);
		 Humeur humeurClient(in string ipClient);
		 ListeDeNews listeNewsClient(in string ipClient);
	};
};
Que faire s'il vous plait ?

Merci d'avance.