java使用spring调用.NET的web service

最近和起点做对接,要求推送统计数据。

http://game.qidian.com/RemoteWebService/GameStats.asmx

这里起点的web service接口。

spring可以将web service包装为一个普通的service进行调用,非常方便。

<bean id=”qiDianManager”
class=”org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean”
lazy-init=”true”>
<property name=”wsdlDocumentUrl”
value=”http://game.qidian.com/RemoteWebService/GameStats.asmx?WSDL” />
<property name=”namespaceUri”
value=”http://tempuri.org/” />
<property name=”serviceInterface” value=”game.XXXX.XXXX.service.QiDianManager” />
<property name=”serviceName” value=”GameStats” />
<property name=”portName” value=”GameStatsSoap” />
<property name=”lookupServiceOnStartup” value=”false” />
</bean>

 

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>