pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <bdo id='toBjJ'></bdo><ul id='toBjJ'></ul>
    1. <small id='toBjJ'></small><noframes id='toBjJ'>

        <tfoot id='toBjJ'></tfoot>

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

      2. “未將對(duì)象引用設(shè)置為對(duì)象的實(shí)例"從 PHP 連接

        quot;Object reference not set to an instance of an objectquot; error connecting to SOAP server from PHP(“未將對(duì)象引用設(shè)置為對(duì)象的實(shí)例從 PHP 連接到 SOAP 服務(wù)器時(shí)出錯(cuò))
        <i id='YCtM9'><tr id='YCtM9'><dt id='YCtM9'><q id='YCtM9'><span id='YCtM9'><b id='YCtM9'><form id='YCtM9'><ins id='YCtM9'></ins><ul id='YCtM9'></ul><sub id='YCtM9'></sub></form><legend id='YCtM9'></legend><bdo id='YCtM9'><pre id='YCtM9'><center id='YCtM9'></center></pre></bdo></b><th id='YCtM9'></th></span></q></dt></tr></i><div class="f7xlxxx" id='YCtM9'><tfoot id='YCtM9'></tfoot><dl id='YCtM9'><fieldset id='YCtM9'></fieldset></dl></div>
          <bdo id='YCtM9'></bdo><ul id='YCtM9'></ul>
          <tfoot id='YCtM9'></tfoot>
              <tbody id='YCtM9'></tbody>

          • <small id='YCtM9'></small><noframes id='YCtM9'>

                • <legend id='YCtM9'><style id='YCtM9'><dir id='YCtM9'><q id='YCtM9'></q></dir></style></legend>
                  本文介紹了“未將對(duì)象引用設(shè)置為對(duì)象的實(shí)例"從 PHP 連接到 SOAP 服務(wù)器時(shí)出錯(cuò)的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我第一次嘗試從 PHP 連接到 SOAP 服務(wù)器,但我不明白如何登錄并獲取我需要的數(shù)據(jù).我嘗試連接的服務(wù)是 Hawley USA 服務(wù) http://hawleyusa.com/thcServices/StoreServices.asmx).我一直在看一些關(guān)于如何連接的帖子,我了解了一些基礎(chǔ)知識(shí).我已經(jīng)確認(rèn)我在我的 PHP 中啟用了 SOAP,我只是想獲取一個(gè)庫(kù)存列表.這是我正在使用的代碼:

                  ";print($client->InventoryList(array("LoginID" => $login_id, "Password" => $password)));回聲
                  ";}捕獲(SoapFault $exception){回聲 $exception;}

                  但是,當(dāng)我運(yùn)行此代碼時(shí),出現(xiàn)此錯(cuò)誤:

                  SoapFault 異常:[soap:Server] 服務(wù)器無(wú)法處理請(qǐng)求.--->你調(diào)用的對(duì)象是空的.在/Users/steve/Sites/mysite/hawley_client.php:12

                  在調(diào)試時(shí),我可以看到 $client 實(shí)例已啟動(dòng),所以我不確定為什么會(huì)出現(xiàn)此錯(cuò)誤.

                  第二個(gè)問題:我是否正確傳遞了用戶名和密碼?

                  謝謝.

                  更新:我輸入了 $client->__getLastRequest,這就是我得到的:

                  所以我可以看到我丟失了我的登錄 ID 和密碼.如何將它們添加到我的 InventoryList 調(diào)用中?

                  解決方案

                  離你很近了.查看 WSDL,InventoryList 方法采用一個(gè)名為請(qǐng)求"的對(duì)象.稍微修改您的電話線路:

                  $client->InventoryList(array("request" => array("LoginId" => $login_id, "Password" => $password));

                  I'm making my first attempt to connect to a SOAP server from PHP, and I'm not understanding how to log in and get the data I need. The service I'm trying to connect to is the Hawley USA service http://hawleyusa.com/thcServices/StoreServices.asmx). I've been looking at a few posts on how to connect, and I get the basics. I've verified that I have SOAP enabled in my PHP, and I'm just trying to get an inventory list. Here's the code I'm using:

                  <?php
                  ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
                  $wsdl_path = "http://hawleyusa.com/thcServices/StoreServices.asmx?WSDL";
                  
                  $login_id = 'mylogin_id';
                  $password = 'mypassword';
                  
                  $client = new SoapClient($wsdl_path);
                  
                  try {
                    echo "<pre>
                  ";
                    print($client->InventoryList(array("LoginID" => $login_id, "Password" => $password)));
                    echo "
                  ";
                  }
                  catch (SoapFault $exception) {
                    echo $exception;      
                  } 
                  

                  However, when I run this code, I get this error:

                  SoapFault exception: [soap:Server] Server was unable to process request. ---> Object reference not set to an instance of an object. in /Users/steve/Sites/mysite/hawley_client.php:12
                  

                  When debugging, I can see the $client instance initiated, so I'm not sure why I'm getting this error.

                  Second question: Am I passing the user ID and password correctly?

                  Thanks.

                  Update: I threw in $client->__getLastRequest, and this is what I got:

                  <?xml version="1.0" encoding="UTF-8"?>
                  <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"              xmlns:ns1="http://hawleyusa.com/thcServices/">
                  <SOAP-ENV:Body>
                  <ns1:InventoryList/>
                  </SOAP-ENV:Body>
                  </SOAP-ENV:Envelope>
                  

                  So I can see that I'm missing my login ID and password. How do I add them to my InventoryList call?

                  解決方案

                  You're close. Looking at the WSDL the InventoryList method takes an object called "request". Modify your call line slightly:

                  $client->InventoryList(array("request" => array("LoginId" => $login_id, "Password" => $password));
                  

                  這篇關(guān)于“未將對(duì)象引用設(shè)置為對(duì)象的實(shí)例"從 PHP 連接到 SOAP 服務(wù)器時(shí)出錯(cuò)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

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

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

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

                              <tbody id='OreMy'></tbody>
                            主站蜘蛛池模板: 烘箱-工业烘箱-工业电炉-实验室干燥箱 - 苏州华洁烘箱制造有限公司 | 电液推杆生产厂家|电动推杆|液压推杆-扬州唯升机械有限公司 | 全温恒温摇床-水浴气浴恒温摇床-光照恒温培养摇床-常州金坛精达仪器制造有限公司 | 带式过滤机厂家_价格_型号规格参数-江西核威环保科技有限公司 | 办公室家具_板式办公家具定制厂家-FMARTS福玛仕办公家具 | 铝合金风口-玻璃钢轴流风机-玻璃钢屋顶风机-德州东润空调设备有限公司 | 高铝矾土熟料_细粉_骨料_消失模_铸造用铝矾土_铝酸钙粉—嵩峰厂家 | 游戏版号转让_游戏资质出售_游戏公司转让-【八九买卖网】 | DWS物流设备_扫码称重量方一体机_快递包裹分拣机_广东高臻智能装备有限公司 | 智能电表|预付费ic卡水电表|nb智能无线远传载波电表-福建百悦信息科技有限公司 | 食药成分检测_调料配方还原_洗涤剂化学成分分析_饲料_百检信息科技有限公司 | 防火阀、排烟防火阀、电动防火阀产品生产销售商-德州凯亿空调设备有限公司 | 过滤器_自清洗过滤器_气体过滤器_苏州华凯过滤技术有限公司 | 奥运星-汽车性能网评-提供个性化汽车资讯| 西安标准厂房_陕西工业厂房_西咸新区独栋厂房_长信科技产业园官方网站 | 消泡剂-水处理消泡剂-涂料消泡剂-切削液消泡剂价格-东莞德丰消泡剂厂家 | 广州云仓代发-昊哥云仓专业电商仓储托管外包代发货服务 | 纸箱抗压机,拉力机,脂肪测定仪,定氮仪-山东德瑞克仪器有限公司 | 电动葫芦-河北悍象起重机械有限公司 | 外贮压-柜式-悬挂式-七氟丙烷-灭火器-灭火系统-药剂-价格-厂家-IG541-混合气体-贮压-非贮压-超细干粉-自动-灭火装置-气体灭火设备-探火管灭火厂家-东莞汇建消防科技有限公司 | Honsberg流量计-Greisinger真空表-气压计-上海欧臻机电设备有限公司 | 不锈钢/气体/液体玻璃转子流量计(防腐,选型,规格)-常州天晟热工仪表有限公司【官网】 | 便民信息网_家电维修,家电清洗,开锁换锁,本地家政公司 | 萃取箱-萃取槽-PVC萃取箱厂家-混合澄清槽- 杭州南方化工设备 | 武汉EPS线条_EPS装饰线条_EPS构件_湖北博欧EPS线条厂家 | 口信网(kousing.com) - 行业资讯_行业展会_行业培训_行业资料 | 编织人生 - 权威手工编织网站,编织爱好者学习毛衣编织的门户网站,织毛衣就上编织人生网-编织人生 | 鲁尔圆锥接头多功能测试仪-留置针测试仪-上海威夏环保科技有限公司 | 粉末冶金注射成型厂家|MIM厂家|粉末冶金齿轮|MIM零件-深圳市新泰兴精密科技 | 礼仪庆典公司,礼仪策划公司,庆典公司,演出公司,演艺公司,年会酒会,生日寿宴,动工仪式,开工仪式,奠基典礼,商务会议,竣工落成,乔迁揭牌,签约启动-东莞市开门红文化传媒有限公司 | 土壤养分检测仪_肥料养分检测仪_土壤水分检测仪-山东莱恩德仪器 大型多片锯,圆木多片锯,方木多片锯,板材多片锯-祥富机械有限公司 | 临海涌泉蜜桔官网|涌泉蜜桔微商批发代理|涌泉蜜桔供应链|涌泉蜜桔一件代发 | 99文库_实习生实用的范文资料文库站 | 小型气象站_车载气象站_便携气象站-山东风途物联网 | 磁力加热搅拌器-多工位|大功率|数显恒温磁力搅拌器-司乐仪器官网 | 酒瓶_酒杯_玻璃瓶生产厂家_徐州明政玻璃制品有限公司 | 冷水机-工业冷水机-冷水机组-欧科隆品牌保障 | 杭州月嫂技术培训服务公司-催乳师培训中心报名费用-产后康复师培训机构-杭州优贝姆健康管理有限公司 | 药品冷藏箱厂家_低温冰箱_洁净工作台-济南欧莱博电子商务有限公司官网 | 浙江上沪阀门有限公司| 塑胶地板-商用PVC地板-pvc地板革-安耐宝pvc塑胶地板厂家 |