process((object)array('msg' => 'Hi from PHP!'))->processResult->string // should have been // $soap->process('Hi from PHP!') // but somewhere Java and PHP did not agree on default SOAP standards foreach($soap->process((object)array('msg' => 'Hi from PHP!'))->processResult->string as $msg) { echo "$msg\r\n"; } ?>