+2
Отвечен

Can I return json from a service call?

Chas Digal 11 лет назад в Server / Execution обновлен Gandalf 11 лет назад 1

Most API's these days allow a variety of return types. What types can I offer without having to build it into everything I do and still have it as XML

service execution

Ответ

Ответ
Отвечен

You can return XML or JSON. By default the system will return XML from any service call. The caller can define the response type as json by placing a .json after the name of the service they are calling. eg
http://127.0.0.1:1234/services/BringBackTheATeam.json?VoteMail=...

Ответ
Отвечен

You can return XML or JSON. By default the system will return XML from any service call. The caller can define the response type as json by placing a .json after the name of the service they are calling. eg
http://127.0.0.1:1234/services/BringBackTheATeam.json?VoteMail=...

Сервис поддержки клиентов работает на платформе UserEcho