getOne((object)array('f1' => 123))->getOneResult; // funky echo $o->f1 . ' ' . $o->f2 . "\r\n"; $all = $soap->getAll(); foreach($all->getAllResult->T1 as $one) { // modified echo $one->f1 . ' ' . $one->f2 . "\r\n"; } // funky: echo $soap->save((object)array('f1' => 123, 'f2' => "ABC"))->saveResult . "\r\n"; echo $soap->saveObject((object)array('o' => $o))->saveObjectResult . "\r\n"; echo $soap->delete((object)array('f1' => 123))->deleteResult . "\r\n"; } test('http://localhost/TestService.asmx?WSDL'); test('http://localhost/test.svc?wsdl'); ?>