dongpai1942 2011-06-07 20:18
浏览 51

正确返回PHP / SOAP数据,但PHP也会抛出错误

I am currently working with php and soap, and I have had to change the way i call the soap functions, which is fine, but I am getting a php error along with my Soap data, below is the snippet of code that is causing the issue.

    $params->loginID="xx";
    $params->password="xxxxx";
    $params->docType="Order";
    $params->partialDocID="";
    $ret = $client->Lookup($params);

The problem is the first line, or rather, whichever one of the $param lines i put first, it gives the following error:

Creating default object from empty value

The data is being returned fine, but it is also returning that error, now I am not sure what the error means, I have looked it up and i have not found any information specific to what im doing.

To be honest, im not even sure what $params->xxx=xxx does...to me it looks like its storing a bunch of information and associations into a single string.

  • 写回答

1条回答 默认 最新

  • douxie4583 2011-06-07 20:22
    关注

    Initialize params: $params = new stdClass();

    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大