+2
Answered

Can I return json from a service call?

Chas Digal 12 aastat tagasi Server / Execution uuendaja Gandalf 12 aastat tagasi 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
Vasta
Gandalf 12 aastat tagasi

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=...

+1
Kavandatud

Human interaction / webpage

Chas Digal 12 aastat tagasi Server / Execution uuendaja Gandalf 11 aastat tagasi 0

Front ends or webpages would be awesome.

web
Vasta
Gandalf 11 aastat tagasi
Yes, this is now in the pipeline!
0
Lõpetatud

View in browser not passing parameters from Querystring

Alex Hampel 12 aastat tagasi Server / Execution uuendaja Gandalf 12 aastat tagasi 0

If I execute in debug mode it works correctly using an assign/passing in parameter values



if I use an assign just after start, it works correctly and returns the expected result in the browser




If I take out the assign and pass in the values in a querystring from the browser it appears as if they're not being passed through





Vasta
Gandalf 12 aastat tagasi

All done. You can now also add .json to the end of the service you are calling! Give it a try and let us know what you think.

PS You dont need to put the [[ ]] into the query string: ?FName=Alex&SName=Hampel