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

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

WBOY
Release: 2016-06-23 14:12:04
Original
691 people have browsed it

$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;
Copy after login

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


回复讨论(解决方案)

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

在启用了短标记的情况下

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template