Operations and smoke tests¶
Authentication¶
Every call: SOAP 1.1, HTTPS, WS-Security UsernameToken (PasswordText). Wrong user/password → SOAP Fault, no Moodle data. Details: plugin fields.
The six SOAP operations¶
| Operation | Role |
|---|---|
crearCentro |
SEPE can push centre identity; you also keep it in plugin settings. |
obtenerDatosCentro |
Returns centre data (codes, URLs, contact). |
crearAccion |
Creates a training action. |
obtenerListaAcciones |
Lists actions. |
obtenerAccion |
Full action plus participants. If a Moodle course is linked, grades and enrolments come from the campus. |
eliminarAccion |
Deletes an action. |
Smoke test¶
A smoke test is the smallest check that the connector “starts”: not a full audit.
- WSDL returns XML over HTTPS.
obtenerDatosCentrowith UsernameToken returns return code0.obtenerAccionfor a known action returns code0.- If a course is linked, participants and final grades appear (demo: Ana 85, María 91, Luis 72).
Demo action: origin 20, code 201428001000000000000000000001.
Note
Demo codes illustrate format only. Production CODIGO_CENTRO, CODIGO_ACCION and specialty codes are assigned by SEPE / the competent body for your expediente.