stWSO2ESB OutSequence Processing

前端 未结 2 386
有刺的猬
有刺的猬 2021-01-23 10:13

I\'m transforming XML request to SOAP via XSLT in WSO2ESB, just wondering is it possible to make request parameter available to be used in response?

E.g.



        
相关标签:
2条回答
  • 2021-01-23 11:03

    Got it working now. Simply by adding the property mediator in both insequence and outsequence together with the XSLT, where the xslt is trying to get the value from test property. That's it!

    Insequence

     <property xmlns:ns="http://org.apache.synapse/xsd" name="TEST" expression="//request/*[local-name()=test]" scope="default"/>
    

    outsequence

    <xslt key="xxxx.xslt">
    <property name="test" expression="get-property('TEST')"/>
    </xslt>
    
    0 讨论(0)
  • 2021-01-23 11:15

    Yes it is possible. You can use property mediator in the Insequence to set the required value as a property and then add it in the outsequence to response using enrich mediator.

    0 讨论(0)
提交回复
热议问题