Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php SOAP\uu getLastRequest输出htmlentities编码的XML_Php_Xml_Soap - Fatal编程技术网

Php SOAP\uu getLastRequest输出htmlentities编码的XML

Php SOAP\uu getLastRequest输出htmlentities编码的XML,php,xml,soap,Php,Xml,Soap,当我在SOAP请求之后调用u getLastRequest时,我正在生成的SOAP请求输出了经过HTML编码的XML __getLastRequest如下所示: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://autotask.net/ATWS/v1_5/"><SOAP-ENV:Body><ns1:query><

当我在SOAP请求之后调用u getLastRequest时,我正在生成的SOAP请求输出了经过HTML编码的XML

__getLastRequest如下所示:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://autotask.net/ATWS/v1_5/"><SOAP-ENV:Body><ns1:query><ns1:sXML>
&lt;queryxml&gt;
&lt;entity&gt;UserDefinedFieldDefinition&lt;/entity&gt;
&lt;query&gt;
&lt;field&gt;id&lt;expression op="greaterthan"&gt;0&lt;/expression&gt;&lt;/field&gt;
&lt;/query&gt;
&lt;/queryxml&gt;
</ns1:sXML></ns1:query></SOAP-ENV:Body></SOAP-ENV:Envelope>
(
    [sXML] => 

                <queryxml>
                <entity>UserDefinedFieldDefinition</entity>
                <query>
                <field>id<expression op="greaterthan">0</expression></field>
                </query>
                </queryxml>

)
参数如下所示:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://autotask.net/ATWS/v1_5/"><SOAP-ENV:Body><ns1:query><ns1:sXML>
&lt;queryxml&gt;
&lt;entity&gt;UserDefinedFieldDefinition&lt;/entity&gt;
&lt;query&gt;
&lt;field&gt;id&lt;expression op="greaterthan"&gt;0&lt;/expression&gt;&lt;/field&gt;
&lt;/query&gt;
&lt;/queryxml&gt;
</ns1:sXML></ns1:query></SOAP-ENV:Body></SOAP-ENV:Envelope>
(
    [sXML] => 

                <queryxml>
                <entity>UserDefinedFieldDefinition</entity>
                <query>
                <field>id<expression op="greaterthan">0</expression></field>
                </query>
                </queryxml>

)
(
[sXML]=>
UserDefinedFieldDefinition
id0
)
__getLastResponse似乎返回虚假的xml

我觉得soapCall是间歇性地对$arguments进行htmlencoding,或者至少在返回之前对getLastResponse进行了错误编码。我倾向于后者,因为请求在很大程度上起作用。只是有时候他们不会。从数据的角度来看,请求永远不会改变

以前有人见过这个问题吗

先谢谢你