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

    • <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="qwawimqqmiuu" 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 客戶端調用重載的 wsdl webservice 方

        How to call overloaded wsdl webservice method from php soap client(如何從 php soap 客戶端調用重載的 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="qwawimqqmiuu" 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 客戶端調用重載的 wsdl webservice 方法的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  網絡服務: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);?>

                  它給出了錯誤 GetSubscriberInfoVCLogV2 is not found.我需要得到 GetSubscriberInfoVCLogV2 的響應.誰能幫我找到解決方案.

                  解決方案

                  做到這一點的唯一方法是手動編寫 XML 請求并通過方法 SoapClient::__doRequest 發送它.

                  應該是這樣的:

                  $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($請求,"http://www.exemple.com/path/to/WebService.asmx","http://tempuri.org/TheMessageNameGoesHere",肥皂_1_1);

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

                  XML 結構也可以在 WebService 描述頁面中找到,當您在函數中單擊時.

                  方法__doRequest的第三個參數是SOAP動作,可以在WSDL文件中作為標簽<的屬性找到/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>

                  這篇關于如何從 php soap 客戶端調用重載的 wsdl webservice 方法的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)

                    <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="qwawimqqmiuu" id='ELZvi'><tfoot id='ELZvi'></tfoot><dl id='ELZvi'><fieldset id='ELZvi'></fieldset></dl></div>

                          • 主站蜘蛛池模板: 97视频在线观看网站 | 爱爱综合网 | 在线免费观看色 | 在线一级片| 中文字幕在线第二页 | 亚洲人在线播放 | 天天操天天射综合 | 国产小网站| av一级久久| 成人在线免费观看视频 | 久久综合久久久 | 免费观看av | av官网在线| 日本精品一区二区三区视频 | 涩涩操 | 国产日韩精品一区二区 | 超碰日本| 国产精品日韩欧美一区二区三区 | 精品一区二区三区四区五区 | 久热免费 | www.婷婷亚洲基地 | 久久激情视频 | 精品三区| 国产精品久久精品 | 精品国产一区二区三区性色av | 国产一区二区三区四区hd | 偷拍自拍在线观看 | 一级片在线观看视频 | 亚洲3级| 欧美日韩在线精品 | 一区二区三区免费在线观看 | 国产黄色小视频在线观看 | 日日干日日操 | 久久久无码精品亚洲日韩按摩 | 九九九视频在线 | 日日骚av| 国产一区二区精品在线观看 | 亚洲一区二区三区乱码aⅴ 四虎在线视频 | 亚洲劲爆av| 亚洲精品自拍视频 | 国产精品久久99 |