WSO2 ESB Payload Mediator Tutorial
Join the DZone community and get the full member experience.
Join For FreeThis simple tutorial will lead you to write proxy with WSO2 ESB Payload Mediator.
Here is the client sending request payload for proxy
request: <body> <p:getBusNo xmlns:p="http://transport.org"> <xs:rootId>root1</xs:rootId> </p:getBusNo> </body> BackEnd service Request: <body> <pos:getBusNo xmlns:p="http://pos.transport.org"> <rooter:rootId>root1</rooter:rootId> <rooter:token>Aser4Tre321</rooter:token> </pos:getBusNo> </body> Proxy: <payloadFactory> <format> <pos:getBusNo xmlns:pos="http://pos.transport.org"> <rooter:rootId>$1</rooter:rootId> <rooter:token>MyToekn</rooter:token> </pos:getBusNo> </format> <args> <arg xmlns:p="http://transport.org" xmlns:xs="http://root.transport.org" expression="//p:getBusNo/xs:rootId"/> </args> </payloadFactory>
>
payload Factory will do the transformation.
Enterprise service bus
Payload (computing)
Mediator (software)
Published at DZone with permission of Madhuka Udantha, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Trending
-
Using Render Log Streams to Log to Papertrail
-
Incident Response Guide
-
Demystifying SPF Record Limitations
-
Constructing Real-Time Analytics: Fundamental Components and Architectural Framework — Part 2
Comments