PHP SoapClient 在有 XML 内容时显示空值

PHP SoapClient showing empty values when there is XML content

我正在尝试获取某个作业 (inJobID) 的所有属性 (GetAllProperties)。所有简单的字符串和数字都正确显示,但 XML 实体只是被省略了,就好像它们不存在一样。

回显 '$jobObj->__getLastResponse()' 时 XML 就在那里,但由于某种原因,它在尝试检索它时消失了。

代码非常基础:

$params->inUsername ='TheUser';
$params->inPassword ='ThePassword';
$params->inJobID = 184;
$jobObj = new SoapClient('http://SERVERNAME/job_ssp.asmx?wsdl', array('trace' => 1));

$Props = $jobObj->GetAllProperties($params);
print_r ($Props-> GetAllPropertiesResult);

这是一个输出示例:

stdClass Object
(
    [GetAllPropertiesResult] => stdClass Object
        (
            [Property] => Array
                (
                    [0] => stdClass Object
                        (
                            [m_Name] => jobID
                            [m_Value] => 184
                        )

                    [2] => stdClass Object
                        (
                            [m_Name] => userID
                            [m_Value] => 2
                        )

                    [21] => stdClass Object
                        (
                            [m_Name] => jobParams
                            [m_Value] => 
                        )
                )
        )
)

jobParams总是显示为空。

它是这样开始的: <?xml version='1.0' encoding='utf-16'?>

这里可能缺少一些非常基本的东西,但现在我完全困惑了。

请帮忙?

补充: 使用 var_dump 时显示该字符串中有 3,579 个字符,但仍然不显示:

[21]=> object(stdClass)#29 (2) { ["m_Name"]=> string(9) "jobParams" ["m_Value"]=> string(3579) "" }
echo htmlspecialchars(print_r ($Props-> GetAllPropertiesResult, 1));