protected abstract Object readAttachment(Attachment att, MessageContext context) throws IOException;
public void writeObject(Object object, MessageWriter writer, MessageContext context)
throws XFireFault
{
Attachments attachments = context.getOutMessage().getAttachments();
if ( attachments == null )
{
attachments = new JavaMailAttachments();
context.getOutMessage().setAttachments(attachments);
}
String id = AttachmentUtil.createContentID(getSchemaType().getNamespaceURI());
Attachment att = createAttachment(object, id);
attachments.addPart(att);
String contentType = getContentType(object, context);
if (contentType != null)
{
MessageWriter mt = writer.getAttributeWriter(XML_MIME_TYPE);