1
Web Server - Ask For Help / Re: NetWebServiceMethod
« Last post by rupertvz on Today at 08:22:05 AM »Thanks Jane, that makes sense regarding using the client.
At the moment I'm testing directly in the browser just to validate the behaviour of the template.
I'm using the TestFileParameter method from Example 77 with:
Return Type = View
View Table = Customer
However, even with data in the Customer table, the response is empty:
<TestFileParameter_response></TestFileParameter_response>
So I'm trying to confirm:
Should this example return Customer records without additional parameters?
Does the VIEW require specific parameters or filters to trigger data retrieval?
Also, even when I add _json_=1 to the URL, the response remains XML ? so I'm trying to understand whether that's expected when using a browser, or if something in my configuration is missing.
I'll test with a client as suggested, but I'd like to first confirm the expected behaviour of the example itself.
At the moment I'm testing directly in the browser just to validate the behaviour of the template.
I'm using the TestFileParameter method from Example 77 with:
Return Type = View
View Table = Customer
However, even with data in the Customer table, the response is empty:
<TestFileParameter_response></TestFileParameter_response>
So I'm trying to confirm:
Should this example return Customer records without additional parameters?
Does the VIEW require specific parameters or filters to trigger data retrieval?
Also, even when I add _json_=1 to the URL, the response remains XML ? so I'm trying to understand whether that's expected when using a browser, or if something in my configuration is missing.
I'll test with a client as suggested, but I'd like to first confirm the expected behaviour of the example itself.
2
Web Server - Ask For Help / Re: NetWebServiceMethod
« Last post by rupertvz on Today at 08:20:40 AM »Thanks for the suggestion Sean,
I did try to force JSON via ContentType, but I ran into compile issues ? it seems like setting ContentType directly (e.g. net.ContentType or p_web.ContentType) is not available in a NetWebServiceMethod.
From what I understand, NetTalk should handle the response format via template settings or request negotiation.
I also tested:
http://127.0.0.1:88/TestFileParameter?_json_=1
But the response still comes back as XML.
Is setting ContentType manually actually supported in this context, or should JSON output be controlled purely via the template and request?
I did try to force JSON via ContentType, but I ran into compile issues ? it seems like setting ContentType directly (e.g. net.ContentType or p_web.ContentType) is not available in a NetWebServiceMethod.
From what I understand, NetTalk should handle the response format via template settings or request negotiation.
I also tested:
http://127.0.0.1:88/TestFileParameter?_json_=1
But the response still comes back as XML.
Is setting ContentType manually actually supported in this context, or should JSON output be controlled purely via the template and request?
3
Web Server - Ask For Help / Re: NetWebServiceMethod
« Last post by Jane on April 30, 2026, 09:17:53 PM »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.
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.
4
Web Server - Ask For Help / Re: NetWebServiceMethod
« Last post by seanh on April 30, 2026, 06:24:55 PM »have you set the content type?
net.ContentType = 'application/json'
net.ContentType = 'application/json'
5
Web Server - Ask For Help / NetWebServiceMethod
« Last post 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.
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.
6
Web Server - Ask For Help / More EIP NT Browse issues
« Last post by Richard I on April 30, 2026, 12:19:50 AM »Hi
Further to-
the Browse Insert Previous Next Last and Insert Buttons, are now floating but immovable over he data records
in the bottom third of the browse window.
Obviously a layout issue but I cannot find or reverse the setting I may have made.
Help for both posts would be much appreciated.
Thanks
Richard
Further to-
the Browse Insert Previous Next Last and Insert Buttons, are now floating but immovable over he data records
in the bottom third of the browse window.
Obviously a layout issue but I cannot find or reverse the setting I may have made.
Help for both posts would be much appreciated.
Thanks
Richard
7
Web Server - Ask For Help / Resizing column in an EIP Browse
« Last post by Richard I on April 28, 2026, 09:35:04 PM »Hi all,
I have a NT EIP Browse
i want to "stetch" open one column of many to show all the text in that field.
The fields in the column have a look up
I dont seem to be able to do that
Thanks
Richard
C11.1 NT 14. 37
I have a NT EIP Browse
i want to "stetch" open one column of many to show all the text in that field.
The fields in the column have a look up
I dont seem to be able to do that
Thanks
Richard
C11.1 NT 14. 37
8
Web Server - Ask For Help / Re: API hangs on memo field
« Last post by Bruce on April 28, 2026, 08:48:54 PM »sounds like a bug in Reflection. I'll take a look.
9
Web Server - Ask For Help / API hangs on memo field
« Last post by jlavera on April 28, 2026, 06:31:51 AM »I have a rest server API. Recently upgraded to NT 14.37, and all the latest versions of ST, Reflection, jFiles, etc.
There is a complex topspeed file with lot of fields and some memo fields. The API receive just a few of them, ignoring the rest.
There is generated code that does this:
DocParm:App_Rosters.SetAttribute('table',DocParm:App_Rosters.TableFieldToColumn(App_Rosters,'AppRosters:CancelDescription'),'readonly') DocParm:App_Rosters.SetAttribute('table',DocParm:App_Rosters.TableFieldToColumn(App_Rosters,'AppRosters:CancelDescription'),'private')
And it hangs on either one.
I debugged until I found that in Reflection.clw, there is a
ReflectClass.TableFieldToColumn Procedure(FILE pTable,String pLabel)
where this call does a loop in the "record"... but it is not counting or processing the memo fields. It looks for the field name in the structure, but it is not there, as a memo, it is not part of the structure. The result is it never ends the loop and the server hangs.
Anyone sees this? Is this a bug, or I'm missing a setting (which I cannot find)?
Kind regards,
Jorge Lavera
There is a complex topspeed file with lot of fields and some memo fields. The API receive just a few of them, ignoring the rest.
There is generated code that does this:
DocParm:App_Rosters.SetAttribute('table',DocParm:App_Rosters.TableFieldToColumn(App_Rosters,'AppRosters:CancelDescription'),'readonly') DocParm:App_Rosters.SetAttribute('table',DocParm:App_Rosters.TableFieldToColumn(App_Rosters,'AppRosters:CancelDescription'),'private')
And it hangs on either one.
I debugged until I found that in Reflection.clw, there is a
ReflectClass.TableFieldToColumn Procedure(FILE pTable,String pLabel)
where this call does a loop in the "record"... but it is not counting or processing the memo fields. It looks for the field name in the structure, but it is not there, as a memo, it is not part of the structure. The result is it never ends the loop and the server hangs.
Anyone sees this? Is this a bug, or I'm missing a setting (which I cannot find)?
Kind regards,
Jorge Lavera
10
Web Server - Ask For Help / Re: webserver example 79
« Last post by Bruce on April 22, 2026, 05:55:48 PM »trying to create a self signed certificate
CreateSelfSignedCertificate.bat
That Bat file is not used anymore.
On the Certificates tab (in the running program)
Simply put the server address into the "domain" box, and click on "Certificates" button.
The address is typically just he machine name (like Daisy) or an Ip address (192.168.1.1)
see https://www.capesoft.com/docs/NetTalk14/NetWebRuntimeSettings.htm
Recent Posts