// start creating the request
TasStub tas = new TasStub();
AddRequest req = new AddRequest();
// add the content of the file
AddRequestChoice_type0 choice = new AddRequestChoice_type0();
DataHandler h = new DataHandler(new ByteArrayDataSource(bytes, "base64"));
choice.setPayload(h);
req.setAddRequestChoice_type0(choice);
// add the TAS metadata
AttachmentMetadata meta = new AttachmentMetadata();
meta.setFilename(fileName);