Hi all:
I have one webservice with restful and its work fine, but I have a question.
I tested this solution from web browser (Firefox) and the utility “restclient” (Google Code Archive - Long-term storage for Google Code Project Hosting.) by GET method.
From Firefox, I get the response in XML, but from restclient it is in JSON.
I tested different parameters in the header with the same result.
Any idea?
Thanks in advance.
Yes: use Velocity and call a form adding a “.json” extension to it, or a “.xml” extension to it depending on what you want.
https://www.servoyforge.net/projects/ve … /WebClient
Adelo,
The rest-ws plugin looks at the Accept request header of the request to check which result format to send in the response.
It supports application/json, application/xml and binary and defaults to json (when no Accept header is found or no supported type).
Rob