xfire webservice如果有多个服务该如何写配置文件
发布网友
发布时间:2024-10-04 05:25
我来回答
共4个回答
热心网友
时间:2024-10-09 04:49
CXF+Spring 是这么配的,你参考
<jaxws:server id="toolService"
serviceClass="com.toolServer.service.ToolService"
address="toolService">
<jaxws:serviceBean>
<ref bean="toolServiceBean" />
</jaxws:serviceBean>
<jaxws:inInterceptors>
<ref bean="inLoggingInterceptor" />
</jaxws:inInterceptors>
<jaxws:outInterceptors>
<ref bean="outLoggingInterceptor" />
</jaxws:outInterceptors>
</jaxws:server>
<jaxws:server id="userService"
serviceClass="com.toolServer.service.UserService"
address="/userService">
<jaxws:serviceBean>
<ref bean="userServiceBean" />
</jaxws:serviceBean>
<jaxws:inInterceptors>
<ref bean="inLoggingInterceptor" />
</jaxws:inInterceptors>
<jaxws:outInterceptors>
<ref bean="outLoggingInterceptor" />
</jaxws:outInterceptors>
</jaxws:server>
热心网友
时间:2024-10-09 04:51
以我的版本为例把项目导成.war文件放到Tomcat目录中的webapps中,然后启动Tomcat就可以了
热心网友
时间:2024-10-09 04:58
不知
热心网友
时间:2024-10-09 04:52
以我的版本为例把项目导成.war文件放到Tomcat目录中的webapps中,然后启动Tomcat就可以了