Hello and thanks for the reply.

In fact, the ideea is 
- to work with beans.
- how would you do in java to nest those 2 beans under a multipart/mixed?


I tried something like


                // ------------ THE SUB LIST

                List<Attachment> listSecondMultipart = new 
ArrayList<Attachment>();

                listSecondMultipart.add(new Attachment("beta", 
"application/json", new
SomeBean("beta")));
                listSecondMultipart.add(new Attachment("gamma", 
"application/json", new
SomeBean("gamma")));


                // -------------- THE GENERAL LIST

                List<Attachment> list = new ArrayList<Attachment>();
                
                list.add(new Attachment("alfa", "application/json", new
SomeBean("alfa")));
                list.add(new Attachment("delta", "multipart/mixed",
listSecondMultipart));


But the generated form-data is a chaos.

So it doesn't serialize as i expect.


Thanks.



--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Reply via email to