Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SOAP php非wsdl过程不存在_Php_Linux_Soap_Wsdl_Procedure - Fatal编程技术网

SOAP php非wsdl过程不存在

SOAP php非wsdl过程不存在,php,linux,soap,wsdl,procedure,Php,Linux,Soap,Wsdl,Procedure,我已经用PHP编写了web服务。几周来,它一直运转良好。今天,我不得不将我的SOAP客户机更改为非WSDL形式,在进行以下更改后,我遇到了这个恼人的错误: 过程“FUNCTIONNAME”不存在 我的代码: //$client = new SoapClient("STWebServiceWSDL.wsdl", array('trace' => 1)); //This is working, but why, non wsdl below not working $client = new

我已经用PHP编写了web服务。几周来,它一直运转良好。今天,我不得不将我的SOAP客户机更改为非WSDL形式,在进行以下更改后,我遇到了这个恼人的错误:

过程“FUNCTIONNAME”不存在

我的代码:

//$client = new SoapClient("STWebServiceWSDL.wsdl", array('trace' => 1));
//This is working, but why, non wsdl below not working

$client = new SoapClient(null, array('location' => "https://mysite.com/STserver.php",
                                    'uri'      => "https://mysite.com/STserver.php",
                                    'trace'=>1));
请帮忙,我一整天都在网上找不到任何解决办法

我的SOAP服务器如下所示:

$server = new SoapServer("STWebServiceWSDL.wsdl");

这段“FUNCTIONNAME”代码写在哪里,至少不在您创建soapServer的文件中所写的粘贴编辑行中。我告诉过你它已经工作了好几个星期没有问题了。我只是不明白如何配置非wsdl模式。对于非wsdl,我认为您必须使用XML-RPC模式。