Skip to content

psContentTypeExpected - cClientWebService

Sets the expected content type of the response

Type: Property
Access: Read/Write
Data Type: String
Parameters: None

Syntax

Property String psContentTypeExpected
Access Type Syntax
Read Access: Get psContentTypeExpected to StringVariable
Write Access: Set psContentTypeExpected to StringVariable/Value

Description

The psContentTypeExpected specifies the expected content type of the received XML response. If the content received does not contain the content type expected a transfer error will occur and the peTransferStatus property will be set to wssInvalidContentType.

The default value of this property is 'text/xml', which is the expected type for a SOAP XML transfer.

If psContentTypeExpected is set to an empty string, any content type will be accepted. This may be required if the server returning the XML data is not setting the proper content type.

Set psContentTypeExpected to "" // allow any content type