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

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

    1. <small id='zeNlO'></small><noframes id='zeNlO'>

      <legend id='zeNlO'><style id='zeNlO'><dir id='zeNlO'><q id='zeNlO'></q></dir></style></legend>
    2. Soap - PHP 中的 base64binary 數據

      Soap - base64binary data in PHP(Soap - PHP 中的 base64binary 數據)

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

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

              <tbody id='tNc0c'></tbody>

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

            • <i id='tNc0c'><tr id='tNc0c'><dt id='tNc0c'><q id='tNc0c'><span id='tNc0c'><b id='tNc0c'><form id='tNc0c'><ins id='tNc0c'></ins><ul id='tNc0c'></ul><sub id='tNc0c'></sub></form><legend id='tNc0c'></legend><bdo id='tNc0c'><pre id='tNc0c'><center id='tNc0c'></center></pre></bdo></b><th id='tNc0c'></th></span></q></dt></tr></i><div class="oimwmmk" id='tNc0c'><tfoot id='tNc0c'></tfoot><dl id='tNc0c'><fieldset id='tNc0c'></fieldset></dl></div>
                <bdo id='tNc0c'></bdo><ul id='tNc0c'></ul>
                本文介紹了Soap - PHP 中的 base64binary 數據的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我有一個使用 PHP 編寫的 SOAP 客戶端,可以調用 WSDL 服務.其中一個函數返回base64binary 數據.我一直在嘗試解碼它,但沒有任何運氣.

                I have a SOAP client in PHP that makes calls to a WSDL service. One of the functions returns a base64binary data. I've been trying to decode it without any luck.

                base64_decode($encoded_base64data) 不起作用.我嘗試使用帶有各種參數的 base_convert() 和 mv_convert_encoding(),但無法獲得正確的結果.

                base64_decode($encoded_base64data) will not work. I tried using base_convert() and mv_convert_encoding() with various parameters, but could not get a proper result.

                編碼后的結果數據以:

                ??`I?%&/m?{J?J??t??`$?@???????iG#)?*??eVe]f@????{????{????;?N'????fdl??J??!????~|?"
                

                (數據要長很多,這只是字符串的一小部分)

                (the data is much longer, this is just a small portion of the string)

                知道怎么做嗎?

                謝謝

                編輯

                我使用新的 __doRequest() 方法擴展了 SoapClient,以檢查接收到的數據是否是正確的 base64 字符串.我得到了一個正確的 base64 編碼字符串,上面顯示的結果是解碼后的響應.

                I've extended the SoapClient with a new __doRequest() method to check that the received data is a proper base64 string. I got a proper base64 encoded string, and the result shown above is the decoded response.

                無論如何,字符串由 SoapClient 自動從 base64 解碼為二進制(如@hakre 建議的那樣),所以我只需要處理二進制響應.

                Anyhow, the string was decoded automatically by the SoapClient from base64 to binary (as @hakre suggested), so I only have to deal with the binary response.

                現在我需要的是將二進制字符串解碼成看起來像可讀格式的東西.最終響應應包含格魯吉亞語輸出,因此我試圖找出原始編碼(但這是一個不同的問題).

                Now what I need is to decode the binary string into something that would look like a readable format. The final response should contain Georgian output, so I'm trying to figure out the original encoding (but that's a different question).

                推薦答案

                來自 base64Binary(XML 架構第 2 部分:數據類型 3.2.16):

                [定義:] base64Binary 表示 Base64 編碼的任意二進制數據.價值空間base64Binary 是二進制八位字節的有限長度序列的集合.對于base64Binary數據,整個二進制流使用[RFC 2045] 的第 6.8 節.

                [Definition:] base64Binary represents Base64-encoded arbitrary binary data. The value space of base64Binary is the set of finite-length sequences of binary octets. For base64Binary data the entire binary stream is encoded using the Base64 Content-Transfer-Encoding defined in Section 6.8 of [RFC 2045].

                你然后評論:

                當 WSDL 具有 xsd:base64binary 時,我應該得到 base64 響應還是二進制響應或 base64 編碼字符串?

                When a WSDL has xsd:base64binary am I supposed to get a base64 response or a binary response or a base64 encoded string?

                你應該得到一個 base64 編碼的字符串.這個 base64 編碼的字符串代表二進制數據.如果您了解 XML 規范,這可能會更明顯,因為您不能使用 XML 傳遞二進制信息,您只能傳遞適合 XML 字符范圍的信息.并且該范圍不包括作為二進制數據一部分的字符,尤其是控制字符和較高的窗格,如果您將二進制八位字節分為較低和較高的一個.請參閱字符(可擴展標記語言 (XML) 1.0(第五版)2.2) 這表明 XML 是關于字符的,而不是二進制數據.并且還顯示了這些字符形成的二進制數據(以及它們不能形成的二進制數據).

                You are supposed to get a base64 encoded string. That base64 encoded string represents the binary data. If you know the XML specification, this might be more obvious because you can not pass binary information with XML, you can only pass information that fit's into XML's character-range. And that range excludes characters that are part of binary data, especially control characters and the higher pane if you divide the binary octet into a lower and higher one. See Characters (Extensible Markup Language (XML) 1.0 (Fifth Edition) 2.2) which shows that XML is about characters, not binary data. And which also shows which binary data those characters do form (and which they can not form).

                因此,base64Binary 編碼被定義為一種在 XML 文檔中傳輸二進制數據的方法.因此,您在 SOAP 請求的原始 XML 響應中獲得的內容絕不是二進制,而是 base64 編碼的二進制數據.

                Therefore the base64Binary encoding has been defined as one way to transport binary data within an XML document. So what you've got inside the raw XML response to your SOAP request is never binary but base64 encoded binary data.

                注意您的 SOAP 客戶端可能已經處理了這種編碼并提供解碼的數據.

                Take care that your SOAP-client might already deal with this encoding and provide the data decoded.

                這篇關于Soap - PHP 中的 base64binary 數據的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='2EkYx'></small><noframes id='2EkYx'>

                <legend id='2EkYx'><style id='2EkYx'><dir id='2EkYx'><q id='2EkYx'></q></dir></style></legend>
                • <bdo id='2EkYx'></bdo><ul id='2EkYx'></ul>

                          <tbody id='2EkYx'></tbody>
                        <tfoot id='2EkYx'></tfoot>
                        • <i id='2EkYx'><tr id='2EkYx'><dt id='2EkYx'><q id='2EkYx'><span id='2EkYx'><b id='2EkYx'><form id='2EkYx'><ins id='2EkYx'></ins><ul id='2EkYx'></ul><sub id='2EkYx'></sub></form><legend id='2EkYx'></legend><bdo id='2EkYx'><pre id='2EkYx'><center id='2EkYx'></center></pre></bdo></b><th id='2EkYx'></th></span></q></dt></tr></i><div class="0eigmie" id='2EkYx'><tfoot id='2EkYx'></tfoot><dl id='2EkYx'><fieldset id='2EkYx'></fieldset></dl></div>
                          主站蜘蛛池模板: 车载加油机品牌_ 柴油加油机厂家 | 右手官网|右手工业设计|外观设计公司|工业设计公司|产品创新设计|医疗产品结构设计|EMC产品结构设计 | 三氯异氰尿酸-二氯-三氯-二氯异氰尿酸钠-优氯净-强氯精-消毒片-济南中北_优氯净厂家 | 干培两用箱-细菌恒温培养箱-菲斯福仪器| 京马网,京马建站,网站定制,营销型网站建设,东莞建站,东莞网站建设-首页-京马网 | 焊接烟尘净化器__焊烟除尘设备_打磨工作台_喷漆废气治理设备 -催化燃烧设备 _天津路博蓝天环保科技有限公司 | 自动记录数据电子台秤,记忆储存重量电子桌称,设定时间记录电子秤-昆山巨天 | 365文案网_全网创意文案句子素材站| 【铜排折弯机,钢丝折弯成型机,汽车发泡钢丝折弯机,线材折弯机厂家,线材成型机,铁线折弯机】贝朗折弯机厂家_东莞市贝朗自动化设备有限公司 | 考勤系统_考勤管理系统_网络考勤软件_政企|集团|工厂复杂考勤工时统计排班管理系统_天时考勤 | 北京租车公司_汽车/客车/班车/大巴车租赁_商务会议/展会用车/旅游大巴出租_北京桐顺创业租车公司 | 玻璃钢格栅盖板|玻璃钢盖板|玻璃钢格栅板|树篦子-长沙川皖玻璃钢制品有限公司 | LED投光灯-工矿灯-led路灯头-工业灯具 - 山东普瑞斯照明科技有限公司 | 电伴热系统施工_仪表电伴热保温箱厂家_沃安电伴热管缆工业技术(济南)有限公司 | 欧洲MV日韩MV国产_人妻无码一区二区三区免费_少妇被 到高潮喷出白浆av_精品少妇自慰到喷水AV网站 | 臭氧老化试验箱,高低温试验箱,恒温恒湿试验箱,防水试验设备-苏州亚诺天下仪器有限公司 | 全钢实验台,实验室工作台厂家-无锡市辰之航装饰材料有限公司 | 鼓风干燥箱_真空烘箱_高温干燥箱_恒温培养箱-上海笃特科学仪器 | GEDORE扭力螺丝刀-GORDON防静电刷-CHEMTRONICS吸锡线-上海卓君电子有限公司 | ?水马注水围挡_塑料注水围挡_防撞桶-常州瑞轩水马注水围挡有限公司 | 门禁卡_智能IC卡_滴胶卡制作_硅胶腕带-卡立方rfid定制厂家 | 山东太阳能路灯厂家-庭院灯生产厂家-济南晟启灯饰有限公司 | 中空玻璃生产线,玻璃加工设备,全自动封胶线,铝条折弯机,双组份打胶机,丁基胶/卧式/立式全自动涂布机,玻璃设备-山东昌盛数控设备有限公司 | 小型高低温循环试验箱-可程式高低温湿热交变试验箱-东莞市拓德环境测试设备有限公司 | 艺术涂料|木纹漆施工|稻草漆厂家|马来漆|石桦奴|水泥漆|选加河南天工涂料 | 常州翔天实验仪器厂-恒温振荡器-台式恒温振荡器-微量血液离心机 恒温恒湿箱(药品/保健品/食品/半导体/细菌)-兰贝石(北京)科技有限公司 | 医院专用门厂家报价-医用病房门尺寸大全-抗菌木门品牌推荐 | 氮化镓芯片-碳化硅二极管 - 华燊泰半导体 | 耐腐蚀泵,耐腐蚀真空泵,玻璃钢真空泵-淄博华舜耐腐蚀真空泵有限公司 | 低浓度恒温恒湿称量系统,强光光照培养箱-上海三腾仪器有限公司 | 接地电阻测试仪[厂家直销]_电缆故障测试仪[精准定位]_耐压测试仪-武汉南电至诚电力设备 | 山西3A认证|太原AAA信用认证|投标AAA信用证书-山西AAA企业信用评级网 | 台式低速离心机-脱泡离心机-菌种摇床-常州市万丰仪器制造有限公司 | 作文导航网_作文之家_满分作文_优秀作文_作文大全_作文素材_最新作文分享发布平台 | 北京网站建设-企业网站建设-建站公司-做网站-北京良言多米网络公司 | 四川成都干燥设备_回转筒干燥机_脉冲除尘器_输送设备_热风炉_成都川工星科机电设备有限公司 | 水成膜泡沫灭火剂_氟蛋白泡沫液_河南新乡骏华消防科技厂家 | 干洗店加盟_洗衣店加盟_干洗店设备-伊蔻干洗「武汉总部」 | 储能预警-储能消防系统-电池舱自动灭火装置-四川千页科技股份有限公司官网 | 电位器_轻触开关_USB连接器_广东精密龙电子科技有限公司 | 化工ERP软件_化工新材料ERP系统_化工新材料MES软件_MES系统-广东顺景软件科技有限公司 |