You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Ravi Undupitiya (JIRA)" <ji...@apache.org> on 2016/05/21 08:37:13 UTC

[jira] [Updated] (SYNAPSE-636) Add Python script examples to the Script Mediator samples

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

Ravi Undupitiya updated SYNAPSE-636:
------------------------------------
    Attachment: sample355.diff

Hi Hiranya, 

Please find a python sample attached. One of the unfortunate things here is the getPayloadXML returns a str object in python. Ideally we should be able to load an XML parser, however for simplicity I've created the transformation sample using string manipulations. 

The diff includes necessary files and documentation. 

> Add Python script examples to the Script Mediator samples
> ---------------------------------------------------------
>
>                 Key: SYNAPSE-636
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-636
>             Project: Synapse
>          Issue Type: New Feature
>          Components: Script mediator
>    Affects Versions: NIGHTLY
>         Environment: Ubuntu 9.10
> Sun JDK 1.5
>            Reporter: Heshan Suriyaarachchi
>            Assignee: Heshan Suriyaarachchi
>             Fix For: FUTURE
>
>         Attachments: sample355.diff
>
>
> Hi,
>    Currently, Synapse only ships javascript, ruby samples [1] for the Script Mediator. It would be useful if Synapse contained some samples that show, how a Python script can be used with the Script Mediator. This can be done by adding the jython.jar to the lib folder of synapse.
> [1] - http://synapse.apache.org/Synapse_Samples.html#ScriptMediator



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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