Soap的错误小结

1.报类似这样的错误: Fatal error: Uncaught SoapFault exception: [Client] Function (”test”) is not a valid method for this service in……
服务器和客户端php 都需要关闭缓存,如果报找不到方法可以通过var_dump($client->__getFunctions())  
ini_set("soap.wsdl_cache_enabled", "0");

2.报以下错误:
org.apache.axis2.AxisFault: The ServiceClass object does not implement the required method in the following form: OMElement getxxx(OMElement e)

是因为在services.xml中没有对该方法进行配置:
   <operation name="getxxx">
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
            class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
    </operation>

posted @ 2015-01-04 12:58  翔宇后生  阅读(1117)  评论(0编辑  收藏  举报