PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
Exemplo webservice consumo rest
Exemplo webservice consumo rest
Started by Boller, Jun., 24 2024 5:11 PM - No answer
Connect yourself…
Boller
#1
Registered member
3,694 messages
Popularité : +175 (223 votes)
Posted on June, 24 2024 - 5:11 PM
ENVIO is httpRequest
ENVIO.URL
=
"http://localhost/t001_clientes"
ENVIO.Method
=
httpGet
ENVIO.Header
[
"usuario"
] =
"adriano"
ENVIO.Header
[
"senha"
] =
"123"
RESPOSTA is httpResponse
RESPOSTA
=
RESTSend
(
ENVIO
) /
/
DISPARO
RESULTADO is JSON
=
RESPOSTA.Content
CODE is int
=
RESPOSTA.StatusCode
IF CODE
<
>
200 THEN
Info("ERRO")
END
Info(RESULTADO[4].t001_clientes.t001_cliente_id)
Info(RESULTADO[4].t001_clientes.t001_nome)
Info(RESULTADO[2].t001_clientes.t001_cliente_id)
Info(RESULTADO[2].t001_clientes.t001_nome)
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text