NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
NetWebServiceMethod - how to return text/plain instead of JSON or XML
« previous
next »
Print
Pages: [
1
]
Author
Topic: NetWebServiceMethod - how to return text/plain instead of JSON or XML (Read 4046 times)
Thys
Sr. Member
Posts: 311
NetWebServiceMethod - how to return text/plain instead of JSON or XML
«
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
Logged
Thys
Sr. Member
Posts: 311
Re: NetWebServiceMethod - how to return text/plain instead of JSON or XML
«
Reply #1 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?
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
NetWebServiceMethod - how to return text/plain instead of JSON or XML