Back to Contents


The TCP Response class

Summary:

See also: The Genero Web Services COM Extension Library


Syntax

The TCP Response class provides an interface to perform XML and TEXT responses over TCP, with additional XML streaming possibilities. Notice that status is set to zero after a successful method call.

Syntax:

com.TCPResponse

Methods

Object Methods
Name Description
beginXmlResponse()
   RETURNING
xml.StaxReader
Begins the streaming TCP response and returns an xml.StaxReader object ready to read XML from the server.
Throws an exception in case of errors, and updates status with an error code.
endXmlResponse(
  reader xml.StaxReader )
Ends the streaming TCP response by closing the Stax reader.
Throws an exception in case of errors, and updates status with an error code.
getXmlResponse()
   RETURNING
xml.DomDocument
Returns an entire xml.DomDocument as response from the server.
Throws an exception in case of errors, and updates status with an error code.
getTextResponse()
   RETURNING
STRING
Returns a string as response from the server.
Throws an exception in case of errors, and updates status with an error code.

Back to the top