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>

php

相關文章
相關標籤/搜索