Maison >développement back-end >tutoriel php >求前辈支援,连接wsdl问题。
echo '提供的方法';dump($client->__getFunctions());echo '数据结构';dump($client->__getTypes());
AdcServicesResponse AdcServices( AdcServices $parameters)
表示 AdcServices 需要一个 AdcServices 类型的参数
struct AdcServices {
NGEC request;
}
表是 AdcServices 有一个 NGEC 类型的参数 request
找到 NGEC 并带入,得
AdcServices {
NGEC request = {
string OrigDomain;
string BIPCode;
string BIPVer;
string TransIDO;
string Areacode;
string ECCode;
string ECUserName;
string ECUserPwd;
string ProcessTime;
Response Response = {
string RspCode;
string RspDesc;
},
string SvcCont;
}
}
由于 php 并无 struct 结构,所以用关联数组代替
$ar = array( 'request' => array( 'OrigDomain' => '', 'BIPCode' => '', 'BIPVer' => '', 'TransIDO' => '', 'Areacode' => '', 'ECCode' => '', 'ECUserName' => '', 'ECUserPwd' => '', 'ProcessTime' => '', 'Response' => array( 'RspCode' => '', 'RspDesc' => '', ), 'SvcCont' => '', ));调用时
AdcServicesResponse AdcServices( AdcServices $parameters)
表示 AdcServices 需要一个 AdcServices 类型的参数
struct AdcServices {
NGEC request;
}
表是 AdcServices 有一个 NGEC 类型的参数 request
找到 NGEC 并带入,得
AdcServices {
NGEC request = {
string OrigDomain;
string BIPCode;
string BIPVer;
string TransIDO;
string Areacode;
string ECCode;
string ECUserName;
string ECUserPwd;
string ProcessTime;
Response Response = {
string RspCode;
string RspDesc;
},
string SvcCont;
}
}
由于 php 并无 struct 结构,所以用关联数组代替
$ar = array( 'request' => array( 'OrigDomain' => '', 'BIPCode' => '', 'BIPVer' => '', 'TransIDO' => '', 'Areacode' => '', 'ECCode' => '', 'ECUserName' => '', 'ECUserPwd' => '', 'ProcessTime' => '', 'Response' => array( 'RspCode' => '', 'RspDesc' => '', ), 'SvcCont' => '', ));调用时