http://121.33.201.180:6005/RegMember.asmx?WSDL
これは .net で書かれた Web サービス サーバーです
InsertMember メソッドを呼び出す必要があります
$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 />"; }
ディスカッションへの返信 (解決策)
Return
stdClass Object ( [InsertMemberResult] =>
[sCardNum] =>
)
InsertMemberResult:
sCardNum:
通常、InsertMemberResult sCardNum には戻り値が必要です
by
struct InsertMember {
文字列 IsWap;
文字列 sCardNum;
InsertMember(InsertMember $parameters のパラメータが確認されました) ) は
array (
'objCInsertMember' => array(
'Name' => '',
'Identity' => '',
'Mobile' => '',
'IsWap' = > '',
),
'fellowID' => '',
'sCardNum' => '',
)
そのような配列はないようです
解決してくれてありがとうそれ