API Description for Extended Web Services
Get Adobe Reader |
The following sections provide detailed information about the Messaging User Interaction service capability:
The Messaging User interaction Web Service provides an application with functions to interact with end users. The application interacts with end users through text messages, for example SMS or USSD messages.
SMS based user interaction provides application initiated SMSes with a transaction ID to connect requesting/prompting SMSes with end user's replies.
USSD messages from an application can be purely informative or they can prompt the end user to reply. USSD messages can also be used by the end user to initiate service sessions with applications. When initiating service sessions or replying to an application generated USSD message, the end user can only use the terminal's key set (0-9, *, #). The application can use any type of character supported by the end user's terminal.
Creates a user interaction session with a terminal.
Address of the telephony terminal in URI format (tel:<address>). |
||
Identifier for the session. Both this identifier and the ticket identifying the login session, see applicationLogin, (supplied in the security header of the call) must be synchronized in subsequent calls. |
||
See UIException. |
||
See GeneralException. |
Subscribes for notifications on events related terminal initiated user interaction sessions.
The combination of a matching aPartyAddressExpression, bPartyAddressExpression and userInteractionCode triggers the Web Service located at endpoint.
The URL to the Web Service that implements the listener interface. See Listener interface. An example is |
||
The originating address or address range for which the notification is requested in URI format (tel:<address>). Wildcards, like * and ? are supported. |
||
Destination address or address range for which the notification is requested in URI format (tel:<address>). Only useful in cases when the destination is other than the application, for example when listening to message based user interaction sessions. |
||
A 2-digit code indicating the UI to be triggered. Defined by the operator. |
||
An ID for the listener. This ID is used when disabling the notification. See removeNetworkUIListener. |
||
See UIException. |
||
See GeneralException. |
Terminates a user interaction session.
ID of the user interaction session, retrieved when it was created. See createUI. |
||
See UIException. |
||
See GeneralException. |
Removes a previously registered network triggered user interaction listener.
ID of the listener, retrieved when it was registered. See addNetworkUIListener. |
||
See UIException. |
||
See GeneralException. |
Send predefined information via SMS or USSD to the telephony terminal. Asynchronous method. The result will be notified on the user interaction listener.
Ticket identifying the user interaction session. The ID was retrieved when createUI or processUINotification was invoked. |
||
The URL to the Web Service that implements the listener interface. See Listener interface. An example is |
||
Defines the type of user interaction resource to be used. See UserInformation. |
||
The number of times the message, defined in the parameter info, shall be repeated. For message based user interaction sessions, this parameter is ignored. |
||
Ticket to identify the request-response pairs within the user interaction session. |
||
See UIException. |
||
See GeneralException. |
Send predefined information via SMS or USSD to the telephony terminal. Synchronous method.
Ticket identifying the user interaction session. The ID was retrieved when createUI or processUINotification was invoked. |
||
Defines the type of user interaction resource to be used. See UserInformation. |
||
The number of times the message, defined in the parameter info, shall be repeated. For message based user interaction sessions, this parameter is ignored. |
||
The time to wait for the message to be delivered to the telephony terminal. An UIException exception occurs if this time is overdue. |
||
See UIException. |
||
See GeneralException. |
Send predefined information to the telephony terminal via SMS or USSD and collect user input from the end user via SMS or USSD. Asynchronous method. The result, containing user input, will be notified on the user interaction listener.
Ticket identifying the user interaction session. The ID was retrieved when createUI or processUINotification was invoked. |
||
The URL to the Web Service that implements the listener interface. See Listener interface. An example is |
||
Defines the type of user interaction resource to be used. See UserInformation. |
||
The minimum length of input for this request to be considered successful. If a timeout or endSequence is encountered before the minimum length is met, it is considered an error. For message based user interaction sessions, this parameter is ignored. |
||
The maximum length of input. When maximumLength digits have been collected, the request is considered successful, and sent back to the application. For message based user interaction sessions, this parameter is ignored. |
||
The character or characters that will terminate a variable length input. When this sequence is encountered in the input, and the total number of characters (including end sequence) is greater or equal to minimum length, the request is considered successful and sent back to the application. If the total length is less than minimum length it is considered an error. For message based user interaction sessions, this parameter is ignored. |
||
The first character timeout timer. If no character has been input before this timer releases, the input is considered an error. For message based user interaction sessions, this parameter is ignored. |
||
The timeout timer between characters. If this timer releases, the input is considered an error if the total length of the input is less than minimum length, otherwise a success. For message based user interaction sessions, this parameter is ignored. |
||
See UIException. |
||
See GeneralException. |
Send predefined information to the telephony terminal via SMS or USSD and collect user input from the end user via SMS or USSD. Synchronous method.
Ticket identifying the user interaction session. The ID was retrieved when createUI or processUINotification was invoked. |
||
Defines the type of user interaction resource to be used. See UserInformation. |
||
The minimum length of input, for this request to be considered successful. If a timeout or endSequence is encountered before the minimum length is met, it is considered an error. For message based user interaction sessions, this parameter is ignored. |
||
The maximum length of input. When maximumLength digits have been collected, the request is considered successful, and sent back to the application.For message based user interaction sessions, this parameter is ignored. |
||
The character or characters that will terminate a variable length input. When this sequence is encountered in the input, and the total number of characters (including end sequence) is greater or equal to minimum length, the request is considered successful and sent back to the application. If the total length is less than minimum length it is considered an error. For message based user interaction sessions, this parameter is ignored. |
||
The first character timeout timer. If no character has been input before this timer releases, the input is considered an error. For message based user interaction sessions, this parameter is ignored. |
||
The timeout timer between characters. If this timer releases, the input is considered an error if the total length of the input is less than minimum length, otherwise a success. For message based user interaction sessions, this parameter is ignored. |
||
Collected end user input.The format of this string is determined by the criteria given to the sendInfoAndCollect method. |
||
See UIException. |
||
See GeneralException. |
Exception of this type are raised when there are error conditions related to the Messaging User Interaction Web Service. Other error conditions are reported using GeneralException.
This exception is raised when the applications session has expired or there are communication problems with the underlying platform.
Name-value pair, defining the type of user interaction resource to be used. This data is operator defined.
Name part of the name-value pair. See UserInformationType. |
||
User information types. Defines the type of data defined in UserInformation. Enumeration (xsd:string) with the following values.
Use parameter value in datatype UserInformation as an ID of a message defined in an underlying network node. Parameter value in UserInformation shall be xsd:string. |
|
Use parameter value in datatype UserInformationData as data to be distributed to an underlying network node. |
|
Use parameter value in datatype UserInformation as an address to a message defined in an underlying network node. Parameter value in UserInformation shall be xsd:string. |
|
Use parameter value in datatype UserInformation as binary data to be sent to and underlying network node. Parameter value in UserInformation shall be xsd:string. |
Holder of data to send to an underlying network node.
For message based user interaction sessions, this parameter is ignored, however it must not be null. |
Defines the type of data retrieved. Enumeration (xsd:string) with the following values.
The Messaging User Interaction listener interface defines the methods that the underlying platform invokes on a Web Service that is implemented by an application. When an application performs asynchronous requests from the Messaging User Interaction Web Service, the responses are delivered according to this interface.
Used by the underlying system to inform the application that the session identified by uiSessionTicket is no longer valid. The application can not use the session no more.
ID of the session. The ID was returned when createUI was invoked. |
||
Successful responses to invocations of asynchronous are reported using this method.
ID of the session. The ID was returned when createUI was invoked. |
||
Defines the result of an invocation of the method sendInfo (page 49) or sendInfoAndCollect (page 52). See UIResultCode. |
||
The user input if it was a sendInfoAndCollect request and result code is INFO_COLLECTED (see UIResultCode), otherwise empty string. The format of the string is determined by the criteria given to in sendInfoAndCollect or sendInfoAndCollectWait. |
||
Failed responses to invocations of asynchronous are reported using this method.
ID of the session. The ID was returned when createUI was invoked. |
||
Defines the result of an invocation of the method sendInfo or sendInfoAndCollect.
Enumeration (xsd:string) with the following values.
Information collected from the user of the telephony terminal. |
|
The request to collect information from the user of the telephony terminal timed out. The timeout value is defined by the operator. |
The Messaging User Interaction Network Listener interface defines the methods that the underlying platform invokes on a Web Service that is implemented by an application.
In contrast to the Listener interface it listens to user interaction sessions initiated from the network, an ultimately from an telephony terminal.
That is, When an application performs asynchronous requests from the Messaging User Interaction Web Service, the responses are delivered according to this interface.
Used by the underlying system to inform the application that the session identified by uiSessionTicket is no longer valid. The application can not use the session no more.
ID of the session. The notification registration that caused this notification. The ID was returned when createUI was invoked. |
||
Successful responses to invocations of asynchronous are reported using this method.
ID of the session. The ID was returned when addNetworkUIListener was invoked. |
||
Address, in URI format (tel:<address>), of the telephony terminal that initiated the user interaction session. |
||
Address, in URI format (tel:<address>), of the application or service. |
||
A 2-digit code indicating the UI that was triggered. Defined by the operator. |
||
Defines the type of data retrieved. See UIEventDataTypeCode. |
||