PHP/SOAP 数据正确返回,但 PHP 也抛出错误
我目前正在使用 php 和soap,并且我必须更改调用soap 函数的方式,这很好,但是我收到一个php 错误以及我的Soap 数据,下面是导致问题。
$params->loginID="xx";
$params->password="xxxxx";
$params->docType="Order";
$params->partialDocID="";
$ret = $client->Lookup($params);
问题是第一行,或者更确切地说,无论我把 $param 行放在第一位,它都会给出以下错误:
从空值创建默认对象
数据返回正常,但它也返回该错误,现在我不确定该错误意味着什么,我已经查了一下,但没有找到任何特定于我正在做的事情的信息。
老实说,我什至不确定 $params->xxx=xxx
的作用......对我来说,它看起来像是将一堆信息和关联存储到一个字符串中。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
初始化参数:
$params = new stdClass();
Initialize params:
$params = new stdClass();