Advertisement
Guest User

Untitled

a guest
Jan 13th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <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"
  4. xmlns:spring="http://www.springframework.org/schema/beans"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
  7. http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
  8. http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
  9. http://www.mulesoft.org/schema/mule/magento http://www.mulesoft.org/schema/mule/magento/current/mule-magento.xsd
  10. http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd">
  11. <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
  12. <magento:config name="Magento" username="test" password="test" address="http://127.0.0.1:8000/api/v2_soap/" doc:name="Magento"/>
  13. <flow name="proFlow">
  14. <http:listener config-ref="HTTP_Listener_Configuration" path="test" doc:name="HTTP"/>
  15. <magento:get-order config-ref="Magento" orderId="100000000" doc:name="Magento"/>
  16. <dw:transform-message doc:name="Transform Message">
  17. <dw:set-payload><![CDATA[%dw 1.0
  18. %output application/json
  19. ---
  20. {
  21. orderId: payload.increment_id
  22. }]]></dw:set-payload>
  23. </dw:transform-message>
  24. <set-payload value="#[payload]" doc:name="Set Payload"/>
  25. </flow>
  26. </mule>
  27.  
  28. <dependency>
  29. <groupId>com.mulesoft.weave</groupId>
  30. <artifactId>mule-plugin-weave_2.11</artifactId>
  31. <version>${mule.version}</version>
  32. <scope>provided</scope>
  33. </dependency>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement