I am doing a Webservice in PHP for the first time. I have a service named as testWebService. php and testclient.php that consumes the service. Below is my testclient.php
This code generates an exception as below
Fatal error: Uncaught exception 'Exception' with message 'SOAP method invocation (verifyT) failed: no transport found, or selected transport is not yet supported!' in E:\wamp\www\sma rtcard\Orginal\ testClient.php: 21 Stack trace: #0 {main} thrown in E:\wamp\www\sma rtcard\Orginal\ testClient.php on line 21.
Can anyone please tell me what the problem may be.
Thanks
Code:
<?php
require_once 'includes/nusoap.php';
$params = array('CardId' => 'sm_stu_id_001',
'DeviceIp' => '192.168.60.68'
);
$client = new nusoap_client('testWebService.php',false);
//+++++++++++++++++++++++++++++++++++++
$soapError = $client->getError();
if (! empty($soapError))
{
$errorMessage = 'Nusoap object creation failed: ' . $soapError;
throw new Exception($errorMessage);
}
//+++++++++++++++++++++++++++++++++++++
$result = $client->call('hello',$params);
//+++++++++++++++++++++++++++++++++++++
$soapError = $client->getError();
if (! empty($soapError))
{
$errorMessage = 'SOAP method invocation (verifyT) failed: ' . $soapError;
throw new Exception($errorMessage);
}
//+++++++++++++++++++++++++++++++++++++
/echo "Result => ".$result;
?>
Fatal error: Uncaught exception 'Exception' with message 'SOAP method invocation (verifyT) failed: no transport found, or selected transport is not yet supported!' in E:\wamp\www\sma rtcard\Orginal\ testClient.php: 21 Stack trace: #0 {main} thrown in E:\wamp\www\sma rtcard\Orginal\ testClient.php on line 21.
Can anyone please tell me what the problem may be.
Thanks
Comment