php调用java webservice 在线等,请各位大侠帮帮忙,
程序员文章站
2022-06-16 11:51:18
...
==================================================
$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楼的哥们,谢谢了,大意了.问题解决了.