-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOAP-ERROR: Encoding: object has no 'propety_name' property in object #18
Comments
That, or use logging at the debug level to record the object about to be encoded. However, it looks like the object you are passing doesn't have all the required properties. |
@subdee Thank you! But where in SoapService I can place var_dump to find the object ? |
Try adding |
The problem is with Array of objects For example:
Method call raises the error: SOAP-ERROR: Encoding: object has no 'message' property. Which in turn is caused by wrong wsdl format. I replaced WsdlGenerator with code from another repository I don't know what exactly wrong with WsdlGenerator. Maybe this workaround helps with someone who stuck with the same problem. |
Hello!
I have a complex object with an array of other complex objects (several hundred). It is generated automatically once per day and saved serialised into a file. And I have web-service based on yii2-soap-server, which serves this object from the file to clients. Sometimes it returns following error:
Maybe one or few objects miss this 'property_name' while generating stage, but I haven't found the bug yet.
My question: is there a way to find (var_dump maybe) the object which causes the error ?
yii2-soap-server : ea980cf
php version: 7.0.15
The text was updated successfully, but these errors were encountered: