> For the complete documentation index, see [llms.txt](https://doc.velneo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.velneo.com/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/consumo-servicio-web/proceso-de-respuesta-de-consumo-servicio-web.md).

# Proceso de respuesta de consumo servicio Web

Cuando hemos definido un objeto de tipo [Consumo servicio Web](/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/consumo-servicio-web.md) para comunicarnos con un servicio Web necesitamos programar un proceso de Velneo para poder obtener la respuesta del mismo.

Para obtener la información de la respuesta del servicio Web al que hayamos hecho una petición, en el proceso podemos declarar las siguientes [variables locales especiales](/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/variable-local.md#variables-locales-especiales) desde la opción **Variables especiales** del menú que se despliega al pulsar el botón ![](/files/8xUkXrTUqPOj7ioCXtiX) del [panel de subobjetos](https://doc.velneo.com/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/consumo-servicio-web/pages/-M7D76mbSHJGb3vExDpa#id-5.-panel-de-subobjetos):&#x20;

* [ERROR](/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/variable-local.md#error): recogerá el texto del mensaje de error.
* [REQUEST\_BODY](/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/variable-local.md#request_body): recogerá el cuerpo de la petición.
* [REQUEST\_BODY64](/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/variable-local.md#request_body64): recogerá el cuerpo de la petición cuando se trate de un binario.
* [RESPONSE\_INFO](/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/variable-local.md#response_info): recogerá toda la información de la respuesta en formato JSON.
* [RESPONSE\_TEXT](/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/variable-local.md#response_text): recogerá el texto de la respuesta a la llamada al servicio Web.
* [STATUS](/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/variable-local.md#status): recogerá el status de la llamada.
* [STATUS\_TEXT](/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/variable-local.md#status_text): recogerá el texto del status de la llamada.

Al ejecutar el proceso podemos evaluar las variables anteriores para poder analizar la respuesta del servicio Web. Ejemplo:

```
Mensaje ( "Estado: " + STATUS + "<br>" + "Testo estado: " + STATUS_TEXT + "<br>" + "Respuesta: " + RESPONSE_TEXT, Información, ,  )

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.velneo.com/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/consumo-servicio-web/proceso-de-respuesta-de-consumo-servicio-web.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
