The HTTPPart class / com.HTTPPart methods |
Creates a new HTTPPart object based on given XML document.
CreateFromDomDocument( x xml.DomDocument) RETURNING part-object com.HTTPPart
Creates a new HTTPPart object based on given XML document. To be used via the addPart() method.
A different charset can be set with the setHeader method. For example, setHeader(“Content-Type”,”text/plain; charset=ISO-8859-1”) sets the charset to ISO-8859-1.
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).