第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

請教一下各位大神SOAP錯(cuò)誤:解析WSDL:無法從中加載-但可在WAMP上使用

請教一下各位大神SOAP錯(cuò)誤:解析WSDL:無法從中加載-但可在WAMP上使用

PHP
回首憶惘然 2019-11-03 10:00:30
這在我的WAMP服務(wù)器上工作正常,但在linux主服務(wù)器上不起作用!try{    $client = new SoapClient('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl', ['trace' => true]);    $result = $client->checkVat([        'countryCode' => 'DK',        'vatNumber' => '47458714'    ]);    print_r($result);}catch(Exception $e){    echo $e->getMessage();}我在這里想念什么?:(啟用了SOAP錯(cuò)誤SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl' : failed to load external entity "http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl"/taxation_customs/vies/checkVatService.wsdl"從PHP調(diào)用URL從PHP調(diào)用URL返回錯(cuò)誤$wsdl = file_get_contents('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl');echo $wsdl;錯(cuò)誤Warning:  file_get_contents(http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl): failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable從命令行調(diào)用URL從Linux命令行調(diào)用URL HTTP 200并返回XML響應(yīng)curl http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
查看完整描述

3 回答

?
catspeake

TA貢獻(xiàn)1111條經(jīng)驗(yàn) 獲得超0個(gè)贊

嘗試這個(gè)。希望對您有所幫助


$options = [

    'cache_wsdl'     => 0,

    'trace'          => 1,

    'stream_context' => stream_context_create(

        [

            'ssl' => [

                'verify_peer'       => false,

                'verify_peer_name'  => false,

                'allow_self_signed' => true

            ]

        ]

    )

];


$client = new SoapClient($url, $options);



查看完整回答
反對 回復(fù) 2019-11-04
  • 3 回答
  • 0 關(guān)注
  • 552 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號