Skip to main content
Participant
February 26, 2010
Question

returnFormat

  • February 26, 2010
  • 1 reply
  • 288 views

Is there any way to change the default value so that the response is no wrapped in <wddxPacket .........</wddxPacket>

I understand that there is a url variable that can be sent, but I want to change this on the server so all requests are plain.

    This topic has been closed for replies.

    1 reply

    Inspiring
    February 27, 2010

    I don't expect there is one.  How would you expect a global setting like that to work with functions that return complex data types?  Or would it be a global setting that only impacts simple values?

    You can specify returntype on a function-by-function basis using the returntype attribute of the <cffunction> tag.

    Personally, I think it was dumb that they decided simply value function remote function returns should be cluttered up with pointless WDDX, but I think we're stuck with it.  At least these days one can turn it off!

    --

    Adam