Hi.
I gererate the class, my problem is that I don´t know put I the catalog a
> new
> product. I create a new produd this:
>
> Catalogs mifichero = (Catalogs)u.unmarshal(in);
> //recuperamos la lista de catalogos y productos
>
> List catalogo = mifichero.getCatalog();
> //Aqui añadimos un producto para el catalogo
>
> ProductTypeImpl nuevoProducto = new ProductTypeImpl();
>
> nuevoProducto.setProductID("C349K7");
> nuevoProducto.setProductName(nomProd);
> nuevoProducto.setPrice(precio);
> nuevoProducto.setVendor(nomEmp);
>
> But now I don´t put th product in the catalog. Could you help me?
> thanks very much
Ask yourself, which objects does the catalogo list contains.
Ask yourself, into which catalog object do you want to put your
nuevoProducto.
Ask yourself, which property of the catalog represents a list of products of
this catalogs.
This is a trivial task, try harder.
Bye.
/lexi