getHttpHeaderServer
getHttpHeaderServer(key: String): String;
The getHttpHeaderServer method of the JadeWebServiceConsumer class returns the value of a server HTTP header specified by the value of the key parameter. Server HTTP headers are sent in a response message from the server.
If the HTTP header does not exist, a null string is returned; for example, a Web service response has the following HTTP headers.
HTTP/1.1 200 OK Content-Length: 1034 Content-Type: text/xml; charset=utf-8 Server: Microsoft-IIS/7.0 X-Powered-By: ASP.NET Date: Thu, 15 Apr 2010 03:03:04 GMT
The following code fragment shows the getHttpHeaderServer method used with the example Web service response.
// Output from the next instruction is "ASP.NET" write webService.getHttpHeaderServer("X-Powered-By");