Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty Response. #7

Open
razorblade446 opened this issue Apr 2, 2012 · 1 comment
Open

Empty Response. #7

razorblade446 opened this issue Apr 2, 2012 · 1 comment

Comments

@razorblade446
Copy link

Hi again.

I'm facing an issue with an complex array, the response only says:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.pharmadvisor.com/ws/">
    <SOAP-ENV:Body>
        <ns1:FichasRepresentanteResponse>
            <result/>
        </ns1:FichasRepresentanteResponse>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

But I've already declared WSMethod:

/**
 * 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;

}

Finally, app.yml stands

  classmap:
    wsFicha: wsFicha
    wsFichaArray: ckGenericArray

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.

@sbrutin
Copy link

sbrutin commented Dec 21, 2012

I have the same problem, did you fix it and how ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants