Guten Tag Thorsten Schöning,
am Sonntag, 23. September 2018 um 20:20 schrieben Sie:
> With chunked encoding enabled, that byte[] was not created and instead
> the OutputStream for sending over the wire wrapped into some
> chunking-thing and forwarded to SOAPMessageFormatter. That read my
> SwA-attachments and wrote them to the wrapped OutputStream, actually
> sending data directly over the wire.
Forgot to mention some code:
> if (chunked) {
> messageFormatter.writeTo(messageContext, format, outStream,
> isAllowedRetry);
> } else {
> if (bytes == null) {
> bytes = messageFormatter.getBytes(messageContext, format);
> }
> outStream.write(bytes);
> }
https://github.com/wso2/wso2-axis2/blob/master/modules/transport/http/src/org/apache/axis2/transport/http/AxisRequestEntity.java#L84
> Attachments attachments = msgCtxt.getAttachmentMap();
> for (String contentID : attachments.getAllContentIDs()) {
> if
> (!contentID.equalsIgnoreCase(attachments.getSOAPPartContentID())) {
>
> attachmentsWriter.writePart(attachments.getDataHandler(contentID), contentID);
> }
> }
https://github.com/wso2/wso2-axis2/blob/master/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java#L235
Mit freundlichen Grüßen,
Thorsten Schöning
--
Thorsten Schöning E-Mail: [email protected]
AM-SoFT IT-Systeme http://www.AM-SoFT.de/
Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]