简体   繁体   English

第1行上的XML错误解析SOAP负载:标记不匹配

[英]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 其他一些调试建议

  • Look in the web server log (Is the call getting through OK) 在Web服务器日志中查找(通话是否通过OK)
  • Enable the SugarCRM logging and set the level to debug 启用S​​ugarCRM日志记录并将级别设置为调试
  • Either enable PHP error output or make PHP log errors to a log file 启用PHP错误输出或使PHP日志错误写入日志文件
  • Use eg SoapUI to test SOAP call 使用例如SoapUI测试SOAP调用
  • See question 5396302 for a thorough SOAP example 有关完整的SOAP示例,请参阅问题5396302
  • Check the SugarCRM SOAP documentation 查看SugarCRM SOAP文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 XML 解析错误:标签不匹配</br>在 PHP XML 文件中 - XML Parsing Error: mismatched tag </br> in PHP XML File 如何解决 PHP Nusoap 中的“XML error parsing SOAP payload on line 1: Invalid document end” - How can I solve "XML error parsing SOAP payload on line 1: Invalid document end" in PHP Nusoap XML错误解析SOAP负载:保留的XML名称 - XML error parsing SOAP payload: Reserved XML Name XML解析错误: <unknown> :26:41:标签不匹配 - XML parsing error: <unknown>:26:41: mismatched tag “ XML分析错误在28:41。 错误76:标签不匹配”出现在模块的所有位置 - “XML Parsing Error at 28:41. Error 76: Mismatched tag” is appear all of module PHP:解析HTML时xml_parser“标签不匹配”错误(自动关闭标签为 <img> )? - PHP: xml_parser “Mismatched tag”-error when parsing HTML (auto-closing tags as <img>)? 肥皂XML响应解析错误在PHP - Soap xml response parsing error in php SOAP 错误:解析 WSDL:无法从“xxx/?wsdl”加载:标记 html 第 1 行中的数据过早结束 - SOAP-ERROR: Parsing WSDL: Couldn't load from 'xxx/?wsdl' : Premature end of data in tag html line 1 Zend_Soap - 解析WSDL时出错:期望开始标记,找不到“&lt;” - Zend_Soap - Error parsing WSDL: Start tag expected, '<' not found SOAP WSDL解析错误 - SOAP WSDL Parsing Error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM