Hi All,
I'm trying to integrate a remote web service with an hierarchical structure
with a flex User Interface, but I'm facing problems regarding working with
TypedCollection objects.
The master-detail data I'm trying to invoke, populate in my flex-screens:
The client-side ActionScript-class with master- and detail data, as you will
notice, the complexity I'm facing lies in the DosPersonsCollection, the child
collection-objects :
package be.fdms.dto
{
import be.kg.util.collections.TypedCollection;
[Managed]
[RemoteClass(alias="be.ws.proxy.Dossier")]
public class Dossier
{
public var id:int;
public var dotCd:String = "A";
public var dosPersonsCollection:DosPersonsCollection;
package be.kg.fdms.dto
{
import be.util.collections.TypedCollection;
import mx.collections.ArrayCollection;
[Managed]
[RemoteClass(alias="be.ws.proxy.DosPersonsCollection")]
public class DosPersonsCollection
{
public var dosPersons:TypedCollection = new TypedCollection(DosPersons);
}
} My server-side objects, which are java classes used in a web service proxy
client: package be.ws.proxy;public class Dossier implements
java.io.Serializable { protected java.lang.String dotCd; protected int
id; protected be.ws.proxy.DosPersonsCollection dosPersonsCollection;package
be.ws.proxy;public class DosPersonsCollection implements java.io.Serializable {
protected be.ws.proxy.DosPersons[] dosPersons; When I try to invoke the
dossier-element with typed collections filled in: the following error is
thrown, without succesfull invocation of the external webservice:ArgumentError:
Error #2004: One of the parameters is invalid. at
flash.net::NetConnection/flash.net:NetConnection::invokeWithArgsArray() at
flash.net::NetConnection/call() at
mx.messaging.channels::NetConnectionChannel/mx.messaging.channels:NetConnectionChannel::internalSend()
at mx.messaging::Channel/send() at mx.messaging::ChannelSet/send() at
mx.messaging::ChannelSet/channelConnectHandler() at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent() at
mx.messaging::Channel/mx.messaging:Channel::connectSuccess() at
mx.messaging.channels::RTMPChannel/mx.messaging.channels:RTMPChannel::setUpMainNC()
at
mx.messaging.channels::RTMPChannel/mx.messaging.channels:RTMPChannel::tempStatusHandler()Kind
regards,Nathalie
_________________________________________________________________
Neem je vrienden overal mee dankzij Messenger op je gsm.
http://messenger.live.com