You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2009/03/05 00:13:59 UTC

[jira] Created: (WSCOMMONS-446) Serializing an MTOM SOAPEnvelope inlines the attachments

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.


[jira] Resolved: (WSCOMMONS-446) Serializing an MTOM SOAPEnvelope inlines the attachments

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved WSCOMMONS-446.
---------------------------------------

    Resolution: Fixed

> 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
>            Assignee: 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.


[jira] Assigned: (WSCOMMONS-446) Serializing an MTOM SOAPEnvelope inlines the attachments

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen reassigned WSCOMMONS-446:
-----------------------------------------

    Assignee: Andreas Veithen

> 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
>            Assignee: 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.


[jira] Commented: (WSCOMMONS-446) Serializing an MTOM SOAPEnvelope inlines the attachments

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (WSCOMMONS-446) Serializing an MTOM SOAPEnvelope inlines the attachments

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678980#action_12678980 ] 

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

A test case is available in MTOMStAXSOAPModelBuilderTest (see r750219).

> 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.