Making SOAP-call in PHP and setting SSL version

后端 未结 6 2057
慢半拍i
慢半拍i 2021-02-07 16:31

I\'ve made several scripts working with external WSDL. I have encountered one I have to integrate into our system that I can\'t get to work. I\'be been trying for a week without

6条回答
  •  清歌不尽
    2021-02-07 16:47

    Be careful if you use utf-8 charset.
    This solution works well, but you must declare the charset in header Curl.

    curl_setopt($handle, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml; charset = utf-8", 'SOAPAction: "' . $action . '"')
    

提交回复
热议问题