当前位置:Gxlcms > PHP教程 > php调用javawebservice在线等,请各位大侠帮帮忙,

php调用javawebservice在线等,请各位大侠帮帮忙,

时间:2021-07-01 10:21:17 帮助过:19人阅读

                                                                                                                                                                                                                                                                                                                                                                    


==================================================
$result = $c->setTerminalsActivation(date('yyyy-MM-dd hh:ii:ss',time()),'fdb6680c8cad4b21b8d7e5b6e4bc6b87','13330968452','1');

我是这样子调用的,接口始终给我返回了一个 90001 key 不存在
接口是这样定义的
String setTerminalsActivation(String timeStamp, String key, String
terminals, String value)
==================================


回复讨论(解决方案)

有列出所有key的方法吗?

大小写有关吗?

string setTerminalsActivation(setTerminalsActivationRequest $setTerminalsActivationRequest)

方法 setTerminalsActivation 需要传递一个 setTerminalsActivationRequest 结构

setTerminalsActivationRequest 结构为
struct setTerminalsActivationRequest {
string timeStamp;
string key;
string terminals;
string value;
string type;
string effectiveLocTime;
string smsContent;
}

php 调用时应为
$c->setTerminalsActivation(array(
'timeStamp' => '',
'key' => '',
'terminals' => '',
'value' => '',
'type' => '',
'effectiveLocTime' => '',
'smsContent' => '',
));
数组元素的值你自己填

2楼的哥们,谢谢了,大意了.问题解决了.

人气教程排行