Home  >  Article  >  php教程  >  php webservice client

php webservice client

WBOY
WBOYOriginal
2016-06-06 19:44:341299browse

?php try { //$client = new SoapClient(HelloService.wsdl,array('encoding'='UTF-8')); $client = new SoapClient(http://webservice.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl); var_dump($client-__getFunctions()); print(br/); var_dum


try {
    //$client = new SoapClient("HelloService.wsdl",array('encoding'=>'UTF-8'));
    $client = new SoapClient("http://webservice.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl");
    var_dump($client->__getFunctions());
    print("
");

    var_dump($client->__getTypes());
    print("
");

    class qqCheckOnline{
       var $qqCode = "10000";
    };
    $arrPara = array(new qqCheckOnline);

    $arrResult = $client->__Call("qqCheckOnline",$arrPara);//$client->qqCheckOnline($arrPara);

    echo $arrResult->qqCheckOnlineResult . "
";
} catch (SOAPFault $e) {
    print $e;
}
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn