日期:2014-05-17 浏览次数:20482 次
$client_reg = new SoapClient("http://121.33.201.180:6005/RegMember.asmx?WSDL");
$functions = $client_reg->__getFunctions();
//print_r($functions);
$types = $client_reg->__getTypes();
//print_r($types);
$client_reg->soap_defencoding = 'utf-8';
$client_reg->xml_encoding = 'utf-8'; //
$param_reg = array('CInsertMember' => array('Name'=>"你好",'Identity'=>"230105198311202013",'Mobile'=>"15014689527",'IsWap'=>true),'fellowID'=>$value,'sCardNum'=>"",'InsertMemberResult'=>"");
$p_reg = $client_reg->__soapCall("InsertMember",array('parameters' => $param_reg));
/*
$param_reg = array(
'CInsertMember'=>'',
'Name'=>"你好",
'Identity'=>"230105198311202013",
'Mobile'=>"15014689527",
'IsWap'=>True,
'fellowID'=>$value,
'sCardNum'=>"",
'InsertMemberResult'=>"");
$p_reg = $client_reg->__soapCall('InsertMember',array('parameters' => $param_reg));
*/
print_r($p_reg);
$array1 = get_object_vars($p_reg);
foreach ($array1 as $key1 => $value1) {
echo $key1.": ".$value1."<br />";
}