NetTalk Central

Author Topic: NetWebServiceMethod - how to return text/plain instead of JSON or XML  (Read 4049 times)

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
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

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
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?