Any one please to help me i have one problem in blue dart api error. NO Error is came. how to solve this problem.
require_once('lib/nusoap.php');
function soaprequest($api_url, $api_useame, $api_password, $service, $params)
{
if ($api_url != '' && $service != '' && count($params) > 0)
{
$wsdl = $api_url."?wsdl";
$client = new nusoap_client($wsdl, 'wsdl');
$client->setCredentials($api_useame,$api_password);
$error = $client->getError();
if ($error)
{
echo "nSOAP Erro".$error."n";
retu false;
}
else
{
$result = $client->call($service, $params);
if ($client->fault)
{
print_r($result);
retu false;
}
else
{
$result_arr = json_decode($result, true);
$retu_array = $result_arr['result'];
retu $retu_array;
}
}
}
}
$api_url = "http://netcoect.bluedart.com/ver1.7/Demo/ShippingAPI/Finder/ServiceFinderQuery.svc?wsdl";
//$api_url = "http://netcoect.bluedart.com/ Demo/ShippingAPI/Finder/ServiceFinderQuery.svc?wsdl";
$api_useame='XXXXXXXXXX';
$api_password = 'AAAAAAAAAAAAAAAAAAAAAAA';
$service ='GetServicesforPincode';
$params = array('pinCode'=>'620102');
soaprequest($api_url, $api_useame, $api_password, $service, $params);
above code is download from codeigniter library and it have also not working
