SendXmlDomRequest
This method sends a request with an XML object payload to an HTTP server. This method can be used, for example, if the server only accepts XML object payloads.
Syntax
METHOD SendXmlDomRequest : BOOL
VAR_IN_OUT CONSTANT
sUri : STRING;
END_VAR
VAR_INPUT
fbClient : REFERENCE TO FB_IotHttpClient;
eRequestType : ETcIotHttpRequestType;
fbXml : REFERENCE TO FB_XmlDomParser;
fbHeader : REFERENCE TO FB_IotHttpHeaderFieldMap;
END_VAR
Return value
Name | Type | Description |
---|---|---|
SendXmlDomRequest | BOOL | Returns TRUE if the method call was successful. |
Inputs
Name | Type | Description |
---|---|---|
fbClient | REFERENCE TO FB_IotHttpClient | The HTTP client function block instance from which the request should be sent. |
eRequestType | ETcIotHttpRequestType | The type of HTTP command the request should have. The list can be found in the appendix. |
fbXml | REFERENCE TO FB_XmlDomParser | The instance of XmlDomParser for parsing a string into an XML object. |
fbHeader | REFERENCE TO FB_IotHttpHeaderFieldMap | The instance of IotHttpHeaderFieldMap to edit the header of the HTTP request. |
/
Inputs/outputs
Name | Type | Description |
---|---|---|
sUri | STRING | The identifier of the resource on the host. Please note, that the sUri is appended to the host name of the IotHttpClient. |