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

    <bdo id='UKPg0'></bdo><ul id='UKPg0'></ul>
<tfoot id='UKPg0'></tfoot>

  • <legend id='UKPg0'><style id='UKPg0'><dir id='UKPg0'><q id='UKPg0'></q></dir></style></legend>

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

        如何在php中读取soap响应xml

        时间:2023-05-22

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

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

              • <tfoot id='WdRAV'></tfoot>
                  <bdo id='WdRAV'></bdo><ul id='WdRAV'></ul>
                  本文介绍了如何在php中读取soap响应xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  这是我的 Soap Response xml,我需要获取 RebillCustomerID我该怎么做?

                  This is my Soap Response xml,I need to get RebillCustomerID How I can do this?

                   <?xml version="1.0" encoding="utf-8"?><soap:Envelope                          
                    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                     xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><eWAYHeader 
                     xmlns="http://www.eway.com.au/gateway/rebill/manageRebill">
                      <eWAYCustomerID>87654321</eWAYCustomerID><Username>test@eway.com.au</Username>
                        <Password>test123</Password></eWAYHeader></soap:Header><soap:Body>
                          <CreateRebillCustomerResponse xmlns="http://www.eway.com.au/gateway/rebill/manageRebill"><CreateRebillCustomerResult>
                             <Result>Success</Result><ErrorSeverity /><ErrorDetails />
                        <RebillCustomerID>90246</RebillCustomerID></CreateRebillCustomerResult>                             
                            </CreateRebillCustomerResponse></soap:Body></soap:Envelope><pre></pre>
                  

                  推荐答案

                  试试下面的代码.我假设您的 xml 响应在 $soapXMLResult 变量

                  try the code below. I am assuming your xml response is in $soapXMLResult variable

                  $soap     = simplexml_load_string($soapXMLResult);
                  $response = $soap->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children()->CreateRebillCustomerResponse;
                  $customerId = (string) $response->CreateRebillCustomerResult->RebillCustomerID;
                  echo $customerId;
                  

                  这篇关于如何在php中读取soap响应xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何生成PHPsoap客户端代码? 下一篇:simplexml_load_string() 不会读取带有“soap:"的so

                  相关文章

                  最新文章

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

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

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

                      • <bdo id='jABfr'></bdo><ul id='jABfr'></ul>