function login()
{
$test = array('UN' => $_REQUEST["txtUN"], 'PW' => $_REQUEST["txtPW"]);
$objClient = new SoapClient('http://www.example.org/services/LoginWS/Service.asmx?wsdl');
$result = $objClient->isAuthenticated($test);
var_dump($result);
if ($result == true){
print '<script type="text/javascript">alert("Success")</script>';}
Also, var_dump($result) displays: "object(stdClass)#2 (1) { ["isAuthenticatedResult"]=> bool(false) }"
Thanks in advance for your help. I am a .net developer and not familiar with php.
I should have also noted that var_dump($result) displays: "object(stdClass)#2 (1) { ["isAuthenticatedResult"]=> bool(true) }" when a correct username/password pair are entered. So it seems the web service is returning a proper response I am just not evaluating it properly.
This post has been edited by Dormilich: 03 October 2012 - 12:10 AM
Reason for edit:: changed domain

New Topic/Question
Reply




MultiQuote




|