如何查看 PHP SOAP 客户端类生成的实际 XML?
请考虑以下示例 SOAP 客户端脚本:
$SOAP = new SoapClient($WDSL); // Create a SOAP Client from a WSDL
// Build an array of data to send in the request.
$Data = array('Something'=>'Some String','SomeNumber'=>22);
$Response = $SOAP->DoRemoteFunction($Data); // Send the request.
在最后一行,PHP 从您指定的数组中获取参数,并使用 WSDL 构建要发送的 XML 请求,然后发送它。
如何让 PHP 向我展示它构建的实际 XML?
我正在对应用程序进行故障排除,需要查看请求的实际 XML。