com.HTTPResponse.getPartCount

Returns the number of additional parts in the HTTP response.

Syntax

getPartCount()
  RETURNING count INTEGER

Usage

Returns the number of additional parts in the HTTP response. The root part element must be handled via getXmlResponse(), getTextResponse(), getDataResponse() and beginXmlResponse(). In other words, there are getPartCount() +1 parts if getMultipartType() does not return NULL.

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).