未捕获的 SoapFault 异常:[Client] 函数不是此服务的有效方法 [英] Uncaught SoapFault exception: [Client] Function is not a valid method for this service

查看:38
本文介绍了未捕获的 SoapFault 异常:[Client] 函数不是此服务的有效方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用一些数据访问 wsdl 中的函数时(在 php 中使用 soap 客户端),我收到以下错误.

When I try to access a function in wsdl with some data(using soap client in php) I am getting the following error.

Uncaught SoapFault exception: [Client] Function function_nameis not a valid method for this service

有什么帮助吗?

推荐答案

如果要执行 SOAP 找不到的函数 - 可能是 PHP 缓存了 wsdl 文件.

If you want to execute a function that SOAP can not find - it is possible that PHP cached the wsdl file.

添加:

ini_set("soap.wsdl_cache_enabled", "0");

禁用缓存.

这篇关于未捕获的 SoapFault 异常:[Client] 函数不是此服务的有效方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆