Soap.SOAPHTTPTrans.THTTPReqResp.CheckContentType

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CheckContentType;

C++

void __fastcall CheckContentType(void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Soap.SOAPHTTPTrans.pas
Soap.SOAPHTTPTrans.hpp
Soap.SOAPHTTPTrans THTTPReqResp

Description

Raises an exception if the response to a SOAP method call has a common invalid content-type header.

CheckContentType checks the Content-type header of the response that THTTPReqResp receives after sending a request to the Web Service application. If it recognizes the content-type as invalid, CheckContentType raises an ESOAPHTTPException.

CheckContentType does not rule out all invalid content types, only the most common.

See Also