Class wwJsonService

This class allows calling a method and returning JSON data from the result either using the client wwMethodCallback class which uses POST parameters, or by passing a single JSON parameter from the client with content-type of application/x-javascript.

This class can be implemented as a plain Process method in Web Connection with very little code. This class handles all aspects of request parsing and output generation and acts as a proxy to call a method on an object which means it can route incoming requests to any method.

Custom
  wwJsonService

Class Members

MemberDescription
CallMethod Generic call that is passed through and executes the remote method based on the information contained in the wwRequest object passed as input. The method is processed and the result returned as a JSON string. An error produces a JSON error object.
o.CallMethod(Request, TargetObject)
TargetObject The object that contains the methods to be executed.

Requirements

Assembly: wwjsonserializer.prg


  Last Updated: 4/30/2008 | © West Wind Technologies, 2008