Código Flex :
var result:ArrayCollection = new ArrayCollection();
for (var i:int = 0; i<videos.length; i++) {
var v:valueObjects.Video = new valueObjects.Video();
var video:VideoData = videos.getItemAt(i) as VideoData;
v.duration = video.duration;
v.id_video = Number(video.idvideo);
v.videoname = video.video;
result.addItem(v);
}
plicareWebService.setVideoList(streamName.text, result);
El webservice dice que setvideolist hay que pasarle un string y un Video[], por lo que la función setVideoList cuando la he importado del webservice lo ha tomao como un ArrayCollection.
Pues bien, cuando ejecuto eso recibo el siguiente error:
Cannot marshall type 'http://www.w3.org/2001/XMLSchema::VideoList' to simple content.
¿Alguna idea?
Saludos y gracias por adelantado
