0

我试图用 php 创建 NuSOAP WS,但是当我将应用程序部署
到我的设备中时,我无法从我的 WS 获取数据并从服务器获取此消息:

PHP Notice:  Undefined index:  in ...\lib\nusoap.php on line 6637

当我从 SOAPUI 测试我的方法时,我得到了这个

当我从 Http Analyzer 测试我的方法时,我得到了这个

我认为 nusoap.php 中有一个错误,它会自动为每个数组元素添加标签“item”,但我无法解决它。

一些方法:

$notifications = array();
while($row=mysqli_fetch_assoc($result)){
     $notification=new Notification();
     $notification->titre=$row['titre'];
     $notification->detail=$row['detail'];
     $notification->dateHeure=$row[date];
     $notification->code=$row['code'];
    array_push($notifications,$notification);
}
return $notifications;
4

0 回答 0