1. <tfoot id='eEK1i'></tfoot>

      <small id='eEK1i'></small><noframes id='eEK1i'>

        <legend id='eEK1i'><style id='eEK1i'><dir id='eEK1i'><q id='eEK1i'></q></dir></style></legend>

        <i id='eEK1i'><tr id='eEK1i'><dt id='eEK1i'><q id='eEK1i'><span id='eEK1i'><b id='eEK1i'><form id='eEK1i'><ins id='eEK1i'></ins><ul id='eEK1i'></ul><sub id='eEK1i'></sub></form><legend id='eEK1i'></legend><bdo id='eEK1i'><pre id='eEK1i'><center id='eEK1i'></center></pre></bdo></b><th id='eEK1i'></th></span></q></dt></tr></i><div id='eEK1i'><tfoot id='eEK1i'></tfoot><dl id='eEK1i'><fieldset id='eEK1i'></fieldset></dl></div>

          <bdo id='eEK1i'></bdo><ul id='eEK1i'></ul>
      1. 如何查看 PHP SOAP 客户端类生成的实际 XML?

        时间:2023-05-22

        <i id='SAWr1'><tr id='SAWr1'><dt id='SAWr1'><q id='SAWr1'><span id='SAWr1'><b id='SAWr1'><form id='SAWr1'><ins id='SAWr1'></ins><ul id='SAWr1'></ul><sub id='SAWr1'></sub></form><legend id='SAWr1'></legend><bdo id='SAWr1'><pre id='SAWr1'><center id='SAWr1'></center></pre></bdo></b><th id='SAWr1'></th></span></q></dt></tr></i><div id='SAWr1'><tfoot id='SAWr1'></tfoot><dl id='SAWr1'><fieldset id='SAWr1'></fieldset></dl></div>

          1. <tfoot id='SAWr1'></tfoot>

                <legend id='SAWr1'><style id='SAWr1'><dir id='SAWr1'><q id='SAWr1'></q></dir></style></legend>

                  <tbody id='SAWr1'></tbody>

                  <bdo id='SAWr1'></bdo><ul id='SAWr1'></ul>

                  <small id='SAWr1'></small><noframes id='SAWr1'>

                  本文介绍了如何查看 PHP SOAP 客户端类生成的实际 XML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  考虑这个示例 SOAP 客户端脚本:

                  Consider this example SOAP Client script:

                  $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 请求,然后将其发送.

                  On the last line, PHP takes the arguments from the array you specified, and, using the WSDL, builds the XML request to send, then sends it.

                  如何让 PHP 向我展示它构建的实际 XML?

                  How can I get PHP to show me the actual XML it's built?

                  我正在对应用程序进行故障排除,需要查看请求的实际 XML.

                  I'm troubleshooting an application and need to see the actual XML of the request.

                  推荐答案

                  使用 getLastRequest.它返回在最后一个 SOAP 请求中发送的 XML.

                  Use getLastRequest. It returns the XML sent in the last SOAP request.

                  echo "REQUEST:
                  " . $SOAP->__getLastRequest() . "
                  ";
                  

                  请记住,此方法仅在创建 SoapClient 对象且 trace 选项设置为 TRUE 时才有效.因此,在创建对象时,使用以下代码:

                  And remember, this method works only if the SoapClient object was created with the trace option set to TRUE. Therefore, when creating the object, use this code:

                  $SOAP = new SoapClient($WDSL, array('trace' => 1));
                  

                  这篇关于如何查看 PHP SOAP 客户端类生成的实际 XML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在发送请求之前/不发送请求之前检查由 PHP Soap 下一篇:如何在没有 SoapClient 的情况下解析 SOAP 响应

                  相关文章

                  最新文章

                    <tfoot id='3y3cv'></tfoot>

                      <bdo id='3y3cv'></bdo><ul id='3y3cv'></ul>
                    <i id='3y3cv'><tr id='3y3cv'><dt id='3y3cv'><q id='3y3cv'><span id='3y3cv'><b id='3y3cv'><form id='3y3cv'><ins id='3y3cv'></ins><ul id='3y3cv'></ul><sub id='3y3cv'></sub></form><legend id='3y3cv'></legend><bdo id='3y3cv'><pre id='3y3cv'><center id='3y3cv'></center></pre></bdo></b><th id='3y3cv'></th></span></q></dt></tr></i><div id='3y3cv'><tfoot id='3y3cv'></tfoot><dl id='3y3cv'><fieldset id='3y3cv'></fieldset></dl></div>

                      <small id='3y3cv'></small><noframes id='3y3cv'>

                      <legend id='3y3cv'><style id='3y3cv'><dir id='3y3cv'><q id='3y3cv'></q></dir></style></legend>