NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: rupertvz on April 30, 2026, 01:09:47 PM
-
Hi Guys,
I?m working with NetTalk WebServer and using a NetWebServiceMethod procedure.
I can successfully call the endpoint and the procedure executes, but I?m struggling to get a JSON response to return in the browser. Currently, the request runs, but the response is blank when JSON is selected.
I have:
A queue defined for return (Q)
JSON enabled in the template
ServiceMethod populating the queue
However, it seems like the JSON branch in BuildResult / BuildResultFields is not being generated or executed.
My questions:
Is there a recommended example app or webinar showing a working NetWebServiceMethod returning JSON?
Should JSON responses for queues be handled purely via template, or is manual handling (e.g. AddJSONFromQueue) expected?
Is there a standard pattern for returning simple JSON (without queues)?
Any guidance or working example would be appreciated.
-
have you set the content type?
net.ContentType = 'application/json'
-
Are you trying to send JSON to a web browser or to a client of some sort?
There's a NetTalk example WebServiceRequiresXFiles (77) that includes two apps - a client and a web server.
It's also often useful to use the netdemo example program as a web client to debug what you're doing.