开发者

php soap wsdl connection error

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜