|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-30 18:40 UTC] c00lways at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 01:00:02 2025 UTC |
Description: ------------ when i use soap to open a complex wsdl... and then pass in a stdclass object to be send as parameter... came out crash: Catchable fatal error: Object of class stdClass could not be converted to string in ... this crash is not captured by try / catch Reproduce code: --------------- $client = new SoapClient("http://demo.touricoholidays.com/ws/AmendmentServices.asmx?WSDL", Array( "trace" => 1, "exceptions" => 1, "encoding" => "ISO-8859-1" ) ); $tcost = new stdClass(); //adding this below gives similar problem... //$tcost->CostAmendObj = new stdClass(); //$tcost->CostAmendObj->IsOnlyAvailable = "true"; try { //this statement causes the error... echo "Result: " . $client->costamend( $tcost ); } catch ( Exception $e ) { var_dump( $e->getMessage() ); } Expected result: ---------------- soap response xml Actual result: -------------- Catchable fatal error: Object of class stdClass could not be converted to string in ...