You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Michael Griffin (JIRA)" <ji...@apache.org> on 2007/02/21 23:19:05 UTC

[jira] Created: (SYNAPSE-56) XSLTMediator appends transformation result to original SOAPBody contents

XSLTMediator appends transformation result to original SOAPBody contents
------------------------------------------------------------------------

                 Key: SYNAPSE-56
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-56
             Project: Synapse
          Issue Type: Bug
          Components: extensions
    Affects Versions: 0.91
         Environment: all
            Reporter: Michael Griffin


When using the XSLTMediator to transform the response of the target web service, the transformation result is appended to the contents of the SOAPBody element.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


[jira] Updated: (SYNAPSE-56) XSLTMediator appends transformation result to original SOAPBody contents

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

Michael Griffin updated SYNAPSE-56:
-----------------------------------

    Attachment: XSLTMediator.patch

The attached patch provides a fix for this issue.  

The patch uses a sequence of sourceNode.insertSiblingAfter(result) and sourceNode.detach() to replace the sourceNode with the transformation result.  

This is a change from the original approach which used *.getFirstOMChild().detach() and then either *.setFirstChild(result) or *.addChild(result) depending on the position of the parent in the hierarchy. 

> XSLTMediator appends transformation result to original SOAPBody contents
> ------------------------------------------------------------------------
>
>                 Key: SYNAPSE-56
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-56
>             Project: Synapse
>          Issue Type: Bug
>          Components: extensions
>    Affects Versions: 0.91
>         Environment: all
>            Reporter: Michael Griffin
>         Attachments: XSLTMediator.patch
>
>
> When using the XSLTMediator to transform the response of the target web service, the transformation result is appended to the contents of the SOAPBody element.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


[jira] Resolved: (SYNAPSE-56) XSLTMediator appends transformation result to original SOAPBody contents

Posted by "indika priyantha kumara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

indika priyantha kumara resolved SYNAPSE-56.
--------------------------------------------

    Resolution: Fixed
      Assignee: indika priyantha kumara


Thanks Michael. I applied your patch. Code committed to the current synapse trunk .

thanks 
indika

> XSLTMediator appends transformation result to original SOAPBody contents
> ------------------------------------------------------------------------
>
>                 Key: SYNAPSE-56
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-56
>             Project: Synapse
>          Issue Type: Bug
>          Components: extensions
>    Affects Versions: 0.91
>         Environment: all
>            Reporter: Michael Griffin
>         Assigned To: indika priyantha kumara
>         Attachments: XSLTMediator.patch
>
>
> When using the XSLTMediator to transform the response of the target web service, the transformation result is appended to the contents of the SOAPBody element.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org