getHttpHeaderClient

getHttpHeaderClient(key: String): String;

The getHttpHeaderClient method of the JadeWebServiceConsumer class returns the value of a client HTTP header specified by the value of the key parameter. Client HTTP headers are sent with a Web service request.

If the HTTP header does not exist, a null string is returned; for example, a Web service request has the following HTTP headers.

Accept: text/plain
Accept: text/html
Accept: text/xml
Content-Type: text/xml; charset=utf-8
Host: cnwcrs1a
Pragma: no-cache
Proxy-Connection: Keep-Alive
SOAPAction: "urn:JadeWebServices/CalculatorService/add"
User-Agent: Jade/9.9.00

The following code fragment shows the getHttpHeaderClient method used with the example Web service request.

// Output from the next instruction is "Keep-Alive"
write webService.getHttpHeaderClient("Proxy-Connection");