1 配置效果图

2 配置文件

 <?xml version="1.0" encoding="UTF-8"?>

 <mule version="CE-3.4.0"
xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf"
xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml"
xmlns:jersey="http://www.mulesoft.org/schema/mule/jersey"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
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:context="http://www.springframework.org/schema/context"
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/jersey http://www.mulesoft.org/schema/mule/jersey/current/mule-jersey.xsd
http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd
http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/current/mule-cxf.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-current.xsd"> <context:property-placeholder location="stockquote.properties" system-properties-mode="OVERRIDE" /> <object-to-string-transformer name="ObjectToString" doc:name="Object to String" />
<custom-transformer name="XmlDecoder" class="org.mule.transformer.codec.XmlEntityDecoder" doc:name="Java"/>
<mulexml:xslt-transformer name="XsltRest" xsl-file="xsl/rest-stock.xsl" maxIdleTransformers="2" maxActiveTransformers="5" doc:name="XSLT"/>
<mulexml:xslt-transformer name="XsltSoap" xsl-file="xsl\soap-stock.xsl" maxIdleTransformers="2" maxActiveTransformers="5" doc:name="XSLT"/>
<mulexml:xml-to-object-transformer name="XmlToObject" doc:name="XML to Object"/> <flow name="HTTP_input">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="${port1}" path="stockquote"
responseTransformer-refs="ObjectToString" doc:name="HTTP"/>
<http:body-to-parameter-map-transformer doc:name="Body to Parameter Map"/>
<choice doc:name="Choice">
<when expression="payload.method == 'REST'" evaluator="groovy">
<logger message="Enter REST when clause." level="INFO" doc:name="logger in REST"/>
<processor-chain>
<flow-ref name="REST" doc:name="REST"/>
<logger message="After HTTP_input REST: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class [B - [B@1280f39 -->
</processor-chain>
<logger message="After HTTP_input REST processor-chain: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class [B - [B@1280f39 -->
</when>
<when expression="payload.method == 'SOAP'" evaluator="groovy">
<logger message="Enter SOAP when clause." level="INFO" doc:name="logger in SOAP"/>
<processor-chain>
<flow-ref name="SOAP" doc:name="SOAP"/>
</processor-chain>
</when>
<when expression="payload.method == 'WSDL'" evaluator="groovy">
<logger message="Enter WSDL when clause." level="INFO" doc:name="logger in WSDL"/>
<processor-chain>
<flow-ref name="WSDL" doc:name="WSDL"/>
</processor-chain>
</when>
</choice> <logger message="Before HTTP_input XmlToObject transformer: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class [B - [B@1280f39 -->
<transformer ref="XmlToObject" doc:name="Xml To Object"/>
<!--
<mulexml:xml-to-object-transformer name="XmlToObject" doc:name="XML to Object"/>功能:
把'class [B'类型转换为StockQuote
class org.mule.example.stockquote.StockQuote - StockQuote[symbol=CSCO, name=Cisco Systems, date=6/23/2015 9:56am, last=28.82, change=-0.12, open=29.00, high=29.04, low=28.79, volume=2410178, previousClose=28.94]
-->
<logger message="After HTTP_input XmlToObject transformer: #[payload.getClass()] - #[payload]" level="INFO" />
</flow> <!--
功能:调用REST服务,获取symbol=CSCO的信息
输入的类型:class java.util.HashMap - {symbol=CSCO, method=REST}
输出的类型:class [B - [B@1280f39
-->
<sub-flow name="REST">
<logger message="Before REST set-payload: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class java.util.HashMap - {symbol=CSCO, method=REST} -->
<set-payload value="Symbol=#[payload['symbol']]" doc:name="Extract Symbol"/>
<logger message="After REST set-payload: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class java.lang.String - Symbol=CSCO --> <set-property propertyName="Content-Type" value="application/x-www-form-urlencoded" doc:name="Set Content-Type property"/> <!-- http:outbound-endpoint 向地址做一次http连接请求, 请求响应模型,等待响应 -->
<logger message="Before REST http:outbount-endpoint: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class java.lang.String - Symbol=CSCO -->
<http:outbound-endpoint exchange-pattern="request-response" address="http://www.webservicex.net/stockquote.asmx/GetQuote" doc:name="Invoke REST service"/>
<logger message="After REST http:outbount-endpoint: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class org.mule.transport.http.ReleasingInputStream - org.mule.transport.http.ReleasingInputStream@1ef9b2e --> <!--
<custom-transformer name="XmlDecoder" class="org.mule.transformer.codec.XmlEntityDecoder" ... />转换器从ReleasingInputStream中解出XML内容:
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://www.webserviceX.NET/">
<StockQuotes>
<Stock>
<Symbol>CSCO</Symbol>
<Last>28.885</Last>
<Date>6/23/2015</Date>
<Time>9:49am</Time>
<Change>-0.055</Change>
<Open>29.000</Open>
<High>29.036</High>
<Low>28.820</Low>
<Volume>1836184</Volume>
<MktCap>146.91B</MktCap>
<PreviousClose>28.940</PreviousClose>
<PercentageChange>-0.190%</PercentageChange>
<AnnRange>22.490 - 30.310</AnnRange>
<Earns>1.721</Earns>
<P-E>16.784</P-E>
<Name>Cisco Systems</Name>
</Stock>
</StockQuotes>
</string>
-->
<transformer ref="XmlDecoder" doc:name="Transformer Reference"/>
<logger message="After REST XmlDecoder transformer: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class [B - [B@c3e965
<mulexml:xslt-transformer name="XsltRest" .../>转换器, 把<string>...</string>转换为一个内容大概如下的类型为'[B'的对象
<org.mule.example.stockquote.StockQuote>
<Stock>
<Symbol>CSCO</Symbol>
<Last>28.885</Last>
<Date>6/23/2015</Date>
<Time>9:49am</Time>
<Change>-0.055</Change>
<Open>29.000</Open>
<High>29.036</High>
<Low>28.820</Low>
<Volume>1836184</Volume>
<MktCap>146.91B</MktCap>
<PreviousClose>28.940</PreviousClose>
<PercentageChange>-0.190%</PercentageChange>
<AnnRange>22.490 - 30.310</AnnRange>
<Earns>1.721</Earns>
<P-E>16.784</P-E>
<Name>Cisco Systems</Name>
</Stock>
</org.mule.example.stockquote.StockQuote>
-->
<transformer ref="XsltRest" doc:name="Transformer Reference"/>
<logger message="After REST XsltRest transformer: #[payload.getClass()] - #[payload]" level="INFO" />
</sub-flow> <sub-flow name="SOAP" doc:name="SOAP"> <logger message="Before SOAP set-payload: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class java.util.HashMap - {symbol=CSCO, method=SOAP} -->
<set-payload value="#[payload['symbol']]" doc:name="Extract Symbol"/>
<logger message="After SOAP set-payload: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class java.lang.String - CSCO --> <processor-chain>
<cxf:jaxws-client operation="GetQuote" clientClass="net.webservicex.StockQuote" port="StockQuoteSoap" wsdlLocation="classpath:stockquote.wsdl" doc:name="SOAP client"/>
<http:outbound-endpoint address="http://www.webservicex.net/stockquote.asmx" doc:name="HTTP endpoint"/>
<!-- class org.mule.transport.http.ReleasingInputStream - org.mule.transport.http.ReleasingInputStream@1e41c46 -->
<logger message="After SOAP http:outbound-endpoint: #[payload.getClass()] - #[payload]" level="INFO" />
</processor-chain>
<!--
此处表面 processor-chain 会把请求的响应ReleasingInputStream流类型 处理为对应的String格式
class java.lang.String - <StockQuotes><Stock><Symbol>CSCO</Symbol><Last>28.88</Last> ...................
-->
<logger message="After SOAP processor-chain: #[payload.getClass()] - #[payload]" level="INFO" /> <transformer ref="XmlDecoder" doc:name="XmlDecoder transformer"/>
<logger message="After SOAP XmlDecoder transformer: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class java.lang.String - <StockQuotes><Stock><Symbol>CSCO</ --> <transformer ref="XsltSoap" doc:name="XsltSoap transformer"/>
<logger message="After SOAP XsltSoap transformer: #[payload.getClass()] - #[payload]" level="INFO" /> <!-- class [B - [B@16dcbb9 -->
</sub-flow> <sub-flow name="WSDL">
<set-payload value="#[payload['symbol']]" doc:name="Extract Symbol"/>
<outbound-endpoint exchange-pattern="request-response" address="wsdl-cxf:http://www.webservicex.net/stockquote.asmx?WSDL&amp;method=GetQuote" doc:name="Wsdl"/>
<transformer ref="XmlDecoder" doc:name="XmlDecoder transformer"/>
<transformer ref="XsltSoap" doc:name="XmlSoap transformer"/>
</sub-flow>
</mule>

3 样式单文件

xsl/rest-stock.xsl

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="2.0"
xmlns:sq="http://www.webserviceX.NET/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/sq:string/sq:StockQuotes/sq:Stock">
<org.mule.example.stockquote.StockQuote>
<name><xsl:value-of select="sq:Name"/></name>
<symbol><xsl:value-of select="sq:Symbol"/></symbol>
<date><xsl:value-of select="sq:Date"/><xsl:text> </xsl:text><xsl:value-of select="sq:Time"/></date>
<change><xsl:value-of select="sq:Change"/></change>
<last><xsl:value-of select="sq:Last"/></last>
<open><xsl:value-of select="sq:Open"/></open>
<high><xsl:value-of select="sq:High"/></high>
<low><xsl:value-of select="sq:Low"/></low>
<volume><xsl:value-of select="sq:Volume"/></volume>
<previousClose><xsl:value-of select="sq:PreviousClose"/></previousClose>
</org.mule.example.stockquote.StockQuote>
</xsl:template>
</xsl:stylesheet>

xsl/soap-stock.xsl

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:template match="/StockQuotes/Stock">
<org.mule.example.stockquote.StockQuote>
<name><xsl:value-of select="Name"/></name>
<symbol><xsl:value-of select="Symbol"/></symbol>
<date><xsl:value-of select="Date"/><xsl:text> </xsl:text><xsl:value-of select="Time"/></date>
<change><xsl:value-of select="Change"/></change>
<last><xsl:value-of select="Last"/></last>
<open><xsl:value-of select="Open"/></open>
<high><xsl:value-of select="High"/></high>
<low><xsl:value-of select="Low"/></low>
<volume><xsl:value-of select="Volume"/></volume>
<previousClose><xsl:value-of select="PreviousClose"/></previousClose>
</org.mule.example.stockquote.StockQuote>
</xsl:template>
</xsl:stylesheet>

截取的http://www.webservicex.net/stockquote.asmx服务的响应:

 <?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://www.webserviceX.NET/">
<StockQuotes>
<Stock>
<Symbol>CSCO</Symbol>
<Last>28.885</Last>
<Date>6/23/2015</Date>
<Time>9:49am</Time>
<Change>-0.055</Change>
<Open>29.000</Open>
<High>29.036</High>
<Low>28.820</Low>
<Volume>1836184</Volume>
<MktCap>146.91B</MktCap>
<PreviousClose>28.940</PreviousClose>
<PercentageChange>-0.190%</PercentageChange>
<AnnRange>22.490 - 30.310</AnnRange>
<Earns>1.721</Earns>
<P-E>16.784</P-E>
<Name>Cisco Systems</Name>
</Stock>
</StockQuotes>
</string>

4 测试

1)REST

日志输出:

INFO  2015-06-23 22:51:41,322 [[stockquote].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: Enter REST when clause.
INFO 2015-06-23 22:51:41,327 [[stockquote].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: Before REST set-payload: class java.util.HashMap - {symbol=CSCO, method=REST}
INFO 2015-06-23 22:51:41,330 [[stockquote].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: After REST set-payload: class java.lang.String - Symbol=CSCO ++++++++++++++++++++ 子流REST中的日志输出(子流REST的输入类型为String) +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO 2015-06-23 22:51:41,332 [[stockquote].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: Before REST http:outbount-endpoint: class java.lang.String - Symbol=CSCO
INFO 2015-06-23 22:51:41,335 [[stockquote].connector.http.mule.default.receiver.02] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default outbound transformer: org.mule.transport.http.transformers.ObjectToHttpClientMethodRequest
INFO 2015-06-23 22:51:41,335 [[stockquote].connector.http.mule.default.receiver.02] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default response transformer: org.mule.transport.http.transformers.MuleMessageToHttpResponse
INFO 2015-06-23 22:51:41,335 [[stockquote].connector.http.mule.default.receiver.02] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default outbound transformer: org.mule.transport.http.transformers.ObjectToHttpClientMethodRequest
INFO 2015-06-23 22:51:41,335 [[stockquote].connector.http.mule.default.receiver.02] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.http.mule.default.dispatcher.32667419'. Object is: HttpClientMessageDispatcher
INFO 2015-06-23 22:51:41,335 [[stockquote].connector.http.mule.default.receiver.02] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.http.mule.default.dispatcher.32667419'. Object is: HttpClientMessageDispatcher
INFO 2015-06-23 22:51:43,179 [[stockquote].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: After REST http:outbount-endpoint: class org.mule.transport.http.ReleasingInputStream - org.mule.transport.http.ReleasingInputStream@3d2056 <custom-transformer name="XmlDecoder" class="org.mule.transformer.codec.XmlEntityDecoder" doc:name="Java"/>处理器从ReleasingInputStream中解除XML字符串
INFO 2015-06-23 22:51:43,183 [[stockquote].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: After REST XmlDecoder transformer: class java.lang.String - <?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://www.webserviceX.NET/"><StockQuotes><Stock><Symbol>CSCO</Symbol><Last>28.71</Last><Date>6/23/2015</Date><Time>10:37am</Time><Change>-0.23</Change><Open>29.00</Open><High>29.04</High><Low>28.71</Low><Volume>4101960</Volume><MktCap>146.02B</MktCap><PreviousClose>28.94</PreviousClose><PercentageChange>-0.79%</PercentageChange><AnnRange>22.49 - 30.31</AnnRange><Earns>1.72</Earns><P-E>16.68</P-E><Name>Cisco Systems</Name></Stock></StockQuotes></string>
INFO 2015-06-23 22:51:43,194 [[stockquote].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: After REST XsltRest transformer: class [B - [B@64c4fb
++++++++++++++++++ 子流REST结束(子流REST的输出类型为'[B') ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2015-06-23 22:51:43,196 [[stockquote].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: After HTTP_input REST: class [B - [B@64c4fb
INFO 2015-06-23 22:51:43,198 [[stockquote].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: After HTTP_input REST processor-chain: class [B - [B@64c4fb
INFO 2015-06-23 22:51:43,199 [[stockquote].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: Before HTTP_input XmlToObject transformer: class [B - [B@64c4fb
INFO 2015-06-23 22:51:43,211 [[stockquote].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: After HTTP_input XmlToObject transformer: class org.mule.example.stockquote.StockQuote - StockQuote[symbol=CSCO, name=Cisco Systems, date=6/23/2015 10:37am, last=28.71, change=-0.23, open=29.00, high=29.04, low=28.71, volume=4101960, previousClose=28.94]

2)SOAP

日志:

INFO  2015-06-23 23:04:20,910 [[stockquote].connector.http.mule.default.receiver.03] org.mule.api.processor.LoggerMessageProcessor: Enter SOAP when clause.
INFO 2015-06-23 23:04:20,912 [[stockquote].connector.http.mule.default.receiver.03] org.mule.api.processor.LoggerMessageProcessor: Before SOAP set-payload: class java.util.HashMap - {symbol=CSCO, method=SOAP}
INFO 2015-06-23 23:04:20,915 [[stockquote].connector.http.mule.default.receiver.03] org.mule.api.processor.LoggerMessageProcessor: After SOAP set-payload: class java.lang.String - CSCO
INFO 2015-06-23 23:04:20,919 [[stockquote].connector.http.mule.default.receiver.03] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default outbound transformer: org.mule.transport.http.transformers.ObjectToHttpClientMethodRequest
INFO 2015-06-23 23:04:20,919 [[stockquote].connector.http.mule.default.receiver.03] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default response transformer: org.mule.transport.http.transformers.MuleMessageToHttpResponse
INFO 2015-06-23 23:04:20,920 [[stockquote].connector.http.mule.default.receiver.03] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default outbound transformer: org.mule.transport.http.transformers.ObjectToHttpClientMethodRequest
INFO 2015-06-23 23:04:20,920 [[stockquote].connector.http.mule.default.receiver.03] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.http.mule.default.dispatcher.18322687'. Object is: HttpClientMessageDispatcher
INFO 2015-06-23 23:04:20,920 [[stockquote].connector.http.mule.default.receiver.03] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.http.mule.default.dispatcher.18322687'. Object is: HttpClientMessageDispatcher
INFO 2015-06-23 23:04:22,391 [[stockquote].connector.http.mule.default.receiver.03] org.mule.api.processor.LoggerMessageProcessor: After SOAP http:outbound-endpoint: class org.mule.transport.http.ReleasingInputStream - org.mule.transport.http.ReleasingInputStream@1b403a3
INFO 2015-06-23 23:04:22,400 [[stockquote].connector.http.mule.default.receiver.03] org.mule.api.processor.LoggerMessageProcessor: After SOAP processor-chain: class java.lang.String - <StockQuotes><Stock><Symbol>CSCO</Symbol><Last>28.7299</Last><Date>6/23/2015</Date><Time>10:50am</Time><Change>-0.2101</Change><Open>29.0000</Open><High>29.0360</High><Low>28.6500</Low><Volume>4746376</Volume><MktCap>146.12B</MktCap><PreviousClose>28.9400</PreviousClose><PercentageChange>-0.7260%</PercentageChange><AnnRange>22.4900 - 30.3100</AnnRange><Earns>1.7210</Earns><P-E>16.6937</P-E><Name>Cisco Systems</Name></Stock></StockQuotes>
INFO 2015-06-23 23:04:22,419 [[stockquote].connector.http.mule.default.receiver.03] org.mule.api.processor.LoggerMessageProcessor: After SOAP XmlDecoder transformer: class java.lang.String - <StockQuotes><Stock><Symbol>CSCO</Symbol><Last>28.7299</Last><Date>6/23/2015</Date><Time>10:50am</Time><Change>-0.2101</Change><Open>29.0000</Open><High>29.0360</High><Low>28.6500</Low><Volume>4746376</Volume><MktCap>146.12B</MktCap><PreviousClose>28.9400</PreviousClose><PercentageChange>-0.7260%</PercentageChange><AnnRange>22.4900 - 30.3100</AnnRange><Earns>1.7210</Earns><P-E>16.6937</P-E><Name>Cisco Systems</Name></Stock></StockQuotes>
INFO 2015-06-23 23:04:22,429 [[stockquote].connector.http.mule.default.receiver.03] org.mule.api.processor.LoggerMessageProcessor: After SOAP XsltSoap transformer: class [B - [B@1abd128
INFO 2015-06-23 23:04:22,432 [[stockquote].connector.http.mule.default.receiver.03] org.mule.api.processor.LoggerMessageProcessor: Before HTTP_input XmlToObject transformer: class [B - [B@1abd128
INFO 2015-06-23 23:04:22,435 [[stockquote].connector.http.mule.default.receiver.03] org.mule.api.processor.LoggerMessageProcessor: After HTTP_input XmlToObject transformer: class org.mule.example.stockquote.StockQuote - StockQuote[symbol=CSCO, name=Cisco Systems, date=6/23/2015 10:50am, last=28.7299, change=-0.2101, open=29.0000, high=29.0360, low=28.6500, volume=4746376, previousClose=28.9400]

3)WSDL

日志:

INFO  2015-06-23 23:05:36,386 [[stockquote].connector.http.mule.default.receiver.04] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default outbound transformer: org.mule.transport.http.transformers.ObjectToHttpClientMethodRequest
INFO 2015-06-23 23:05:36,386 [[stockquote].connector.http.mule.default.receiver.04] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default response transformer: org.mule.transport.http.transformers.MuleMessageToHttpResponse
INFO 2015-06-23 23:05:36,386 [[stockquote].connector.http.mule.default.receiver.04] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default outbound transformer: org.mule.transport.http.transformers.ObjectToHttpClientMethodRequest
INFO 2015-06-23 23:05:36,386 [[stockquote].connector.http.mule.default.receiver.04] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.http.mule.default.dispatcher.5785394'. Object is: HttpClientMessageDispatcher
INFO 2015-06-23 23:05:36,386 [[stockquote].connector.http.mule.default.receiver.04] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.http.mule.default.dispatcher.5785394'. Object is: HttpClientMessageDispatcher
INFO 2015-06-23 23:05:37,407 [[stockquote].connector.http.mule.default.receiver.04] org.mule.api.processor.LoggerMessageProcessor: Before HTTP_input XmlToObject transformer: class [B - [B@19362f0
INFO 2015-06-23 23:05:37,415 [[stockquote].connector.http.mule.default.receiver.04] org.mule.api.processor.LoggerMessageProcessor: After HTTP_input XmlToObject transformer: class org.mule.example.stockquote.StockQuote - StockQuote[symbol=CSCO, name=Cisco Systems, date=6/23/2015 10:51am, last=28.725, change=-0.215, open=29.000, high=29.036, low=28.650, volume=4786820, previousClose=28.940]

Mule自带例子之stockquote的更多相关文章

  1. Mule自带例子之loanbroker-simple

    1 配置效果图 2 配置文件 <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:cxf=& ...

  2. Mule自带例子之flight-reservation

    1 配置效果图 2 应用的配置文件 <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:sc ...

  3. Mule ESB 自带例子hello初体验

    1 配置的流的效果图 2 应用配置文件hello.xml内容 <?xml version="1.0" encoding="UTF-8"?> < ...

  4. 可视化工具solo show-----Prefuse自带例子GraphView讲解

    2014.10.15日以来的一个月,挤破了头.跑断了腿.伤透了心.吃够了全国最大餐饮连锁店——沙县小吃.其中酸甜苦辣,绝不是三言两语能够说得清道的明的.校招的兄弟姐妹们,你们懂得…… 体会最深的一句话 ...

  5. MYSQL的锁介绍,以及死锁发生情况-带例子

    mysql锁能在并发情况下的mysql进行更好的优化 MySQL有三种锁的级别:页级.表级.行级,这3种锁的特性可大致归纳如下: 表级锁:开销小,加锁快:不会出现死锁:锁定粒度大,发生锁冲突的概率最高 ...

  6. hadoop自带例子wordcount的具体运行步骤

    1.在hadoop所在目录“usr/local”下创建一个文件夹input root@ubuntu:/usr/local# mkdir input 2.在文件夹input中创建两个文本文件file1. ...

  7. asp.net web api 2.2 基础框架(带例子)

    链接:https://github.com/solenovex/asp.net-web-api-2.2-starter-template 简介 这个是我自己编写的asp.net web api 2.2 ...

  8. OPENCV SVM介绍和自带例子

    依据机器学习算法如何学习数据可分为3类:有监督学习:从有标签的数据学习,得到模型参数,对测试数据正确分类:无监督学习:没有标签,计算机自己寻找输入数据可能的模型:强化学习(reinforcement ...

  9. Python中threading的join和setDaemon的区别[带例子]

    python的进程和线程经常用到,之前一直不明白threading的join和setDaemon的区别和用法,今天特地研究了一下.multiprocessing中也有这两个方法,同样适用,这里以thr ...

随机推荐

  1. Oracle 行转列及列转行

    参考网址:http://blog.163.com/fushahui_1988@126/blog/static/82879994201192844355174/ 一.多行转一列select id, vn ...

  2. opencv2.4.9配置+VS2013

    参见:浅墨的(红的的为变动部分) http://blog.csdn.net/poem_qianmo/article/details/19809337 本系列文章由@浅墨_毛星云 出品,转载请注明出处. ...

  3. SVN经常使用操作

    版权声明:本文为博主原创文章.转载请注明出处. https://blog.csdn.net/Jerome_s/article/details/27950055 Subversion(简称svn)安装 ...

  4. (转载)怎样解决SQL Server内存不断增加问题

    在启用sqlserver服务后,发现进程sqlservr.exe的内存使用量从开始的100多MB持续增加,很快就高达1G以上,造成机器运行缓慢.卡机,严重影响使用.sql server 在查询大数据量 ...

  5. 【POJ 3261】Milk Patterns

    [链接]h在这里写链接 [题意] 给你一个长度为n的序列. 问你能不能在其中找到一个最长的子串.     这个子串至少出现了k次. [题解] 长度越长,就越不可能出现k次 后缀数组+二分. N最大为2 ...

  6. 在maven多模块结构中,并且使用overlay的情况下使用jetty热部署

    在使用maven多模块的结构的时候,同时有多个web工程使用maven-war-plugin的overlay来组织的时候,本地开发时如何在eclipse里面启动容器并且可以热部署调试是个比较麻烦的问题 ...

  7. 【Leetcode Top-K问题 BFPRT】第三大的数(414)

    题目 给定一个非空数组,返回此数组中第三大的数.如果不存在,则返回数组中最大的数.要求算法时间复杂度必须是O(n). 示例 1: 输入: [3, 2, 1] 输出: 1 解释: 第三大的数是 1. 示 ...

  8. 【JZOJ4788】【NOIP2016提高A组模拟9.17】序列

    题目描述 输入 输出 样例输入 1 5 2 1 3 0 3 2 2 0 1 0 样例输出 1 数据范围 解法 考虑没有模的情况,问题就仅仅只是简单的差分问题(广告铺设): 设r[i]是第i位需要加的次 ...

  9. oracle-Immediate

    从shutdown immediate命令发布起,禁止建立任何新的oracle连接 未提交的事务被回退.因此,处于一个事务中间的用户将失去所有未提交的劳动成果. oracle不等待客户断开连接.任何未 ...

  10. oracle中常用的时间格式转换

    1:取得当前日期是本月的第几周  select to_char(sysdate,'YYYYMMDD W HH24:MI:SS') from dual; TO_CHAR(SYSDATE,'YY') se ...