[Logo]
Forums Register Login
Can webservices support vectors of complex data types .. Like custom bean
I tried creating webservices in RAD6.0 and I am having problems trying to use Vectors of a bean .
Is vectors of complex data type supported with WebSphere.
If any one has any information please post some link on how complex
data types can be supported . ?

Thanks
Dhiren
Unless you're willing to serialize it in binary form, you'll need to map your collection to an array. This article should help you get going.
Thanks Dittmer great article .
Exactly what I was trying to do.
One more question. Could I still encapsulate an Vector or ArrayList as my instance variable like this..

public class DEscription {
ArrayList description = null;


public void setDescriptionList(Desc[] desc) {
description = new ArrayList();
description.toArray(desc);
}

public Desc[] getDescriptionList(){

return Desc[] description.toArray();
}
}

Thanks
Dhiren
I see no reason why not, because it never gets transferred over the wire, so you are free to implement as you choose.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 19, 2017 02:03:30.