20,359
社区成员
发帖
与我相关
我的任务
分享
http://218.240.143.219/crm/services/wentry?wsdl
|---------+---------------------------------------------------------------|
|用户名 |返回值 |
|---------+---------------------------------------------------------------|
|0000 |0 |
|---------+---------------------------------------------------------------|
|1111 |-1 |
|---------+---------------------------------------------------------------|
|2222 |-2 |
|---------+---------------------------------------------------------------|
|3333 |-3 |
|---------+---------------------------------------------------------------|
include('../include/nusoap/nusoap.php');
$client = new soapclient('http://218.240.143.219/crm/services/wentry?wsdl',true);
$client->soap_defencoding = 'utf-8';
$client->decode_utf8 = false;
$client->xml_encoding = 'utf-8';
$para = array('msg'=>'0000','passwd'=>'111');
$info = $client->call('validateCustLevMsg',$para);//这里返回的是数组
print_r($info['return']);
switch($info['return'])
{
case -3:
echo 'Not VIP Customer';
exit;
case -2:
echo 'Password Wrong';
exit;
case -1:
echo 'There is no corresponding user name';
exit;
case 0:
echo 'According to input the user name and password no inquiries into the corresponding value';
exit;
default:
echo 'success';
exit;
}
Array
(
[return] => 1
)