NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Thys on March 01, 2018, 03:08:35 AM

Title: NetWebServiceMethod - how to return text/plain instead of JSON or XML
Post by: Thys on March 01, 2018, 03:08:35 AM
Hi,

I have a web service method that needs to return plain text instead of JSON or XML. There must be a simple way, any help please?

Thys
Title: Re: NetWebServiceMethod - how to return text/plain instead of JSON or XML
Post by: Thys on March 01, 2018, 03:31:33 AM
I've added code in the BuildResult routine to bypas the JSON/XML creation, by using packet.SetValue ('...') to get the preferred response text. It seems to be a solution, but is there another?