当前位置:Gxlcms > PHP教程 > PHP调用WebService接口,谁给看下这段代码是什么意思呢?

PHP调用WebService接口,谁给看下这段代码是什么意思呢?

时间:2021-07-01 10:21:17 帮助过:7人阅读

  1. $document=$proxy->document;echo <<<soapdocument<?xml version="”1.0″" encoding="”GB2312″?"><soap-env:envelope soap-env:encodingstyle="”http://schemas.xmlsoap.org/soap/encoding/”" xmlns:soap-env="”http://schemas.xmlsoap.org/soap/envelope/”" xmlns:xsd="”http://www.w3.org/2001/XMLSchema”" xmlns:xsi="”http://www.w3.org/2001/XMLSchema-instance”" xmlns:soap-enc="”http://schemas.xmlsoap.org/soap/encoding/”" xmlns:si="”http://soapinterop.org/xsd“"><soap-env:body>$document</soap-env:body></soap-env:envelope>SoapDocument;</soapdocument<?xml>

顺便问一下在PHP中出现下面这种形式?会冲突吗?该怎么解决?
  1. <!--?php<??-->?>


回复讨论(解决方案)

把被 SoapDocument 括起的内容作为一个字符串输出

在启用了短标记的情况下

?>
?>
将产生语法错误!

人气教程排行