You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Recupera las fichas del representante
*
* @WSMethod(name="FichasRepresentante", webservice="webservices")
*
* @param string $bd_nombre Nombre de la Base de Datos
* @param string $id_usuario Id del representante
* @return wsFicha[]
*/
public function executeFichas_representante($request){
$arrFichas = array();
...
$fichaMed = new wsFicha();
$fichaMed->id_formato = 1;
$fichaMed->nombre = "Médicos";
$fichaMed->abreviatura = "Med";
$fichaMed->gps_maestro_contacto = 2;
$arrFichas[1] = $fichaMed;
...
$this->result = $arrFichas;
}
And wsFicha is
class wsFicha {
/**
* Id formato de la Ficha
* @var integer
*/
public $id_formato;
/**
* Nombre de la ficha
* @var string
*/
public $nombre;
/**
* Abreviatura
* @var string
*/
public $abreviatura;
/**
* Si la posición GPS depende de la base (1) o del contacto (2)
* @var integer
*/
public $gps_maestro_contacto;
}
What could i'been doing wrong so the webservice doesnt generate my data, also to note that if i put return sfView::ERROR only for testing, don't works and gets ignored.
The text was updated successfully, but these errors were encountered:
Hi again.
I'm facing an issue with an complex array, the response only says:
But I've already declared WSMethod:
And wsFicha is
Finally,
app.yml
standsWhat could i'been doing wrong so the webservice doesnt generate my data, also to note that if i put
return sfView::ERROR
only for testing, don't works and gets ignored.The text was updated successfully, but these errors were encountered: