解决方案 »
- 非大侠们不能解的问题:socket服务端与客户端数据传递之间的问题。
- 关于spring的IOC你了解多少?
- spring 抽象类 注入值为空(spring3+mongodb+morphia)
- java怎么实现发布延时加载
- 求助各位,为什么我的Spring2.5+Hibernate3.3整合中,HibernateTemplate.find()方法没有执行,系统也不报错
- 散分求救:如何让MQ和weblogic通过JMS来通讯(分布式)?
- 有jdk 中文文档下载 还是5.0的
- 请高手帮忙解决!!!
- 请问高手(马上给分)
- 一个简单的问题
- 求extjs的高人指教
- exe4j配置了jre导出了exe程序,但是在其他机子上还是不能运行,求帮助!!
下面是客户端调用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>