J'appelle un service dans lequel je régler les OUTBOUND_MESSAGE_ATTACHMENTS de la manière suivante:OUTBOUND_MESSAGE_ATTACHMENTS ne pas arriver à côté serveur
Map<String, DataHandler> attachmentsMap = (Map<String, DataHandler>) context.get(MessageContext.OUTBOUND_MESSAGE_ATTACHMENTS);
ByteArrayDataSource bads = new ByteArrayDataSource(file, PDF_MIME_TYPE);
DataHandler dh = new DataHandler(bads);
AttachmentPart attachmentPart = message.createAttachmentPart();
attachmentPart.setContent(new ByteArrayInputStream(file), PDF_MIME_TYPE);
attachmentPart.setContentId(fileId);
String contentDisposition = "Content-Disposition: attachment; name=\"" + fileId + "\"";
attachmentPart.addMimeHeader("Content-Disposition", contentDisposition);
message.addAttachmentPart(attachmentPart);
attachmentsMap.put(fileId, dh);
Et sur le côté serveur, je pense trouver les mêmes informations dans les INBOUND_MESSAGE_ATTACHMENTS mais semble que rien n'est envoyé.
Pouvez-vous ce que je fais mal?
je vis que je dois mettre en quelque sorte sur AttachmentOutInterceptor la prochaine propriété: props.put (AttachmentOutInterceptor.WRITE_ATTACHMENTS, Boolean.TRUE). Et après cela, je dois mettre dans JaxWsProxyFactoryBean. Mais la question est d'où devrais-je obtenir JaxWsProxyFactoryBean? – Aditzu