xfire webservice如果有多个服务该如何写配置文件
4个回答
展开全部
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>
<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>
展开全部
以我的版本为例把项目导成.war文件放到Tomcat目录中的webapps中,然后启动Tomcat就可以了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
以我的版本为例把项目导成.war文件放到Tomcat目录中的webapps中,然后启动Tomcat就可以了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
不知
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询