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

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

    <tfoot id='hMUPK'></tfoot>
    <legend id='hMUPK'><style id='hMUPK'><dir id='hMUPK'><q id='hMUPK'></q></dir></style></legend>

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

        內容類型 'text/xml;charset=utf-8' 不是預期的類

        content type #39;text/xml; charset=utf-8#39; was not the expected type #39;application/soap+xml; charset=utf-8#39;(內容類型 text/xml;charset=utf-8 不是預期的類型 application/soap+xml;字符集=utf-8) - IT屋-程序員軟件開發技

            <bdo id='o0B1k'></bdo><ul id='o0B1k'></ul>

            1. <tfoot id='o0B1k'></tfoot>

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

            2. <legend id='o0B1k'><style id='o0B1k'><dir id='o0B1k'><q id='o0B1k'></q></dir></style></legend>
            3. <i id='o0B1k'><tr id='o0B1k'><dt id='o0B1k'><q id='o0B1k'><span id='o0B1k'><b id='o0B1k'><form id='o0B1k'><ins id='o0B1k'></ins><ul id='o0B1k'></ul><sub id='o0B1k'></sub></form><legend id='o0B1k'></legend><bdo id='o0B1k'><pre id='o0B1k'><center id='o0B1k'></center></pre></bdo></b><th id='o0B1k'></th></span></q></dt></tr></i><div class="ibbezm5" id='o0B1k'><tfoot id='o0B1k'></tfoot><dl id='o0B1k'><fieldset id='o0B1k'></fieldset></dl></div>
                  <tbody id='o0B1k'></tbody>
                  本文介紹了內容類型 'text/xml;charset=utf-8' 不是預期的類型 'application/soap+xml;字符集=utf-8'的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我一直在嘗試向soap服務器發送正確的請求.我不斷收到錯誤消息.

                  這是我的 xml

                  獲取最后一個請求(添加換行符):

                  得到最后的回應:

                  請求頭:

                  POST/DPWebService/CardsService.svc/ICardsService HTTP/1.1主機:d67v7tg1連接:保持活動用戶代理:PHP-SOAP/5.2.9-1內容類型:文本/xml;字符集=utf-8SOAPAction:http://tempuri.org/ICardsService/TestData1"內容長度:254

                  這是回復.

                  object(SoapFault)#2 (8) {[消息:受保護"]=>string(142) "無法處理消息,因為內容類型 'text/xml; charset=utf-8' 不是預期的類型 'application/soap+xml; charset=utf-8'."[字符串:私人"]=>字符串(0)"[代碼:受保護"]=>整數(0)[文件:受保護"]=>string(32) "C:localhostwww	est5index.php"[行:受保護"]=>整數(208)["trace:private"]=>數組(3){[0]=>數組(4){[功能"]=>字符串(11)__doRequest"[類"]=>字符串(10)SoapClient"[類型"]=>字符串(2)->"[參數"]=>數組(5){[0]=>字符串(254)1"[1]=>字符串(59)http://d67v7tg1/DPWebService/CardsService.svc/ICardsService"[2]=>字符串(42)http://tempuri.org/ICardsService/TestData1"[3]=>整數(1)[4]=>整數(0)}}[1]=>數組(4){[功能"]=>字符串(6)__call"[類"]=>字符串(10)SoapClient"[類型"]=>字符串(2)->"[參數"]=>數組(2){[0]=>字符串(9)測試數據1"[1]=>數組(1){[0]=>數組(2){[iVal"]=>整數(1)[strVal"]=>字符串(5)Proba"}}}}[2]=>數組(6){[文件"]=>string(32) "C:localhostwww	est5index.php"[行"]=>整數(208)[功能"]=>字符串(9)測試數據1"[類"]=>字符串(10)SoapClient"[類型"]=>字符串(2)->"[參數"]=>數組(1){[0]=>數組(2){[iVal"]=>整數(1)[strVal"]=>字符串(5)Proba"}}}}[故障字符串"]=>string(142) "無法處理消息,因為內容類型 'text/xml; charset=utf-8' 不是預期的類型 'application/soap+xml; charset=utf-8'."[故障代碼"]=>字符串(4)HTTP"}

                  得到最后的回應:

                  請求頭:

                  POST/DPWebService/CardsService.svc/ICardsService HTTP/1.1主機:d67v7tg1連接:保持活動用戶代理:PHP-SOAP/5.2.9-1內容類型:文本/xml;字符集=utf-8SOAPAction:http://tempuri.org/ICardsService/TestData1"內容長度:254

                  解決方案

                  PHP 的原生 SOAP 擴展是一個不可調試的二進制大塊.

                  根據 PHP 手冊中的此注釋,它被硬編碼為使用 MIME 內容類型 application/soap+xml 發送 SOAP 請求.

                  您的 SOAP 服務器似乎拒絕這種內容類型,只需要 text/xml.

                  根據這個 SOAP 1.2 標準文檔,關于 SOAP over HTTP 的第 7.1.4 節:

                  <塊引用>

                  符合此綁定的實現:

                  1. 必須能夠發送和接收使用媒體類型application/soap+xml"序列化的消息,A.應用程序/soap+xml 媒體類型.

                  您使用的 SOAP 服務器不符合 1.2 標準.

                  (根據記錄,這是我第一次看到有人對 PHP SOAP 擴展提出問題,而問題不是與擴展本身有關!)>

                  I've been trying for a long time to send right request to soap server. I'm keep getting error message.

                  Here is my xml

                  GET LAST REQUEST (newlines added):

                  <?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:TestData1><ns1:iVal>1</ns1:iVal></ns1:TestData1></SOAP-ENV:Body>
                  </SOAP-ENV:Envelope>
                  

                  GET LAST RESPONSE :

                  REQUEST HEADERS:

                  POST /DPWebService/CardsService.svc/ICardsService HTTP/1.1
                  Host: d67v7tg1
                  Connection: Keep-Alive
                  User-Agent: PHP-SOAP/5.2.9-1
                  Content-Type: text/xml; charset=utf-8
                  SOAPAction: "http://tempuri.org/ICardsService/TestData1"
                  Content-Length: 254
                  

                  Here is the response.

                  object(SoapFault)#2 (8) { 
                  ["message:protected"]=> string(142) "Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'." 
                  ["string:private"]=> string(0) "" 
                  ["code:protected"]=> int(0) 
                  ["file:protected"]=> string(32) "C:localhostwww	est5index.php" 
                  ["line:protected"]=> int(208) 
                  ["trace:private"]=> array(3) { 
                      [0]=> array(4) { 
                          ["function"]=> string(11) "__doRequest" 
                          ["class"]=> string(10) "SoapClient" 
                          ["type"]=> string(2) "->" 
                          ["args"]=> array(5) { 
                              [0]=> string(254) " 1 " 
                              [1]=> string(59) "http://d67v7tg1/DPWebService/CardsService.svc/ICardsService" 
                              [2]=> string(42) "http://tempuri.org/ICardsService/TestData1" 
                              [3]=> int(1) 
                              [4]=> int(0) 
                          }
                      } 
                      [1]=> array(4) { 
                          ["function"]=> string(6) "__call" 
                          ["class"]=> string(10) "SoapClient" 
                          ["type"]=> string(2) "->" 
                          ["args"]=> array(2) { 
                              [0]=> string(9) "TestData1" 
                              [1]=> array(1) { 
                                  [0]=> array(2) { 
                                      ["iVal"]=> int(1) 
                                      ["strVal"]=> string(5) "Proba" 
                                  } 
                              } 
                          } 
                      } 
                      [2]=> array(6) { 
                          ["file"]=> string(32) "C:localhostwww	est5index.php" 
                          ["line"]=> int(208) 
                          ["function"]=> string(9) "TestData1" 
                          ["class"]=> string(10) "SoapClient" 
                          ["type"]=> string(2) "->" 
                          ["args"]=> array(1) { 
                              [0]=> array(2) { 
                                  ["iVal"]=> int(1) 
                                  ["strVal"]=> string(5) "Proba" 
                              } 
                          } 
                      } 
                  } 
                  ["faultstring"]=> string(142) "Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'." 
                  ["faultcode"]=> string(4) "HTTP" 
                  } 
                  

                  GET LAST RESPONSE :

                  REQUEST HEADERS:

                  POST /DPWebService/CardsService.svc/ICardsService HTTP/1.1
                  Host: d67v7tg1
                  Connection: Keep-Alive
                  User-Agent: PHP-SOAP/5.2.9-1
                  Content-Type: text/xml; charset=utf-8
                  SOAPAction: "http://tempuri.org/ICardsService/TestData1"
                  Content-Length: 254
                  

                  解決方案

                  PHP's native SOAP extension is an undebuggable binary blob of horrors.

                  According to this comment in the PHP manual, it is hard-coded to send SOAP requests with the MIME content type application/soap+xml.

                  Your SOAP server seems to reject this content type, expecting only text/xml.

                  According to this SOAP 1.2 standard document, section 7.1.4 on SOAP over HTTP:

                  Conforming implementations of this binding:

                  1. MUST be capable of sending and receiving messages serialized using media type "application/soap+xml" whose proper use and parameters are described in A. The application/soap+xml Media Type.

                  The SOAP server you are using is not complaint with the 1.2 standard.

                  (For the record, this is the first time I've ever, ever seen anyone with a question about the PHP SOAP extension where the problem wasn't with the extension itself!)

                  這篇關于內容類型 'text/xml;charset=utf-8' 不是預期的類型 'application/soap+xml;字符集=utf-8'的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)
                      <tbody id='3IZyX'></tbody>

                      <bdo id='3IZyX'></bdo><ul id='3IZyX'></ul>
                    • <small id='3IZyX'></small><noframes id='3IZyX'>

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

                          • <legend id='3IZyX'><style id='3IZyX'><dir id='3IZyX'><q id='3IZyX'></q></dir></style></legend>
                            主站蜘蛛池模板: 杭州代理记账多少钱-注册公司代办-公司注销流程及费用-杭州福道财务管理咨询有限公司 | 体检车_移动CT车_CT检查车_CT车_深圳市艾克瑞电气有限公司移动CT体检车厂家-深圳市艾克瑞电气有限公司 | 上海单片机培训|重庆曙海培训分支机构—CortexM3+uC/OS培训班,北京linux培训,Windows驱动开发培训|上海IC版图设计,西安linux培训,北京汽车电子EMC培训,ARM培训,MTK培训,Android培训 | 马尔表面粗糙度仪-MAHR-T500Hommel-Mitutoyo粗糙度仪-笃挚仪器 | 商秀—企业短视频代运营_抖音企业号托管 | 南京办公用品网-办公文具用品批发-打印机耗材采购| 透平油真空滤油机-变压器油板框滤油机-滤油车-华之源过滤设备 | 龙门加工中心-数控龙门加工中心厂家价格-山东海特数控机床有限公司_龙门加工中心-数控龙门加工中心厂家价格-山东海特数控机床有限公司 | 撕碎机_轮胎破碎机_粉碎机_回收生产线厂家_东莞华达机械有限公司 | 避光流动池-带盖荧光比色皿-生化流动比色皿-宜兴市晶科光学仪器 东莞爱加真空科技有限公司-进口真空镀膜机|真空镀膜设备|Polycold维修厂家 | 膜结构_ETFE膜结构_膜结构厂家_膜结构设计-深圳市烨兴智能空间技术有限公司 | 对夹式止回阀_对夹式蝶形止回阀_对夹式软密封止回阀_超薄型止回阀_不锈钢底阀-温州上炬阀门科技有限公司 | 天津热油泵_管道泵_天津高温热油泵-天津市金丰泰机械泵业有限公司【官方网站】 | 直流电能表-充电桩电能表-导轨式电能表-智能电能表-浙江科为电气有限公司 | 金属回收_废铜废铁回收_边角料回收_废不锈钢回收_废旧电缆线回收-广东益夫金属回收公司 | 耐磨陶瓷,耐磨陶瓷管道_厂家-淄博拓创陶瓷科技 | 馋嘴餐饮网_餐饮加盟店火爆好项目_餐饮连锁品牌加盟指南创业平台 | 微型驱动系统解决方案-深圳市兆威机电股份有限公司 | 转向助力泵/水泵/发电机皮带轮生产厂家-锦州华一精工有限公司 | 面粉仓_储酒罐_不锈钢储酒罐厂家-泰安鑫佳机械制造有限公司 | 拉曼光谱仪_便携式|激光|显微共焦拉曼光谱仪-北京卓立汉光仪器有限公司 | 根系分析仪,大米外观品质检测仪,考种仪,藻类鉴定计数仪,叶面积仪,菌落计数仪,抑菌圈测量仪,抗生素效价测定仪,植物表型仪,冠层分析仪-杭州万深检测仪器网 | 热风机_工业热风机生产厂家上海冠顶公司提供专业热风机图片价格实惠 | 烟台条码打印机_烟台条码扫描器_烟台碳带_烟台数据采集终端_烟台斑马打印机-金鹏电子-金鹏电子 | 电销卡 防封电销卡 不封号电销卡 电话销售卡 白名单电销卡 电销系统 外呼系统 | 【铜排折弯机,钢丝折弯成型机,汽车发泡钢丝折弯机,线材折弯机厂家,线材成型机,铁线折弯机】贝朗折弯机厂家_东莞市贝朗自动化设备有限公司 | 国际线缆连接网 - 连接器_线缆线束加工行业门户网站 | 佛山市钱丰金属不锈钢蜂窝板定制厂家|不锈钢装饰线条|不锈钢屏风| 电梯装饰板|不锈钢蜂窝板不锈钢工艺板材厂家佛山市钱丰金属制品有限公司 | 400电话_400电话申请_866元/年_【400电话官方业务办理】-俏号网 3dmax渲染-效果图渲染-影视动画渲染-北京快渲科技有限公司 | 线材成型机,线材折弯机,线材成型机厂家,贝朗自动化设备有限公司1 | 道康宁消泡剂-瓦克-大川进口消泡剂供应商 | 硅胶管挤出机厂家_硅胶挤出机生产线_硅胶条挤出机_臣泽智能装备 贵州科比特-防雷公司厂家提供贵州防雷工程,防雷检测,防雷接地,防雷设备价格,防雷产品报价服务-贵州防雷检测公司 | 发电机组|柴油发电机组-批发,上柴,玉柴,潍柴,康明斯柴油发电机厂家直销 | 钢结构-钢结构厂房-钢结构工程[江苏海逵钢构厂] | 苏州工作服定做-工作服定制-工作服厂家网站-尺品服饰科技(苏州)有限公司 | 悬浮拼装地板_篮球场木地板翻新_运动木地板价格-上海越禾运动地板厂家 | 粘度计NDJ-5S,粘度计NDJ-8S,越平水分测定仪-上海右一仪器有限公司 | 恒温恒湿箱(药品/保健品/食品/半导体/细菌)-兰贝石(北京)科技有限公司 | 加气混凝土砌块设备,轻质砖设备,蒸养砖设备,新型墙体设备-河南省杜甫机械制造有限公司 | 真空吸污车_高压清洗车厂家-程力专用汽车股份有限公司官网 | 电动葫芦|手拉葫芦|环链电动葫芦|微型电动葫芦-北京市凌鹰起重机械有限公司 |