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

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

<tfoot id='fzKnn'></tfoot>
  • <legend id='fzKnn'><style id='fzKnn'><dir id='fzKnn'><q id='fzKnn'></q></dir></style></legend>

      <i id='fzKnn'><tr id='fzKnn'><dt id='fzKnn'><q id='fzKnn'><span id='fzKnn'><b id='fzKnn'><form id='fzKnn'><ins id='fzKnn'></ins><ul id='fzKnn'></ul><sub id='fzKnn'></sub></form><legend id='fzKnn'></legend><bdo id='fzKnn'><pre id='fzKnn'><center id='fzKnn'></center></pre></bdo></b><th id='fzKnn'></th></span></q></dt></tr></i><div class="rhpxfrv" id='fzKnn'><tfoot id='fzKnn'></tfoot><dl id='fzKnn'><fieldset id='fzKnn'></fieldset></dl></div>
        • <bdo id='fzKnn'></bdo><ul id='fzKnn'></ul>
      1. PHP 致命錯誤:“消息中指定的 SOAP 操作''與

        PHP Fatal error: quot;The SOAP action specified on the message, #39;#39;, does not match the HTTP SOAP Actionquot;(PHP 致命錯誤:“消息中指定的 SOAP 操作與 HTTP SOAP 操作不匹配)
          <tfoot id='eJn1n'></tfoot>

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

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

            <i id='eJn1n'><tr id='eJn1n'><dt id='eJn1n'><q id='eJn1n'><span id='eJn1n'><b id='eJn1n'><form id='eJn1n'><ins id='eJn1n'></ins><ul id='eJn1n'></ul><sub id='eJn1n'></sub></form><legend id='eJn1n'></legend><bdo id='eJn1n'><pre id='eJn1n'><center id='eJn1n'></center></pre></bdo></b><th id='eJn1n'></th></span></q></dt></tr></i><div class="dbjzr7z" id='eJn1n'><tfoot id='eJn1n'></tfoot><dl id='eJn1n'><fieldset id='eJn1n'></fieldset></dl></div>
                  <tbody id='eJn1n'></tbody>
                • <bdo id='eJn1n'></bdo><ul id='eJn1n'></ul>
                  本文介紹了PHP 致命錯誤:“消息中指定的 SOAP 操作''與 HTTP SOAP 操作不匹配"的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在嘗試編寫一個 PHP 腳本,該腳本將連接到我們 SightMax 界面的 SOAP 客戶端.使用下面的代碼,我可以打印出可用函數列表,但是當我嘗試調用任何函數時,我收到以下錯誤.

                   SOAP_1_2));var_dump($client->__getFunctions());$result = $client->__call("GetSiteSummary", array());echo "

                  ";打印_r($result);echo "</pre>";?>

                  <小時>

                  致命錯誤:未捕獲的 SoapFault 異常:[s:Sender] 消息中指定的 SOAP 操作'"與 HTTP SOAP 操作SmartMax.SightMax.Agent.Operator/IRemotedWebsiteAdministrator/GetSiteSummary"不匹配.在 test2.php:7 堆棧跟蹤中:#0 test2.php(7): SoapClient->__call('GetSiteSummary', Array) #1 {main} 在第 7 行的 test2.php 中拋出

                  過去幾天我一直在研究這個錯誤,我閱讀了不同的文章,說明了可能存在的問題.據我了解,發生此錯誤是因為 SOAP 客戶端是為 wsHttpBinding 配置的,而 PHP 的 SOAP 客戶端中的構建不支持 wsHttpBinding,或者我需要專門指定 SOAP 操作.

                  誰能幫我解釋一下?請記住,雖然我精通 PHP,但使用 SOAP 對我來說是新手,所以按步驟操作非常有幫助.

                  提前致謝.

                  解決方案

                  WCF 似乎在 SOAP 信封中尋找操作.您可以通過這種方式使用 PHP 的 SoapClient 將其添加到您的調用中:

                  $actionHeader = new SoapHeader('http://www.w3.org/2005/08/addressing','行動','http://soapaction.that.was.in.the.wsdl');$client->__setSoapHeaders($actionHeader);

                  如果您更改第三個參數并在 $client 的實例化和 __call() 之間添加該參數,它應該會清除錯誤(并且可能帶來新的錯誤,SOAP 不是很有趣嗎?)

                  另外僅供參考,剛剛經歷了同樣的問題,我發現 __getLastRequestHeaders()、__getLastRequest()、__getLastResponseHeaders() 和 __getLastResponse() 函數非常方便,可以查看我嘗試的方法是否有任何效果(請注意,您需要將trace"=>1"添加到您的 SoapClient 選項中,以便它們工作.)

                  I'm attempting to write a PHP script that will connect to the SOAP client for our SightMax interface. With the code below I am able to print out a list of functions available however when I try and call any function I am getting the the following error.

                  <?php
                  
                  $client = new SoapClient('http://domain.com/SightMaxWebServices/SightMaxWebService.svc?wsdl', array('soap_version' => SOAP_1_2));
                  
                  var_dump($client->__getFunctions());
                  
                  $result = $client->__call("GetSiteSummary", array());
                  
                  echo "<pre>";
                  print_r($result);
                  echo "</pre>";
                  
                  ?>
                  


                  Fatal error: Uncaught SoapFault exception: [s:Sender] The SOAP action specified on the message, '', does not match the HTTP SOAP Action, 'SmartMax.SightMax.Agent.Operator/IRemotedWebsiteAdministrator/GetSiteSummary'. in test2.php:7 Stack trace: #0 test2.php(7): SoapClient->__call('GetSiteSummary', Array) #1 {main} thrown in test2.php on line 7 
                  

                  I've been researching this error for the last couple days and I've read different articles stating possible issues. From what I understand this error occurs because the SOAP client is configured for wsHttpBinding and either the build in SOAP client for PHP does not support the wsHttpBinding or I need to specifically specify the SOAP action.

                  Can anyone shed any light on this for me? Please keep in mind while I'm versed with PHP working with SOAP is new to me so step by steps are very helpful.

                  Thanks in Advance.

                  解決方案

                  WCF seems to be looking for the action in the SOAP envelope. You can add it to your call with PHP's SoapClient this way:

                  $actionHeader = new SoapHeader('http://www.w3.org/2005/08/addressing',
                                                 'Action',
                                                 'http://soapaction.that.was.in.the.wsdl');
                  $client->__setSoapHeaders($actionHeader);
                  

                  If you change the third parameter and add that between your instantiation of $client and the __call() it should clear the error (and possibly bring on new ones, isn't SOAP fun?)

                  Also FYI, having just gone through this same problem, I found the __getLastRequestHeaders(), __getLastRequest(), __getLastResponseHeaders(), and __getLastResponse() functions very handy to see if what I was trying had any effect (note that you need to add "trace" => "1" to your SoapClient options for those to work.)

                  這篇關于PHP 致命錯誤:“消息中指定的 SOAP 操作''與 HTTP SOAP 操作不匹配"的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)
                  • <bdo id='KNE4h'></bdo><ul id='KNE4h'></ul>

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

                        <tbody id='KNE4h'></tbody>

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

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

                        2. <tfoot id='KNE4h'></tfoot>

                          • 主站蜘蛛池模板: 体视显微镜_荧光生物显微镜_显微镜报价-微仪光电生命科学显微镜有限公司 | 深圳诚暄fpc首页-柔性线路板,fpc柔性线路板打样生产厂家 | SDG吸附剂,SDG酸气吸附剂,干式酸性气体吸收剂生产厂家,超过20年生产使用经验。 - 富莱尔环保设备公司(原名天津市武清县环保设备厂) | 电镀标牌_电铸标牌_金属标贴_不锈钢标牌厂家_深圳市宝利丰精密科技有限公司 | 篮球架_乒乓球台_足球门_校园_竞技体育器材_厂家_价格-沧州浩然体育器材有限公司 | 压力喷雾干燥机,喷雾干燥设备,柱塞隔膜泵-无锡市闻华干燥设备有限公司 | 乳化沥青设备_改性沥青设备_沥青加温罐_德州市昊通路桥工程有限公司 | 哲力实业_专注汽车涂料汽车漆研发生产_汽车漆|修补油漆品牌厂家 长沙一级消防工程公司_智能化弱电_机电安装_亮化工程专业施工承包_湖南公共安全工程有限公司 | 金刚网,金刚网窗纱,不锈钢网,金刚网厂家- 河北萨邦丝网制品有限公司 | 不锈钢钢格栅板_热浸锌钢格板_镀锌钢格栅板_钢格栅盖板-格美瑞 | 书法培训-高考书法艺考培训班-山东艺霖书法培训凭实力挺进央美 | 仿清水混凝土_清水混凝土装修_施工_修饰_保护剂_修补_清水混凝土修复-德州忠岭建筑装饰工程 | 青岛侦探_青岛侦探事务所_青岛劝退小三_青岛调查出轨取证公司_青岛婚外情取证-青岛探真调查事务所 | 短信营销平台_短信群发平台_106短信发送平台-河南路尚 | 德国GMN轴承,GMN角接触球轴承,GMN单向轴承,GMN油封,GMN非接触式密封 | 空气净化器租赁,空气净化器出租,全国直租_奥司汀净化器租赁 | 泰州物流公司_泰州货运公司_泰州物流专线-东鑫物流公司 | 轻型地埋电缆故障测试仪,频响法绕组变形测试仪,静荷式卧式拉力试验机-扬州苏电 | 南京蜂窝纸箱_南京木托盘_南京纸托盘-南京博恒包装有限公司 | 圆周直径尺-小孔内视镜-纤维研磨刷-东莞市高腾达精密工具 | 工业制氮机_psa制氮机厂家-宏骁智能装备科技江苏有限公司 | 光纤测温-荧光光纤测温系统-福州华光天锐光电科技有限公司 | [官网]叛逆孩子管教_戒网瘾学校_全封闭问题青少年素质教育_新起点青少年特训学校 | 首页-恒温恒湿试验箱_恒温恒湿箱_高低温试验箱_高低温交变湿热试验箱_苏州正合 | 雷达液位计_超声波风速风向仪_雨量传感器_辐射传感器-山东风途物联网 | 【MBA备考网】-2024年工商管理硕士MBA院校/报考条件/培训/考试科目/提前面试/考试/学费-MBA备考网 | 进口便携式天平,外校_十万分之一分析天平,奥豪斯工业台秤,V2000防水秤-重庆珂偌德科技有限公司(www.crdkj.com) | 泰州物流公司_泰州货运公司_泰州物流专线-东鑫物流公司 | 生产加气砖设备厂家很多,杜甫机械加气砖设备价格公道 | 德国BOSCH电磁阀-德国HERION电磁阀-JOUCOMATIC电磁阀|乾拓百科 | 洁净实验室工程-成都手术室净化-无尘车间装修-四川华锐净化公司-洁净室专业厂家 | 北京开源多邦科技发展有限公司官网| 佛山商标注册_商标注册代理|专利注册申请_商标注册公司_鸿邦知识产权 | 优考试_免费在线考试系统_培训考试系统_题库系统_组卷答题系统_匡优考试 | 颗粒机,颗粒机组,木屑颗粒机-济南劲能机械有限公司 | 济南菜鸟驿站广告|青岛快递车车体|社区媒体-抖音|墙体广告-山东揽胜广告传媒有限公司 | 德州网站开发定制-小程序开发制作-APP软件开发-「两山开发」 | 北京网站建设-企业网站建设-建站公司-做网站-北京良言多米网络公司 | 纳米涂料品牌 防雾抗污纳米陶瓷涂料厂家_虹瓷科技 | 蒜肠网-动漫,二次元,COSPLAY,漫展以及收藏型模型,手办,玩具的新媒体.(原变形金刚变迷TF圈) | 拉力机-万能试验机-材料拉伸试验机-电子拉力机-拉力试验机厂家-冲击试验机-苏州皖仪实验仪器有限公司 |