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

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

        <legend id='pq7Ip'><style id='pq7Ip'><dir id='pq7Ip'><q id='pq7Ip'></q></dir></style></legend>
        <i id='pq7Ip'><tr id='pq7Ip'><dt id='pq7Ip'><q id='pq7Ip'><span id='pq7Ip'><b id='pq7Ip'><form id='pq7Ip'><ins id='pq7Ip'></ins><ul id='pq7Ip'></ul><sub id='pq7Ip'></sub></form><legend id='pq7Ip'></legend><bdo id='pq7Ip'><pre id='pq7Ip'><center id='pq7Ip'></center></pre></bdo></b><th id='pq7Ip'></th></span></q></dt></tr></i><div class="87jigtc" id='pq7Ip'><tfoot id='pq7Ip'></tfoot><dl id='pq7Ip'><fieldset id='pq7Ip'></fieldset></dl></div>
      1. <tfoot id='pq7Ip'></tfoot>
        • <bdo id='pq7Ip'></bdo><ul id='pq7Ip'></ul>

        PHP SOAP HTTP 請(qǐng)求

        PHP SOAP HTTP Request(PHP SOAP HTTP 請(qǐng)求)

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

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

                <legend id='L7B95'><style id='L7B95'><dir id='L7B95'><q id='L7B95'></q></dir></style></legend>
                  <tbody id='L7B95'></tbody>
                  本文介紹了PHP SOAP HTTP 請(qǐng)求的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

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

                  盡管有一段時(shí)間是 PHP 開(kāi)發(fā)人員,但我現(xiàn)在才第一次體驗(yàn) Web 服務(wù).我希望能得到一點(diǎn)幫助,因?yàn)槲艺谑褂玫倪@本書(shū)幫助不大.與我們有業(yè)務(wù)往來(lái)的其中一家公司給了我一個(gè) XML 文檔,其格式為 in需要(我將發(fā)布其中的一部分).由于我在這個(gè)特定主題上缺乏經(jīng)驗(yàn),我不確定該怎么做.我需要知道如何將此消息發(fā)送到他們的實(shí)時(shí) POST 頁(yè)面,如何接收響應(yīng),我是否需要?jiǎng)?chuàng)建任何類(lèi)型的 WSDL 頁(yè)面?任何幫助或指導(dǎo)將不勝感激,請(qǐng)不要只發(fā)送指向 php 手冊(cè)的鏈接.我顯然去過(guò)那里,因?yàn)樗ǔJ菍で髱椭氖走x場(chǎng)所.

                  Despite being a PHP developer for a while, I'm just now getting my first taste of web services. I was hoping to get a little help, as the book I am using is not much help. One of the companies we are doing business with gave me an XML document in the format in needs to be in (I'll post a chunk of it). Due to my inexperience in this particular subject, I'm not really sure what to do. I need to know how to send this message to their live POST page, how to receive the response, and do I need to create any sort of WSDL page? Any help or direction would be so greatly appreciated, and please, don't just send a link to the php manual. I've obviously been there, as it is typically the go-to place for help.

                  POST /sample/order.asmx HTTP/1.1
                  Host: orders.sample.com
                  Content-Type: application/soap+xml; charset=utf-8
                  Content-Length: length
                  
                  <?xml version="1.0" encoding="utf-8"?>
                  <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
                    <soap12:Header>
                      <AuthenticationHeader xmlns="http://sample/">
                        <Username>string</Username>
                        <Password>string</Password>
                      </AuthenticationHeader>
                      <DebugHeader xmlns="http://sample/">
                        <Debug>boolean</Debug>
                        <Request>string</Request>
                      </DebugHeader>
                    </soap12:Header>
                    <soap12:Body>
                      <AddOrder xmlns="http://sample/">
                        <order>
                          <Header>
                            <ID>string</ID>
                            <EntryDate>dateTime</EntryDate>
                            <OrderEntryView>
                              <SeqID>int</SeqID>
                              <Description>string</Description>
                            </OrderEntryView>
                            <ReferenceNumber>string</ReferenceNumber>
                            <PONumber>string</PONumber>
                            <Comments>string</Comments>
                            <IpAddress>string</IpAddress>
                          </Header>
                        </order>
                      </AddOrder>
                    </soap12:Body>
                  </soap12:Envelope>
                  

                  上面是我得到的 AddOrder XML 文檔(我刪除了大部分正文).請(qǐng)讓我知道是否需要更多細(xì)節(jié),因?yàn)槲蚁氡M可能具體,以便我能夠弄清楚如何發(fā)送此

                  Above is the AddOrder XML document I was given (I removed most of the body). Please let me know if anymore detail is needed, as I want to be specific as possible so I'm able to figure out how send this

                  推薦答案

                  您有幾個(gè)選擇!您可以使用soap 對(duì)象來(lái)創(chuàng)建基于WSDL 的請(qǐng)求,該請(qǐng)求將知道與遠(yuǎn)程服務(wù)器通信的正確方式.您可以在 PHP 手冊(cè)中了解如何執(zhí)行此操作.

                  You have a couple of options! You could use soap objects to create the request which, based upon a WSDL will know the correct way to talk to the remote server. You can see how to do this at the PHP manual.

                  或者,您可以使用 CURL 來(lái)完成這項(xiàng)工作.您需要知道將數(shù)據(jù)發(fā)布到哪里(它看起來(lái)像上面的示例),然后您可以執(zhí)行以下操作:

                  Alternatively, you can use CURL to do the work. You'll need to know where to post the data to (which it looks like is in the example above), then you can just do something like this:

                  $curlData = "<?xml version="1.0" encoding="utf-8"?>... etc";
                  $url='http://wherever.com/service/';
                  $curl = curl_init();
                  
                  curl_setopt ($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
                  curl_setopt($curl,CURLOPT_TIMEOUT,120);
                  curl_setopt($curl,CURLOPT_ENCODING,'gzip');
                  
                  curl_setopt($curl,CURLOPT_HTTPHEADER,array (
                      'SOAPAction:""',
                      'Content-Type: text/xml; charset=utf-8',
                  ));
                  
                  curl_setopt ($curl, CURLOPT_POST, 1);
                  curl_setopt ($curl, CURLOPT_POSTFIELDS, $curlData);
                  
                  $result = curl_exec($curl);
                  curl_close ($curl);
                  

                  然后您應(yīng)該在 $result 變量中得到結(jié)果.然后您可以嘗試將其轉(zhuǎn)換為 XML 文檔,盡管有時(shí)我發(fā)現(xiàn)由于編碼而無(wú)法正常工作:

                  You then should have the result in the $result var. You can then try to convert it to an XML doc, although sometimes I've found due to encoding this doesn't work:

                  $xml = new SimpleXMLElement($result);
                  print_r($xml);
                  

                  這篇關(guān)于PHP SOAP HTTP 請(qǐng)求的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(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 異常無(wú)法連接到主機(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)

                      <tbody id='iYASH'></tbody>

                      <tfoot id='iYASH'></tfoot>

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

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

                          <legend id='iYASH'><style id='iYASH'><dir id='iYASH'><q id='iYASH'></q></dir></style></legend>
                          1. 主站蜘蛛池模板: PCB厂|线路板厂|深圳线路板厂|软硬结合板厂|电路板生产厂家|线路板|深圳电路板厂家|铝基板厂家|深联电路-专业生产PCB研发制造 | 武汉高低温试验机-现货恒温恒湿试验箱-高低温湿热交变箱价格-湖北高天试验设备 | 数显恒温培养摇床-卧式/台式恒温培养摇床|朗越仪器 | 泰国试管婴儿_泰国第三代试管婴儿_泰国试管婴儿费用/多少钱_孕泰来 | 网站制作优化_网站SEO推广解决方案-无锡首宸信息科技公司 | 无锡门窗-系统门窗-阳光房-封阳台-断桥铝门窗厂[窗致美] | 论文查重_免费论文查重_知网学术不端论文查重检测系统入口_论文查重软件 | 电子厂招聘_工厂招聘_普工招聘_小时工招聘信息平台-众立方招工网 | 数控车床-立式加工中心-多功能机床-小型车床-山东临沂金星机床有限公司 | 动物解剖台-成蚊接触筒-标本工具箱-负压实验台-北京哲成科技有限公司 | 2025世界机器人大会_IC China_半导体展_集成电路博览会_智能制造展览网 | 不锈钢水管-不锈钢燃气管-卫生级不锈钢管件-不锈钢食品级水管-广东双兴新材料集团有限公司 | 球形钽粉_球形钨粉_纳米粉末_难熔金属粉末-广东银纳官网 | 电渗析,废酸回收,双极膜-山东天维膜技术有限公司 | 无线遥控更衣吊篮_IC卡更衣吊篮_电动更衣吊篮配件_煤矿更衣吊篮-力得电子 | 并网柜,汇流箱,电控设备,中高低压开关柜,电气电力成套设备,PLC控制设备订制厂家,江苏昌伟业新能源科技有限公司 | 偏心半球阀-电动偏心半球阀-调流调压阀-旋球阀-上欧阀门有限公司 | 花纹铝板,合金铝卷板,阴极铝板-济南恒诚铝业有限公司 | 数字展示在线_数字展示行业门户网站 | 小型数控车床-数控车床厂家-双头数控车床 | 糖衣机,除尘式糖衣机,全自动糖衣机,泰州市长江制药机械有限公司 体感VRAR全息沉浸式3D投影多媒体展厅展会游戏互动-万展互动 | 聚氨酯保温钢管_聚氨酯直埋保温管道_聚氨酯发泡保温管厂家-沧州万荣防腐保温管道有限公司 | 单级/双级旋片式真空泵厂家,2xz旋片真空泵-浙江台州求精真空泵有限公司 | 淘剧影院_海量最新电视剧,免费高清电影随心观看 | 南京PVC快速门厂家南京快速卷帘门_南京pvc快速门_世界500强企业国内供应商_南京美高门业 | 专业深孔加工_东莞深孔钻加工_东莞深孔钻_东莞深孔加工_模具深孔钻加工厂-东莞市超耀实业有限公司 | 考勤系统_考勤管理系统_网络考勤软件_政企|集团|工厂复杂考勤工时统计排班管理系统_天时考勤 | 欧必特空气能-商用空气能热水工程,空气能热水器,超低温空气源热泵生产厂家-湖南欧必特空气能公司 | 华夏医界网_民营医疗产业信息平台_民营医院营销管理培训 | 伺服电机维修、驱动器维修「安川|三菱|松下」伺服维修公司-深圳华创益 | ICP备案查询_APP备案查询_小程序备案查询 - 备案巴巴 | 写方案网_方案策划方案模板下载| 东莞韩创-专业绝缘骨架|马达塑胶零件|塑胶电机配件|塑封电机骨架厂家 | 棕刚玉_白刚玉_铝酸钙-锐石新材料 | 二手电脑回收_二手打印机回收_二手复印机回_硒鼓墨盒回收-广州益美二手电脑回收公司 | 云南标线|昆明划线|道路标线|交通标线-就选云南云路施工公司-云南云路科技有限公司 | 颗粒机,颗粒机组,木屑颗粒机-济南劲能机械有限公司 | 双工位钻铣攻牙机-转换工作台钻攻中心-钻铣攻牙机一体机-浙江利硕自动化设备有限公司 | QQ房产导航-免费收录优秀房地产网站_房地产信息网 | 风化石头制砂机_方解石制砂机_瓷砖石子制砂机_华盛铭厂家 | 涡街流量计_LUGB智能管道式高温防爆蒸汽温压补偿计量表-江苏凯铭仪表有限公司 |