Wednesday 13 March 2013

To call packback webservice call to check mobile valid or not

echo validatePaybackMobile('9949123456');
function validatePaybackMobile($mobile){
        $err="Mobile number should be 10 characters";
        return $err;
    $bodyxml = '<?xml version="1.0" encoding="utf-8"?>
    <soapenv:Envelope xmlns:soapenv="" xmlns:typ="">
    $client = new nusoap_client("",true);
    $err = $client->getError();
    $client->soap_defencoding = 'utf-8';
    $bsoapaction = "http://somehost/SubmitCalls";
    $result = $client->send($bodyxml, $bsoapaction);
        return true;
    elseif ($result['Status']=='NO') {
        $err="Mobile number is not exists in payback account, please check in your payback account";
        return $err;
        return $err;


Post a Comment

Subscribe to Post Comments [Atom]

<< Home