[英]XML error parsing SOAP payload on line 1: Mismatched tag
I am getting an error with nusoap and/or SugarCRM. 我在使用nusoap和/或SugarCRM时遇到错误。 Here is the error:
这是错误:
XML error parsing SOAP payload on line 1: Mismatched tag 第1行上的XML错误解析SOAP负载:标记不匹配
I get that in the $soapclient->error_str response. 我在$ soapclient-> error_str响应中得到的。 Not exactly sure what this error means or where it is located and I could use some help.
不确定该错误的含义或位置,我可以寻求帮助。 So here is the background, I am working in SugarCRM with the included nusoap class and have an external site accessing the soap interface.
因此,这里是背景,我正在使用随附的nusoap类在SugarCRM中工作,并且有一个外部站点访问soap接口。 The weird thing is that I have working copy running locally and this error only occurred when I uploaded it to my linux server.
奇怪的是我有本地运行的工作副本,并且仅当我将其上传到Linux服务器时才发生此错误。
I now I have a low reputation but if you give a working answer I will accept it. 我现在的声誉很低,但是如果您给出有效的答案,我会接受。 And also, I have researched the error with no luck.
而且,我没有运气就研究了该错误。 Any help would be much appreciated.
任何帮助将非常感激。 If you need me to post any code, just let me know.
如果您需要我发布任何代码,请告诉我。
MORE INFO: 更多信息:
I am using SugarCRM CE 6.2.1. 我正在使用SugarCRM CE 6.2.1。 My soap entry point is http://server/sugar/soap.php .
我的肥皂入口点是http://server/sugar/soap.php 。 Here is my instation of the nusoap client.
这是我对nusoap客户端的了解。
$soapclient = new nusoap_client('http://server/sugar/soap.php');
Here is an example of a call made to the soap client 这是对肥皂客户端的呼叫的示例
$result = $soapclient->call('update_existing_contact', array($session_id, $data));
However the error is the same for every call. 但是,每个呼叫的错误都是相同的。
Also I get the same error when I try to use the sugar/examples/SoapTest.php so I don't think it is the client. 当我尝试使用sugar / examples / SoapTest.php时,我也会遇到相同的错误,因此我认为它不是客户端。
Like I said earlier the thing that is the most weird is that the problem only occurs on my server even when it is the same code. 就像我之前说的,最奇怪的是,即使是相同的代码,问题也只会在服务器上发生。
I would try to use eg SoapUI to test the web service. 我会尝试使用例如SoapUI来测试Web服务。 If that works, you know it's most likely a problem with the client.
如果这样可行,您就知道客户最有可能遇到问题。 Some other suggestions for debugging
其他一些调试建议
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.