Java web services called by PHP page: PHP not understanding boolean
Hey
When I try to interpret thru PHP, a Java web service that returns a boolean type, this error (more like a warning) pops up:
Notice: Object of class stdClass could not be converted to int in C:\testing\page.php on line 29
How can I make the PHP page understand true and false? Or at least recieve true or and false, if neccesary convert them to 1 and 0 and understand that? No, I cant change the web service to send 1 or 0, sorry.
11 Months Ago
Last Updated
Related Article: Web Services using CSOAP
is a RSS, Web Services and SOAP discussion thread by manaila that has 3 replies, was last updated 9 months ago and has been tagged with the keywords: c, csoap, java, webservice.
riahc3
1,300 posts since May 2008
Reputation Points: 62
Solved Threads: 13
Skill Endorsements: 11
What is the definition for stdClass ? Perhaps you need to use a property of this class.
pritaeas
Posting Prodigy
9,286 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,457
Skill Endorsements: 86
What is the definition for stdClass ? Perhaps you need to use a property of this class
Never in my life have I seen "stdClass" (meaning it is not in my code and I did not write it) so It has to be a base class of Java.
riahc3
1,300 posts since May 2008
Reputation Points: 62
Solved Threads: 13
Skill Endorsements: 11
Googling it a bit, it seems "stdClass" is something from PHP....
riahc3
1,300 posts since May 2008
Reputation Points: 62
Solved Threads: 13
Skill Endorsements: 11
Maybe you should try type-casting it into "bool" or an "int". As stdClass is rather a dynamic Object. I think it would do some good.
Sky Diploma
Practically a Posting Shark
872 posts since Mar 2008
Reputation Points: 673
Solved Threads: 132
Skill Endorsements: 7
pritaeas
Posting Prodigy
9,286 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,457
Skill Endorsements: 86