wsb.writer

function

Library: Web Services Broker (OMWSB)
Import : omwsb.xmd

Returns: An external output to which the HTTP response for the passed request should be written, including all HTTP headers.


Declaration
export external string sink function writer
  of                      value request request

Argument definitions

request
A wsb.request OMX variable that was returned from a call to wsb.wait-for-request


Purpose

The wsb.writer function is used to obtain an external output to which the response for the client request can be written. It should be noted that this function must be called once and only once for a given request object. If this function is not called on a given request prior to the next wsb.wait-for-request call, an HTTP error will be returned to the client. If wsb.writer is called more than once, an exception will be thrown.

Related Topics