You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2007/12/20 14:45:43 UTC

[jira] Updated: (SYNAPSE-187) XSLT mediator does not work properly when the source is given as the Envelope or Envelope/Body in the Xpath

     [ https://issues.apache.org/jira/browse/SYNAPSE-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen updated SYNAPSE-187:
------------------------------------

    Attachment: xslt-envelope-patch.txt

I think that making this work for transformations on the SOAP envelope is not so difficult. Basically two things are required:

1) MessageContext#setEnvelope should be called instead of using the insertSiblingAfter/detach approach (the latter approach doesn't work for the root element).
2) StAXSOAPModelBuilder should be used instead of StAXOMBuilder (in order to produce a SOAPEnvelope object).

I modified XSLTMediator (see attached patch) and it works very well for source="/soapenv:Envelope".

> XSLT mediator does not work properly when the source is given as the Envelope or Envelope/Body in the Xpath
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-187
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-187
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Ruwan Linton
>            Assignee: Ruwan Linton
>         Attachments: xslt-envelope-patch.txt
>
>
> When the XSLT source is specified as the soap Envelope or as the soap Body then the XSLT transformation does not applies correctly

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