com.HTTPServiceRequest.setResponseMultipartType

Sets HTTP response in multipart mode of given type.

Syntax

setResponseMultipartType(
   type STRING,
   start STRING,
   boundary STRING )
  1. type is one of the following:
    • form-data: Browser Xform with attachment
    • mixed: Parts are independent
    • related: Parts are dependent (Required for SOAP)
    • alternative: Parts are different type of a same document
    • or any other type
    • NULL: switch multipart mode off
  2. start is the Content-ID value of root multipart document. Must be ASCII. (optional)
  3. boundary is the string used as multipart boundary. Must be ASCII. (optional)

Usage

Sets HTTP response in multipart mode of given type. Calling one of the standard request method will send the HTTP response as given multipart type, even if no other part has been set.

The root HTTP part must be handled via the standard HTTPServiceRequest methods such as sendTextRequest(), sendXmlRequest(), sendDataRequest() and BeginXmlResponse().

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).