'.$data[$i].''; } $body = ' '.$param.' '; $url = "http://ye4s.com/webservice/ws?wsdl".$method; $options = [ ]; $req = Http::sendRequest($url, $body, 'POST', $options); $res = $req['ret'] ? $req['msg'] : ''; preg_match_all("/([^<]+)<\/return>/i",$res,$ress); if(isset($ress[1][0])){ $arr = htmlspecialchars_decode($ress[1][0]); } else{ $arr = []; } return $arr; } public static function webserviceTest($data,$method){ $param = ''; for($i=0;$i'.$data[$i].''; } $body = ' '.$param.' '; return $body; } public static function webservicepda($data, $method) { $param = ''; for($i=0;$i'.$data[$i].''; } $body = ' '.$param.' '; $url = "http://ye4s.com/webservice/pda?wsdl".$method; $options = [ ]; $req = Http::sendRequest($url, $body, 'POST', $options); $res = $req['ret'] ? $req['msg'] : ''; preg_match_all("/([^<]+)<\/return>/i",$res,$ress); if(isset($ress[1][0])){ $arr = htmlspecialchars_decode($ress[1][0]); } else{ $arr = []; } return $arr; } }