Advertisement
Guest User

Untitled

a guest
Dec 20th, 2017
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <mule xmlns:schedulers="http://www.mulesoft.org/schema/mule/schedulers" xmlns:smtp="http://www.mulesoft.org/schema/mule/smtp" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" 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/cxf http://www.mulesoft.org/schema/mule/cxf/current/mule-cxf.xsd
  9. http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
  10. http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd
  11. http://www.mulesoft.org/schema/mule/smtp http://www.mulesoft.org/schema/mule/smtp/current/mule-smtp.xsd
  12. http://www.mulesoft.org/schema/mule/schedulers http://www.mulesoft.org/schema/mule/schedulers/current/mule-schedulers.xsd">
  13. <http:listener-config name="HTTP_Listener_Configuration2" host="0.0.0.0" port="8084" doc:name="HTTP Listener Configuration"/>
  14. <cxf:configuration name="CXF_Configuration" enableMuleSoapHeaders="true" initializeStaticBusInstance="true" doc:name="CXF Configuration"/>
  15. <smtp:gmail-connector name="smtpGmailConnector" contentType="foo/bar" validateConnections="true" doc:name="Gmail"/>
  16. <flow name="training_soapFlow1" processingStrategy="asynchronous" initialState="started">
  17. <poll doc:name="Poll">
  18. <fixed-frequency-scheduler frequency="4000"/>
  19. <logger level="INFO" doc:name="Logger"/>
  20. </poll>
  21. <smtp:outbound-endpoint host="smtp.gmail.com" port="587" user="jaopapasmesmo%40gmail.com" password="projetois" connector-ref="smtpGmailConnector" to="pcruz_17@hotmail.com" subject="Please verify your account details" responseTimeout="10000" doc:name="SMTP"/>
  22. </flow>
  23. <flow name="training_soapFlow">
  24. <http:listener config-ref="HTTP_Listener_Configuration2" path="/soap" doc:name="HTTP"/>
  25. <cxf:jaxws-service configuration-ref="CXF_Configuration" serviceClass="training.SOAPService" doc:name="CXF"/>
  26. <logger message="#[payload]" level="INFO" doc:name="Logger"/>
  27. <choice doc:name="Choice">
  28. <when expression="#[method.name.equals(&quot;addUser&quot;)]">
  29. <set-payload value="Adicionei um user com o nome: #[payload]" doc:name="Set Payload - AddUser"/>
  30. </when>
  31. <when expression="#[method.name.equals(&quot;removeUser&quot;)]">
  32. <set-payload value="Removi um user com o nome: #[payload]" doc:name="Set Payload - Remove User"/>
  33. </when>
  34. <otherwise>
  35. <set-payload value="default" doc:name="Set Payload"/>
  36. </otherwise>
  37. </choice>
  38. <!-- <component class="training.SOAPService" doc:name="Java"/> -->
  39. </flow>
  40. </mule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement