ws-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WSCOMMONS-446) Serializing an MTOM SOAPEnvelope inlines the attachments
Date Mon, 13 Jul 2009 21:47:14 GMT

    [ https://issues.apache.org/jira/browse/WSCOMMONS-446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12730537#action_12730537
] 

Andreas Veithen commented on WSCOMMONS-446:
-------------------------------------------

The root cause seems to be that StreamingOMSerializer doesn't support the data handler extension.
This causes a problem when OMSerializerUtil#serializeByPullStream is used to serialize to
an MTOMXMLStreamWriter with optimization turned on.

The fact that the issue appears only if the SOAPEnvelope has been built is related to WSCOMMONS-485.

> Serializing an MTOM SOAPEnvelope inlines the attachments
> --------------------------------------------------------
>
>                 Key: WSCOMMONS-446
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-446
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>    Affects Versions: Axiom 1.2.8
>            Reporter: Andreas Veithen
>             Fix For: Axiom 1.2.9
>
>
> Scenario:
> * Create a SOAPEnvelope from an MTOM message using MTOMStAXSOAPModelBuilder.
> * Serialize the SOAPEnvelope using OMNode#serialize(OutputStream), or alternatively call
toString on the SOAPEnvelope.
> * Serialize the SOAPEnvelope again using serializeAndConsume with optimize == true.
> Result: In the serialized message from the last step, the attachments are inlined.
> Skipping the second step gives the expected result, i.e. a message with XOP:Include elements.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message