# SmsGatewayConfigurationType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Configuration of a particular SMS gateway. Currently, we only support sending via HTTP GET method.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
method | property HttpMethodType | [0,1] | Which HTTP method is used to send SMS.
urlExpression | property ExpressionType | [0,1] | Expression that returns URL used to send SMS.
headersExpression | property ExpressionType | [0,1] | Expression that returns HTTP request headers.
bodyExpression | property ExpressionType | [0,1] | Expression that returns request body used to send SMS (as a string).
bodyEncoding | property string | [0,1] | Encoding to be used for the message body.
username | property string | [0,1] | How to authenticate to the SMS gateway.
password | property ProtectedStringType | [0,1] | How to authenticate to the SMS gateway.
proxyHost | property string | [0,1] | Proxy host.
proxyPort | property int | [0,1] | Proxy port.
proxyUsername | property string | [0,1] | How to authenticate to the proxy.
proxyPassword | property ProtectedStringType | [0,1] | How to authenticate to the proxy.
redirectToFile | property string | [0,1] | Instead of opening HTTP connection, writes the URL to this file.
logToFile | property string | [0,1] | In addition to executing the expression, writes all messages to a file.

- ### Items

  - #### method

    Flags: RAM,runtime,AVals:8

    Multiplicity: [0,1]

    Display order:

    Which HTTP method is used to send SMS. Currently, "get" and "post" are supported. If not specified, "get" is assumed.

  - #### urlExpression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Expression that returns URL used to send SMS.

  - #### headersExpression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Expression that returns HTTP request headers. The expression should return 0, 1 or more string values that will be used as request HTTP headers. Each value is in the form of "name: value", i.e. a header name followed by comma, space and a header value. If one header has to have more values, such name-value pair should be present more times for the given header name.

  - #### bodyExpression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Expression that returns request body used to send SMS (as a string).

  - #### bodyEncoding

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Encoding to be used for the message body. ISO 8859-1 is the default. Note that if you use any other encoding, your responsibility is to provide appropriate Content-Type header (see headersExpression item). This requirement might change in the future.

  - #### username

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How to authenticate to the SMS gateway.

  - #### password

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How to authenticate to the SMS gateway.

  - #### proxyHost

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Proxy host.

  - #### proxyPort

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Proxy port.

  - #### proxyUsername

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How to authenticate to the proxy.

  - #### proxyPassword

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How to authenticate to the proxy.

  - #### redirectToFile

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Instead of opening HTTP connection, writes the URL to this file. Useful for debugging.

  - #### logToFile

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    In addition to executing the expression, writes all messages to a file. Useful for debugging.