开发者

php soap wsdl connection error

开发者 https://www.devze.com 2023-02-10 21:29 出处:网络
I have been trying to connect to a web service which I previously had set up using a soap request in PHP, like so:

I have been trying to connect to a web service which I previously had set up using a soap request in PHP, like so:

$client = new SoapClient($this->config->item('WSDL'));
$response = $client->Login(array('email' => $this->input->post('email'), 'password' => $this->input->post('password')));

this worked when the WSDL url ended in asmx?WSDL but now it开发者_如何转开发s a different url ending in .xml and it doesn't work...I keep getting the following error: "PHP Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in..."

Can anyone help me please? It is hurting my head, thanks!


URL of WSDL can be ended with anything. Try to echo your WSDL URL and load it by browser.

$client = new SoapClient(exit($this->config->item('WSDL')));
0

精彩评论

暂无评论...
验证码 换一张
取 消