Problem connecting to webservice using SoapClient
Posted: Wed Apr 21, 2010 12:46 pm
Hi all
,
My site has a member login which has to access the following webservice for authenticating the member to allow him to enter the member section of my site
https://www.apta.org/AM/APTAAPPS/Compon ... e.cfc?WSDL
This webservice has to return an XML output based on which i'll allow or disallow the member to enter into my website's member section. But instead of getting an XML output I getthe following error
The code which I used is
Since this is the first time I am accessing a webservice I am breaking my head over this . I will be very much obliged if someone could help me sort this thing.
Thanks in advance
My site has a member login which has to access the following webservice for authenticating the member to allow him to enter the member section of my site
https://www.apta.org/AM/APTAAPPS/Compon ... e.cfc?WSDL
This webservice has to return an XML output based on which i'll allow or disallow the member to enter into my website's member section. But instead of getting an XML output I getthe following error
Code: Select all
ERROR: HTTP-Could not connect to host
Code: Select all
<?php
$client = new SoapClient('https://www.apta.org/AM/APTAAPPS/ComponentAuthWebService/aptamemberauthorize.cfc?WSDL');
$arguments = array(
'mausername'=> 22586,
'mapassword' => 'swisher',
'componenttype' => 'Section',
'components'=> 'L',
'authusername' => 'heart',
'authpassword' => 'lung',
'authpagealias' => 'Login'
);
// Call RemoteFunction ()
$error = 0;
try {
$result = $client->__soapCall('MemberAuth', $arguments);
} catch (SoapFault $fault) {
$error = 1;
echo 'Returned the following ERROR: ' .$fault->faultcode . '-' . $fault->faultstring ;
}
print_r($result);
// kill object
unset($client);
?>
Thanks in advance