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

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

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


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


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

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


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

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

Asankha C. Perera reopened SYNAPSE-187:
---------------------------------------


SYNAPSE-191 is this same bug, and thus I am fixing this

> 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


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

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548145 ] 

Ruwan Linton commented on SYNAPSE-187:
--------------------------------------

I have dig in to the XSLT mediator code and it is not very easy to support this functionality, because it will require a SOAPEnvelope replacement and also when it comes to SOAP there is only one element in the SOAP body, and hence there is no requirement from the XSLT mediator to do a transformation on the Body.

In effect XSLT mediator has a limitation on the source XPATH that limits it either inside to the payload or headers. Since there are many other ways to process the message using header mediator property mediator and so on. Shall we keep this limitation as it is.

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


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

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

Asankha C. Perera resolved SYNAPSE-187.
---------------------------------------

    Resolution: Fixed
      Assignee: Asankha C. Perera  (was: Ruwan Linton)

Applied patch from Andreas with more modifications to support both envelope and body

> 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: Asankha C. Perera
>         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


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

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

Ruwan Linton resolved SYNAPSE-187.
----------------------------------

    Resolution: Won't Fix

This will not be fixed at this point, this can be achieved by various other ways like using header mediator and XQuery mediator. XSLT mediator can only be used to transform payload or part of payload and one of the headers inside the soap Header at least for the moment.

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