Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <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"
- 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/cxf http://www.mulesoft.org/schema/mule/cxf/current/mule-cxf.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/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd
- http://www.mulesoft.org/schema/mule/smtp http://www.mulesoft.org/schema/mule/smtp/current/mule-smtp.xsd
- http://www.mulesoft.org/schema/mule/schedulers http://www.mulesoft.org/schema/mule/schedulers/current/mule-schedulers.xsd">
- <http:listener-config name="HTTP_Listener_Configuration2" host="0.0.0.0" port="8084" doc:name="HTTP Listener Configuration"/>
- <cxf:configuration name="CXF_Configuration" enableMuleSoapHeaders="true" initializeStaticBusInstance="true" doc:name="CXF Configuration"/>
- <smtp:gmail-connector name="smtpGmailConnector" contentType="foo/bar" validateConnections="true" doc:name="Gmail"/>
- <flow name="training_soapFlow1" processingStrategy="asynchronous" initialState="started">
- <poll doc:name="Poll">
- <fixed-frequency-scheduler frequency="4000"/>
- <logger level="INFO" doc:name="Logger"/>
- </poll>
- <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"/>
- </flow>
- <flow name="training_soapFlow">
- <http:listener config-ref="HTTP_Listener_Configuration2" path="/soap" doc:name="HTTP"/>
- <cxf:jaxws-service configuration-ref="CXF_Configuration" serviceClass="training.SOAPService" doc:name="CXF"/>
- <logger message="#[payload]" level="INFO" doc:name="Logger"/>
- <choice doc:name="Choice">
- <when expression="#[method.name.equals("addUser")]">
- <set-payload value="Adicionei um user com o nome: #[payload]" doc:name="Set Payload - AddUser"/>
- </when>
- <when expression="#[method.name.equals("removeUser")]">
- <set-payload value="Removi um user com o nome: #[payload]" doc:name="Set Payload - Remove User"/>
- </when>
- <otherwise>
- <set-payload value="default" doc:name="Set Payload"/>
- </otherwise>
- </choice>
- <!-- <component class="training.SOAPService" doc:name="Java"/> -->
- </flow>
- </mule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement