WSCookie

Allows cookies to be passed to Web service REST function.

Syntax

WSCookie

Usage

You set this attribute to indicate that a parameter value will transport a cookie. The client application needs to provide the appropriate header and value when making a call to the function.

WSCookie is defined in an ATTRIBUTE() clause of an input parameter of the function.

WSCookie is an optional attribute.

Example WSCookie

PUBLIC FUNCTION add(coef FLOAT ATTRIBUTE(WSCookie) )
  ATTRIBUTES (WSGet)
  # ... function code  ...
END FUNCTION
In the call to the function, a header named "coef" provides the cookie value:
http://host:port/gas/ws/r/MyService/add