axis2的webservice在地址栏输入可调用,客户端调用其他webservice正常,唯独调用这个webservice时报错
错误:{http://xml.apache.org/axis/}stackTrace:namespacemismatchrequirehttp://localhost:8...
错误:{http://xml.apache.org/axis/}stackTrace:namespace mismatch require http://localhost:8080/axis2/services/demoService/chutong found none
service.xml文件如下:
<service name="demoService" targetNamespace="http://localhost:8080/axistest/services/demoService" >
<schema schemaNamespace="http://localhost:8080/axis2/services/demoService/chutong"/>
<description>
Please Type your service description here
</description>
<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>
<parameter name="ServiceClass">chutong.demoService</parameter>
</service>
这句话的命名空间
<schema schemaNamespace="http://localhost:8080/axis2/services/demoService/chutong"/>
到底该怎么配? 展开
service.xml文件如下:
<service name="demoService" targetNamespace="http://localhost:8080/axistest/services/demoService" >
<schema schemaNamespace="http://localhost:8080/axis2/services/demoService/chutong"/>
<description>
Please Type your service description here
</description>
<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>
<parameter name="ServiceClass">chutong.demoService</parameter>
</service>
这句话的命名空间
<schema schemaNamespace="http://localhost:8080/axis2/services/demoService/chutong"/>
到底该怎么配? 展开
2013-12-27
展开全部
实在找不到原因的时候,clean一下。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询