久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      1. <i id='JQwXP'><tr id='JQwXP'><dt id='JQwXP'><q id='JQwXP'><span id='JQwXP'><b id='JQwXP'><form id='JQwXP'><ins id='JQwXP'></ins><ul id='JQwXP'></ul><sub id='JQwXP'></sub></form><legend id='JQwXP'></legend><bdo id='JQwXP'><pre id='JQwXP'><center id='JQwXP'></center></pre></bdo></b><th id='JQwXP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='JQwXP'><tfoot id='JQwXP'></tfoot><dl id='JQwXP'><fieldset id='JQwXP'></fieldset></dl></div>
        • <bdo id='JQwXP'></bdo><ul id='JQwXP'></ul>
        <legend id='JQwXP'><style id='JQwXP'><dir id='JQwXP'><q id='JQwXP'></q></dir></style></legend>

      2. <small id='JQwXP'></small><noframes id='JQwXP'>

        <tfoot id='JQwXP'></tfoot>

        PHP - 在 PHP 中將 XML 轉換為數組 - 在 php 中解析一

        PHP - converting XML to array in PHP - parsing a soap xml in php and storing it in database(PHP - 在 PHP 中將 XML 轉換為數組 - 在 php 中解析一個 soap xml 并將其存儲在數據庫中) - IT屋-程序員軟件開發技術分享社

          <bdo id='1xWpJ'></bdo><ul id='1xWpJ'></ul>
                <tbody id='1xWpJ'></tbody>
            1. <i id='1xWpJ'><tr id='1xWpJ'><dt id='1xWpJ'><q id='1xWpJ'><span id='1xWpJ'><b id='1xWpJ'><form id='1xWpJ'><ins id='1xWpJ'></ins><ul id='1xWpJ'></ul><sub id='1xWpJ'></sub></form><legend id='1xWpJ'></legend><bdo id='1xWpJ'><pre id='1xWpJ'><center id='1xWpJ'></center></pre></bdo></b><th id='1xWpJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='1xWpJ'><tfoot id='1xWpJ'></tfoot><dl id='1xWpJ'><fieldset id='1xWpJ'></fieldset></dl></div>

                <legend id='1xWpJ'><style id='1xWpJ'><dir id='1xWpJ'><q id='1xWpJ'></q></dir></style></legend>

                <small id='1xWpJ'></small><noframes id='1xWpJ'>

                <tfoot id='1xWpJ'></tfoot>
                  本文介紹了PHP - 在 PHP 中將 XML 轉換為數組 - 在 php 中解析一個 soap xml 并將其存儲在數據庫中的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我想轉換一個soap xml 響應并將其存儲在數據庫中.這是我擁有的 XML.

                  I want to convert a soap xml response and store it in a database. Here is the XML that I have.

                  <ENV:Envelope xmlns:ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://example.com/soap/example">
                     <ENV:Body>
                        <ns1:GetCentresResponse>
                           <ExampleCentre>
                              <ns1:Cent>
                                 <ID>200</ID>
                                 <Name>example2</Name>
                                 <Code>ex2</Code>
                                 <Email>example2@example2.com</Email>
                                 <Address1>example2, example2 </Address1>
                                 <Address2>example2, example2 </Address2>
                                 <City>example2</City>
                                 <PostCode>111111</PostCode>
                                 <Telephone>1111111111</Telephone>
                                 <Location>11.11,-11.11</Location>
                                 <URL>/example2/exam2/ex2</URL>
                              </ns1:Cent>
                           </ExampleCentre>
                        </ns1:GetCentresResponse>
                     </ENV:Body>
                  </ENV:Envelope>
                  

                  我從服務器得到這個soap響應.我想將其轉換為數組并將其存儲在數據庫中.我該怎么辦?我知道答案可能很簡單,但是嘿,我是新手 :D

                  I get this soap response from the server. I want to convert this to a array and store it in database. What should I do? I know the answer might be pretty straight forward, but hey, am a newbie :D

                  非常感謝我得到的任何幫助.

                  Would really appreciate any help I get.

                  謝謝你的期待.

                  問候

                  推薦答案

                  最好的解決方案是使用 PHP 的 SoapClient 類進行調用,該類將返回一個對象,然后將該對象轉換為數組,如下所示:

                  The best solution would be to use PHP's SoapClient class to do the call which will return you an object and then converting this object to an array, like so:

                  <?php
                  $client = new SoapClient("http://localhost/code/soap.wsdl");
                  
                  // Soap call with HelloWorld() method
                  $something =  $client->HelloWorld(array('option1' => 'attribute1'));
                  
                  // Convert object to array
                  $array = (array)$something;
                  
                  ?>
                  

                  然后您可以將其存儲在數據庫中.

                  Which you can then store in the database.

                  這篇關于PHP - 在 PHP 中將 XML 轉換為數組 - 在 php 中解析一個 soap xml 并將其存儲在數據庫中的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  enable SOAP on PHP(在 PHP 上啟用 SOAP)
                  Get received XML from PHP SOAP Server(從 PHP SOAP 服務器獲取接收到的 XML)
                  not a valid AllXsd value(不是有效的 AllXsd 值)
                  PHP SoapClient: SoapFault exception Could not connect to host(PHP SoapClient:SoapFault 異常無法連接到主機)
                  Implementation of P_SHA1 algorithm in PHP(PHP中P_SHA1算法的實現)
                  Sending a byte array from PHP to WCF(將字節數組從 PHP 發送到 WCF)
                  <i id='uEDEe'><tr id='uEDEe'><dt id='uEDEe'><q id='uEDEe'><span id='uEDEe'><b id='uEDEe'><form id='uEDEe'><ins id='uEDEe'></ins><ul id='uEDEe'></ul><sub id='uEDEe'></sub></form><legend id='uEDEe'></legend><bdo id='uEDEe'><pre id='uEDEe'><center id='uEDEe'></center></pre></bdo></b><th id='uEDEe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uEDEe'><tfoot id='uEDEe'></tfoot><dl id='uEDEe'><fieldset id='uEDEe'></fieldset></dl></div>

                  1. <tfoot id='uEDEe'></tfoot>
                    <legend id='uEDEe'><style id='uEDEe'><dir id='uEDEe'><q id='uEDEe'></q></dir></style></legend>

                      <tbody id='uEDEe'></tbody>

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

                            <bdo id='uEDEe'></bdo><ul id='uEDEe'></ul>
                            主站蜘蛛池模板: 亚洲精品国产第一综合99久久 | 久久国产日韩欧美 | 国产一级视频在线观看 | 免费精品在线视频 | 亚洲精品在线视频 | 亚洲风情在线观看 | 亚洲成人免费观看 | 成人综合在线视频 | 欧美日韩一区二区在线 | 成人免费观看视频 | 欧美亚洲一区二区三区 | 日韩第一页 | 九九av | 中文二区 | 成在线人视频免费视频 | 一区二区三区免费 | 91不卡 | 精品在线播放 | 99久久婷婷国产精品综合 | 久久久综合久久 | 欧美高清视频一区 | 免费视频二区 | 波多野结衣二区 | 毛片一级电影 | 羞羞视频免费观看 | 日韩色视频 | 99国产精品久久久 | 免费在线观看一区二区三区 | 日韩在线观看视频一区 | 夜夜骑首页 | m豆传媒在线链接观看 | 日韩精品不卡 | 日韩欧美国产精品一区二区三区 | 综合久久综合久久 | 99久久久无码国产精品 | 国产成人综合亚洲欧美94在线 | 精品中文视频 | 瑞克和莫蒂第五季在线观看 | 一级片免费网站 | 神马九九 | 自拍偷拍亚洲视频 |