新手求教。spring+axis2集成的问题。The endpoint reference (EPR) for the Operation not found

ydj7501603 2012-11-14 10:26:32
错误如下:

org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is /TestAXIS/services/hwWebService and the WSA Action = null. If this EPR was previously reachable, please contact the server administrator.



这是我的services.xml

<?xml version="1.0" encoding="UTF-8"?>


<service name="hwWebService">
<description>axis2</description>
<!-- <parameter name="ServiceClass">com.yindejin.util.HelloWorldWebService</parameter>-->
<!-- 通过ServiceObjectSupplier参数指定SpringServletContextObjectSupplier类来获得Spring的ApplicationContext对象 -->
<parameter name="ServiceObjectSupplier">
org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier
</parameter>

<!--
SpringBeanName固定的不能改
helloWorld是spring中注册的实现类得id
-->
<parameter name="SpringBeanName">helloWorld</parameter>
<!--
在这里最值得注意的是<messageReceivers>元素,该元素用于设置处理WebService方法的处理器。
例如,getGreeting方法有一个返回值,因此,需要使用可处理输入输出的RPCMessageReceiver类,
而update方法没有返回值,因此,需要使用只能处理输入的RPCInOnlyMessageReceiver类。
-->

<!-- <operation name="print"> -->
<!-- <messageReceiver -->
<!-- class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" /> -->
<!-- </operation>-->
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</messageReceivers>
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> <!--multiple action-->
</service>



访问
http://localhost:8080/TestAXIS/services/hwWebService?wsdl得到的结果在附件的图片中。
直接访问
http://localhost:8080/TestAXIS/services/hwWebService
报如上错误。

这是applicationContext.xml配置文件

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">


<bean id="applicationContext"
class="org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder" />
<!-- <bean id="helloWorldWebService" class="com.yindejin.util.HelloWorldWebService"></bean>-->
<bean id="helloWorld" class="com.yindejin.util.HelloWorldImpl"></bean>
</beans>




这是以上错误和配置。
还请各位指教一二。


...全文
1028 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ohano_javaee 2013-09-03
  • 打赏
  • 举报
回复
绝对不是。我这里Version就正常的。
ydj7501603 2012-11-15
  • 打赏
  • 举报
回复
结贴,这好像不是什么错误。 服务可以正常访问。 我把axis2的官方war包测试 http://localhost:8080/axis2/services/Version?wsdl 这是可以的 但是 http://localhost:8080/axis2/services/Version 这也是报错的。 所以综上。这个错误并不是错误。 但是不知道为什么会这样- -
s478853630 2012-11-14
  • 打赏
  • 举报
回复
axis2单独作业,我这木有问题, 要是和spring绑在一起,没搞过!
ydj7501603 2012-11-14
  • 打赏
  • 举报
回复
还请指教啊~~

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧