try {
dao=_taskDAOFactory.openConnection();
OMElementQueue rootQueue = new OMElementQueue(requestElement);
String taskID = requireElementValue(rootQueue, "taskId");
OMElement attachmentElement = requireElement(rootQueue, "attachment");
Attachment attachment = new AttachmentUnmarshaller().unmarshalAttachment(attachmentElement);
String participantToken = requireElementValue(rootQueue, "participantToken");
_server.addAttachment(dao,taskID, attachment, participantToken);
return createOkResponse();
} catch (Exception e) {
throw makeFault(e);