It is a strange case.
I have 900 customer ids.
I use php soapclient connect to a asp.net wsdl. loop through these 900 records, and send id as the parameter in request, get back the response object.
And I use $result->Customers->Item->Customer->Name to get the name value.
Within these 900 records, 600 records get the name values in return.
But other 300 records gave me the notice "calling method on non object property" and failed to return the name.
It is the same script and same wsdl method, I only loop around, and somehow the results are different.
And instead of calling object, I used
$Customer[0]->Name, then these 300 records return right names. But these 600 records cannot return value now.
In simple words, same script, same asp.net wsdl. Some records I have to use object like $result->Customers->Item->Customer->Name to get returns, some I have to use $Customer[0]->Name to get the returns. What is going on?
Does it mean somehow php soapclient failed to create object on the asp.net wsdl return and in these cases, use the array works?
Thanks!