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

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

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

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

        <tfoot id='Y1oQi'></tfoot>

        如何從 php soap 客戶端調(diào)用重載的 wsdl webservice 方

        How to call overloaded wsdl webservice method from php soap client(如何從 php soap 客戶端調(diào)用重載的 wsdl webservice 方法)
          • <legend id='oYhns'><style id='oYhns'><dir id='oYhns'><q id='oYhns'></q></dir></style></legend>

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

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

              <tfoot id='oYhns'></tfoot>

                  <bdo id='oYhns'></bdo><ul id='oYhns'></ul>
                    <tbody id='oYhns'></tbody>
                  本文介紹了如何從 php soap 客戶端調(diào)用重載的 wsdl webservice 方法的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

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

                  網(wǎng)絡(luò)服務(wù):http://webservices.dishtv.in/Services/Mobile/Trade/TradeSubscriberInfo.asmx重載方法是 GetSubscriberInfoV2 MessageName="GetSubscriberInfoVCLogV2"我的 php 代碼是,

                   '47','Password' => 'zZa@#286#@');$header = new SOAPHeader('http://tempuri.org/', 'AuthenticationHeader', $soapHeader);$client ->__setSoapHeaders($header);嘗試{$res = $client->GetSubscriberInfoVCLogV2(array('vcNo' => $mobileno, 'mobileNo' => '', 'BizOps' => '1', 'UserID' => '555300','用戶類型' => 'DL' ));}抓住(SoapFault $e){echo "無效否";打印_r($e);}打印_r($res);?>

                  它給出了錯(cuò)誤 GetSubscriberInfoVCLogV2 is not found.我需要得到 GetSubscriberInfoVCLogV2 的響應(yīng).誰能幫我找到解決方案.

                  解決方案

                  做到這一點(diǎn)的唯一方法是手動(dòng)編寫 XML 請(qǐng)求并通過方法 SoapClient::__doRequest 發(fā)送它.

                  應(yīng)該是這樣的:

                  $request = <<<'EOT'<?xml version="1.0" encoding="utf-8"?><SOAP-ENV:信封xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"xmlns:ns1="http://tempuri.org/"><SOAP-ENV:Body><ns1:TheMessageNameGoesHere><ns1:param1>$param1</ns1:param1><ns1:param2>$param2</ns1:param2><ns1:param3>$param3</ns1:param3></ns1:TheMessageNameGoesHere></SOAP-ENV:Body></SOAP-ENV:Envelope>EOT;$response = $soapClient->__doRequest($請(qǐng)求,"http://www.exemple.com/path/to/WebService.asmx","http://tempuri.org/TheMessageNameGoesHere",肥皂_1_1);

                  為 WebService 描述頁面中的 MessageName 更改TheMessageNameGoesHere".

                  XML 結(jié)構(gòu)也可以在 WebService 描述頁面中找到,當(dāng)您在函數(shù)中單擊時(shí).

                  方法__doRequest的第三個(gè)參數(shù)是SOAP動(dòng)作,可以在WSDL文件中作為標(biāo)簽<的屬性找到/p>

                  Webservice : http://webservices.dishtv.in/Services/Mobile/Trade/TradeSubscriberInfo.asmx Overloaded method is GetSubscriberInfoV2 MessageName="GetSubscriberInfoVCLogV2" My php code is,

                  <?php
                  $mobileno="01523833622";
                  $url="http://webservices.dishtv.in/Services/Mobile/Trade/TradeSubscriberInfo.asmx?wsdl";
                  $client = new SoapClient($url);
                  $soapHeader = array('UserID' => '47','Password' => 'zZa@#286#@');
                  $header = new SOAPHeader('http://tempuri.org/', 'AuthenticationHeader', $soapHeader);        
                  $client ->__setSoapHeaders($header); 
                  try
                  {
                          $res = $client->GetSubscriberInfoVCLogV2(array('vcNo' => $mobileno, 'mobileNo' => '', 'BizOps' => '1', 'UserID' => '555300', 'UserType' => 'DL' ));
                  } 
                  catch(SoapFault $e)
                  {   
                          echo "Invalid No";
                          print_r($e);         
                  }
                  print_r($res);
                  ?>
                  

                  It gives error GetSubscriberInfoVCLogV2 is not found. I need to get the response of GetSubscriberInfoVCLogV2. Can anyone help me to find the solution.

                  解決方案

                  The only way to do this is writing the XML request manually and sending it through the method SoapClient::__doRequest.

                  It would be something like this:

                  $request = <<<'EOT'
                    <?xml version="1.0" encoding="utf-8"?>
                    <SOAP-ENV:Envelope
                      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                      xmlns:ns1="http://tempuri.org/">
                      <SOAP-ENV:Body>
                        <ns1:TheMessageNameGoesHere>
                          <ns1:param1>$param1</ns1:param1>
                          <ns1:param2>$param2</ns1:param2>
                          <ns1:param3>$param3</ns1:param3>
                        </ns1:TheMessageNameGoesHere>
                      </SOAP-ENV:Body>
                    </SOAP-ENV:Envelope>
                  EOT;
                  
                  $response = $soapClient->__doRequest(
                    $request,
                    "http://www.exemple.com/path/to/WebService.asmx",
                    "http://tempuri.org/TheMessageNameGoesHere",
                    SOAP_1_1
                  );
                  

                  Change "TheMessageNameGoesHere" for the MessageName found in the WebService description page.

                  The XML structure can also be found in the WebService description page, when you click in the function.

                  The third parameter of the method __doRequest is the SOAP action, and can be found in the WSDL file as an attribute of the tag <soap:operation>

                  這篇關(guān)于如何從 php soap 客戶端調(diào)用重載的 wsdl webservice 方法的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nè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 異常無法連接到主機(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)

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

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

                        <tbody id='ELZvi'></tbody>
                      • <tfoot id='ELZvi'></tfoot>

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

                          • 主站蜘蛛池模板: 煤机配件厂家_刮板机配件_链轮轴组_河南双志机械设备有限公司 | 温州中研白癜风专科_温州治疗白癜风_温州治疗白癜风医院哪家好_温州哪里治疗白癜风 | pH污水传感器电极,溶解氧电极传感器-上海科蓝仪表科技有限公司 | 杭州货架订做_组合货架公司_货位式货架_贯通式_重型仓储_工厂货架_货架销售厂家_杭州永诚货架有限公司 | 承插管件_不锈钢承插管件_锻钢高压管件-温州科正阀门管件有限公司 | 法钢特种钢材(上海)有限公司 - 耐磨钢板、高强度钢板销售加工 阀门智能定位器_电液动执行器_气动执行机构-赫尔法流体技术(北京)有限公司 | 【直乐】河北石家庄脊柱侧弯医院_治疗椎间盘突出哪家医院好_骨科脊柱外科专业医院_治疗抽动症/关节病骨伤权威医院|排行-直乐矫形中医医院 | 淄博不锈钢无缝管,淄博不锈钢管-鑫门物资有限公司 | 铝合金重力铸造_铝合金翻砂铸造_铝铸件厂家-东莞市铝得旺五金制品有限公司 | 成都租车_成都租车公司_成都租车网_众行宝| 基本型顶空进样器-全自动热脱附解吸仪价格-AutoHS全模式-成都科林分析技术有限公司 | 不锈钢复合板厂家_钛钢复合板批发_铜铝复合板供应-威海泓方金属复合材料股份有限公司 | 东莞ERP软件_广州云ERP_中山ERP_台湾工厂erp系统-广东顺景软件科技有限公司 | 定做大型恒温循环水浴槽-工业用不锈钢恒温水箱-大容量低温恒温水槽-常州精达仪器 | 电解抛光加工_不锈钢电解抛光_常州安谱金属制品有限公司 | 横河变送器-横河压力变送器-EJA变送器-EJA压力变送器-「泉蕴仪表」 | 托利多电子平台秤-高精度接线盒-托利多高精度电子秤|百科 | 铝镁锰板厂家_进口钛锌板_铝镁锰波浪板_铝镁锰墙面板_铝镁锰屋面-杭州军晟金属建筑材料 | 深圳市宏康仪器科技有限公司-模拟高空低压试验箱-高温防爆试验箱-温控短路试验箱【官网】 | 小区健身器材_户外健身器材_室外健身器材_公园健身路径-沧州浩然体育器材有限公司 | 成都治疗尖锐湿疣比较好的医院-成都治疗尖锐湿疣那家医院好-成都西南皮肤病医院 | Safety light curtain|Belt Sway Switches|Pull Rope Switch|ultrasonic flaw detector-Shandong Zhuoxin Machinery Co., Ltd | ★店家乐|服装销售管理软件|服装店收银系统|内衣店鞋店进销存软件|连锁店管理软件|收银软件手机版|会员管理系统-手机版,云版,App | 一体式钢筋扫描仪-楼板测厚仪-裂缝检测仪-泰仕特(北京) | 桥架-槽式电缆桥架-镀锌桥架-托盘式桥架 - 上海亮族电缆桥架制造有限公司 | 天津次氯酸钠酸钙溶液-天津氢氧化钠厂家-天津市辅仁化工有限公司 | MVE振动电机_MVE震动电机_MVE卧式振打电机-河南新乡德诚生产厂家 | 深圳律师咨询_深圳律师事务所_华荣【免费在线法律咨询】网 | 交通信号灯生产厂家_红绿灯厂家_电子警察监控杆_标志杆厂家-沃霖电子科技 | 领先的大模型技术与应用公司-中关村科金| 智能交通网_智能交通系统_ITS_交通监控_卫星导航_智能交通行业 | 升降炉_真空气氛炉_管式电阻炉厂家-山东中辰电炉有限公司 | 密封无忧网 _ 专业的密封产品行业信息网 | 水篦子|雨篦子|镀锌格栅雨水篦子|不锈钢排水篦子|地下车库水箅子—安平县云航丝网制品厂 | 酒店品牌设计-酒店vi设计-酒店标识设计【国际级】VI策划公司 | 干粉砂浆设备-干粉砂浆生产线-干混-石膏-保温砂浆设备生产线-腻子粉设备厂家-国恒机械 | 合肥卓创建筑装饰,专业办公室装饰、商业空间装修与设计。 | 最新范文网_实用的精品范文美文网 | 电镀电源整流器_高频电解电源_单脉双脉冲电源 - 东阳市旭东电子科技 | 复合土工膜厂家|hdpe防渗土工膜|复合防渗土工布|玻璃纤维|双向塑料土工格栅-安徽路建新材料有限公司 | 杭州翻译公司_驾照翻译_专业人工翻译-杭州以琳翻译有限公司官网 组织研磨机-高通量组织研磨仪-实验室多样品组织研磨机-东方天净 |