เขียนโค้ดรับค่าและแสดงค่าจากเว็บเซอร์วิส(php)ที่ส่งกลับมาเป็นอาเรย์อย่างไรหรอคะ
configureWSDL(“utknewswsdl”,”urn:utknewswsdl”); $server->wsdl->addComplexType( “groups”, “complextype”, “struct”, “all”, “”, array(“Id”=>array(“name”=>”Id”,”type”=>”xsd:interger”), “userName”=>array(“name”=>”userName”,”type”=>”xsd:string”), “administrator”=>array(“name”=>”administrator”,”type”=>”xsd:string”), “announcer”=>array(“name”=>”announcer”,”type”=>”xsd:string”), “audience”=>array(“name”=>”audience”,”type”=>”xsd:string”),)); $server->wsdl->addComplexType( ‘gdarray’, ‘complexType’, ‘array’, ‘all’, ‘SOAP-ENC:Array’, array(), array(array(‘ref’=>’SOAP-ENC:arrayType’,’wsdl:arrayType’=>’tns:groups[]’)), ‘tns:groups’); $server->register(“authenUser”, array(“username”=>”xsd:string”,”password”=>”xsd:string”,), array(“return”=>”tns:groups”), “urn:utknewswsdl”, “urn:utknewswsdl/authenUser”, “rpc”, “encoded”, “return data of product”); function authenUser($username,$password) { $sql = “select Id,userName,administrator,announcer,audience from user “; $sql .= “where userId ='”. $username.”‘ and password...