Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <mule xmlns:magento="http://www.mulesoft.org/schema/mule/magento" xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
- xmlns:spring="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
- http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
- http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
- http://www.mulesoft.org/schema/mule/magento http://www.mulesoft.org/schema/mule/magento/current/mule-magento.xsd
- http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd">
- <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
- <magento:config name="Magento" username="test" password="test" address="http://127.0.0.1:8000/api/v2_soap/" doc:name="Magento"/>
- <flow name="proFlow">
- <http:listener config-ref="HTTP_Listener_Configuration" path="test" doc:name="HTTP"/>
- <magento:get-order config-ref="Magento" orderId="100000000" doc:name="Magento"/>
- <dw:transform-message doc:name="Transform Message">
- <dw:set-payload><![CDATA[%dw 1.0
- %output application/json
- ---
- {
- orderId: payload.increment_id
- }]]></dw:set-payload>
- </dw:transform-message>
- <set-payload value="#[payload]" doc:name="Set Payload"/>
- </flow>
- </mule>
- <dependency>
- <groupId>com.mulesoft.weave</groupId>
- <artifactId>mule-plugin-weave_2.11</artifactId>
- <version>${mule.version}</version>
- <scope>provided</scope>
- </dependency>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement