Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <cfcomponent extends="core.core">
  2.  
  3. <cffunction name="loadService" access="remote" returnformat="JSON">
  4.  
  5. <cfscript>
  6.  
  7. objResponse = '{"CONFIG":[["internal"],[ "success"]],"DATA":[["Message1"]]}';
  8.  
  9. </cfscript>
  10.  
  11. <cfreturn objResponse>
  12.  
  13. </cffunction>
  14.  
  15. </cfcomponent>
  16.  
  17. component extends="core.core"{
  18.  
  19. remote JSON function loadService(){
  20.  
  21. objResponse = '{"CONFIG":[["internal"],[ "success"]],"DATA":[["Message1"]]}';
  22.  
  23. SerializeJSON(objResponse);
  24.  
  25. return objResponse;
  26. }
  27.  
  28. }
  29.  
  30. <wddxPacket version='1.0'><header/><data><string>{"CONFIG":[["internal"],[ "success"]],"DATA":[["Message1"]]}</string></data></wddxPacket>
  31.  
  32. remote any function loadService() returnformat="JSON" {
  33.  
  34. remote JSON function
  35.  
  36. component extends="core.core" {
  37.  
  38. remote any function loadService() returnFormat="JSON" {
  39.  
  40. objResponse = '{"CONFIG":[["internal"],[ "success"]],"DATA":[["Message1"]]}';
  41.  
  42. SerializeJSON(objResponse);
  43.  
  44. return objResponse;
  45. }
  46.  
  47. }
  48.  
  49. SerializeJSON(objResponse);
  50.  
  51. objResponse = {
  52. "CONFIG" = [["internal"], ["success"]],
  53. "DATA" = [["Message1"]]
  54. };
  55.  
  56. return serializeJSON(objResponse);
  57.  
  58. remote any function loadService()
  59. returnFormat="JSON"
  60. {
  61. objResponse = {
  62. "CONFIG" = [["internal"], ["success"]],
  63. "DATA" = [["Message1"]]
  64. };
  65.  
  66. return serializeJSON(objResponse);
  67. }
  68.  
  69. component extends="core.core" {
  70. /**
  71. * @hint loads properties of an object and returns them in as JSON
  72. * @output false
  73. * @returnFormat JSON
  74. */
  75. remote struct function loadService() {
  76. objResponse = {
  77. CONFIG = [["internal"],[ "success"]],
  78. DATA = [["Message1"]]
  79. };
  80. return objResponse;
  81. }
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement