我正在尝试获取XML请求:
$cgProxy = new SoapClient($WSDL_URL,array('trace' => 1));
try {
$result = $cgProxy->OrderCreate($cgOrder);
} catch (SoapFault $exc) {
var_dump($exc);
echo "Request:\n" . $cgProxy->__getLastRequest(), "\n";
echo "Response:\n" . $cgProxy->__getLastResponse() . "\n";
}
使用这个方法,我从$exc转储中获得了SOAP服务器错误信息。但是getLastRequest似乎没有返回任何内容。有什么想法吗?
我也尝试过htmlspecialchars()和htmlentities(),但都没有成功...