PHP SOAP with Crowd WSDL
Posted: Mon Sep 29, 2014 5:25 am
I am trying to get in SSO Functionality of Crowd in my custom php Application. For which i intend to use SOAP to authenticate application and user and many more things which can be done in crowd.
The problem is i am new to php and i think ust knowing the basics leads me to nowhere.
At first i am tring to run the below program and the following error i am getting, i dont know what is going wrong with it but i am unable to acheive what i intend to.
and the error i am getting is
atal error: Uncaught SoapFault exception: [soap:Server] app in /var/www/html/soaptest.php:7 Stack trace: #0 /var/www/html/soaptest.php(7): SoapClient->__call('authenticateApp...', Array) #1 /var/www/html/soaptest.php(7): SoapClient->authenticateApplication(Array) #2 /var/www/html/soaptest.php(12): authenticateApplication() #3 {main} thrown in /var/www/html/soaptest.php on line 7
The problem is i am new to php and i think ust knowing the basics leads me to nowhere.
At first i am tring to run the below program and the following error i am getting, i dont know what is going wrong with it but i am unable to acheive what i intend to.
Code: Select all
$client = new SoapClient("http://localhost:8095/crowd/services/SecurityServer?wsdl");
$param = array('in0' => array('credential' => 'password','name' => 'app'));
$resp=$client->authenticateApplication($param);
$token = $resp->out->token;
print_r($resp);
atal error: Uncaught SoapFault exception: [soap:Server] app in /var/www/html/soaptest.php:7 Stack trace: #0 /var/www/html/soaptest.php(7): SoapClient->__call('authenticateApp...', Array) #1 /var/www/html/soaptest.php(7): SoapClient->authenticateApplication(Array) #2 /var/www/html/soaptest.php(12): authenticateApplication() #3 {main} thrown in /var/www/html/soaptest.php on line 7