本帖最后由 qiaoyupeng 于 2012-04-28 13:36:17 编辑

解决方案 »

  1.   

     一起交流呀,大家关于mule esb 加QQ  511248785
      

  2.   

    楼主,现在应该是MULE ESB的高手了吧,有没有好一点的文件或者资料分享啊,赶紧不尽,[email protected],最近在做这个,还是初学者,在此谢了!!
      

  3.   

    楼主给介绍一下客户端是怎么链接到ESB上面的么,不要说什么http请求的·····
      

  4.   

    对ESB我不是很明白,虽然最近在这个项目组中是做这个相关的东西。不过是临时调过来的。只知道CXF调用webservice的时候,是可以无需生成客户端代码的。但是需要知道wsdl的地址与方法名。就可以动态调用了。
      

  5.   

    这我现在也在搞个类似的东西,哎 我特么都不知道MULE干啥用的 怎么搞哟 捉急
      

  6.   

    http://training.middlewareschool.com/mule/
      

  7.   

    这个我已经实现了是用的Mule3.3.1,欢迎大家关于togethermule官方微信,加我QQ935760092,一起讨论Mule
    下面是客户端调用webservice服务
    <mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:http="http://www.mulesoft.org/schema/mule/http"
    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.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd 
    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 ">
    <flow name="deployWebService_Client">
    <http:inbound-endpoint host="localhost" port="4321"
    path="callWebService" keep-alive="false" exchange-pattern="request-response"
    doc:name="接收请求" doc:description="Process HTTP reqests or responses." />
    <component doc:name="组装参数" doc:description="Invoke a Java component">
    <method-entry-point-resolver>
    <include-entry-point method="sayHello" />
    </method-entry-point-resolver>
    <spring-object bean="webServiceComponent" />
    </component>
    <http:outbound-endpoint followRedirects="false"
    host="localhost" port="80" keep-alive="false" exchange-pattern="request-response"
    doc:name="调用WebService服务" doc:description="Process HTTP reqests or responses.">
    <cxf:jaxws-client xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf"
    clientClass="com.yuchengtech.bizflowtestcase.demo.webservice.hello.ITestWebServiceService"
    port="ITestWebServicePort" wsdlLocation="classpath:wsdl/deployWebService.wsdl"
    operation="sayHello" doc:name="SOAP" doc:description="Make a web service available via CXF"></cxf:jaxws-client>
    </http:outbound-endpoint>
    </flow>
    </mule>
    下面是在Mule中部署webservice服务:
    <mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:http="http://www.mulesoft.org/schema/mule/http"
    xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" 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.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.1/mule-http.xsd 
    http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/3.1/mule-cxf.xsd 
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
    http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd ">
    <flow name="webservice1">
    <http:inbound-endpoint host="localhost" port="6543"
    keep-alive="false" path="callWebService" exchange-pattern="request-response" doc:name="HTTP"
    doc:description="Process HTTP reqests or responses." />
    <cxf:jaxws-service
    serviceClass="com.yuchengtech.bizflowtestcase.demo.service.ITestWebService"
    doc:name="SOAP" doc:description="Make a web service available via CXF" />
    <component
    class="com.yuchengtech.bizflowtestcase.demo.service.impl.TestWebServiceImpl"
    doc:name="Java" doc:description="Invoke a Java component" />
    </flow>
    </mule>