mule2.2.x架构(二)示例学习echo
所有的示例文档
http://www.mulesoft.org/display/MULE2INTRO/Examples
1.简单示例echo
1.1 简单的输入和打印信息
主要分析了配置文件echo-config.xml
<stdio:connector name="SystemStreamConnector"
promptMessage="Please enter something: " messageDelayTime="1000" />
<model name="echoSample">
<service name="EchoUMO">
<!-- 系统输入 -->
<inbound>
<stdio:inbound-endpoint system="IN" />
</inbound>
<echo-component />
<!-- 系统输出 -->
<outbound>
<pass-through-router>
<stdio:outbound-endpoint system="OUT" />
</pass-through-router>
</outbound>
</service>
</model>
其中的<echo-component />是
<service name="EchoUMO">
<component class="org.mule.component.simple.EchoComponent"/>
</service>
的缩写。EchoComponent实现了日志功能。
1.2 axis的webserice服务
分析配置文件echo-axis-config.xml
<model name="echoSample">
<service name="EchoUMO">
<inbound>
<axis:inbound-endpoint address="http://localhost:65081/services">
<soap:http-to-soap-request-transformer/>
</axis:inbound-endpoint>
</inbound>
<echo-component/>
</service>
</model>
访问URL
http://localhost:65081/services/EchoUMO?method=echo¶m=iamcarl
访问WSDL文件
http://localhost:65081/services/EchoUMO?wsdl
1.3 cxf的webservice服务
<service name="EchoUMO">
<inbound>
<cxf:inbound-endpoint address="http://localhost:65082/services/EchoUMO" serviceClass="com.sillycat.easymule.echo.Echo"/>
</inbound>
、 <echo-component/>
</service>
其中com.sillycat.easymule.echo.Echo是从example中拷贝出来的一个接口定义。
package com.sillycat.easymule.echo;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
@WebService
public interface Echo {
@WebResult(name = "text")
public String echo(@WebParam(name = "text") String string);
}
访问服务的参数是:
http://host/service/OPERATION/PARAM_NAME/PARAM_VALUE
http://localhost:65082/services/EchoUMO/echo/text/hello
访问WSDL文件:
http://localhost:65082/services/EchoUMO?wsdl
就是简单的把example拷贝出来了。
分享到:
相关推荐
自己翻译的Mule 2.x Getting Started Guide的文档,里边很多翻译的不是很好,各位需要的可以下载看一下,内容大多是对Mule进行简单的介绍!
ESB解决方案-mule分享.docxESB解决方案-mule分享.docxESB解决方案-mule分享.docxESB解决方案-mule分享.docxESB解决方案-mule分享.docxESB解决方案-mule分享.docxESB解决方案-mule分享.docxESB解决方案-mule分享.docx
GomPlayer类似于KMplayer,同样也是一款来自韩国播放器,界面精美、功能全面。多媒体播放器GOMPlayer... 以‘查找解码’功能来支持所有视频的播放,在BT或e-mule等P2P网站中下载的影片会经常不能播放,GOM Player以独
Mule讲解.docxMule讲解.docx
NULL 博文链接:https://lonely.iteye.com/blog/601103
2) 支持BT或e-mule等P2P站点中接收到损坏的文件, 因中断页传送完成的文件, 索引损坏的AVI文件的播放. 3) 想截取的视频画面可以储存为图像 (JPG, BMP)文件, 还可以通过连续截图取功能来实现把影片的场景以帧为单位, ...
包含http、cxf、vm、sap、activeMq、ftp、file、poll、Smtp、attachment、melExpression、Java、template节点的使用示例等。
弹性APM Mule3代理介绍此插件允许使用Elastic APM监视Mule 3.x组件的应用程序性能。 它提供了一种非侵入性的方式来度量和基准化Mule中的各个流程和步骤,并添加了对Mule组件的应用程序性能监控,以与日志,指标和...
Manning.Mule.in.Action.2nd.Edition.Feb.2014.pdf 第二版 及 源码
MULE与ServiceMix的区别的各种摘要
Mule2编译指南 博文链接:https://netfly.iteye.com/blog/222123
EIP经典案例Load Broker————Mule ESB实践
The book closes with a set of chapterson the nuts and bolts of working with Mule. Readers can take Mule farther bylearning techniques for testing, performance tuning, BPM orchestration, andeven a ...
mule 是java 实现ESB 的开源工程, 让你实现牛X的企业总线, 第2版的事mule in action....
。
David Dossot is a software architect and has created numerous modules and transports for Mule. John D’Emic is a principal solutions architect and Victor Romero a solutions architect, both at MuleSoft...
浅谈Mule ESB架构设计.doc