This method requests message sending to set of destination numbers, returning request identifier to identify the message. This message ID can subsequently be used to see message delivery status, when application gets notified about it.
Message content is provided by Message implementation.

Namespace: hr.tis.mgw.client.message
Assembly:   mgw2-client-1.0.6 (in mgw2-client-1.0.6)
Version: 2.1.0.6

Syntax

Visual Basic (Declaration)
Function sendMessage ( _
	routeId As String, _
	message As Message, _
	serviceAddress As String, _
	endUserAddresses As String(), _
	priority As Priority, _
	charging As String _
) As String
C#
string sendMessage (
	string routeId,
	Message message,
	string serviceAddress,
	string[] endUserAddresses,
	Priority priority,
	string charging
)
Visual C++
String^ sendMessage (
	String^ routeId, 
	Message^ message, 
	String^ serviceAddress, 
	array<String^>^ endUserAddresses, 
	Priority priority, 
	String^ charging
)

Parameters

routeId
System.String
route identifier required for request authorization
message
hr.tis.mgw.client.message.Message
implementation of Message (SMS, MMS, etc.)
serviceAddress
System.String
sender service address (MSISDN number or some other identifier)
endUserAddresses
System.String[]
array of destination end user addresses (MSISDN number or some other identifier). Note that URI scheme can also be set as a part of endUserAddress, otherwise where no URI scheme is set, then 'tel:' is going to be used as a default URI scheme.
priority
hr.tis.mgw.client.message.Priority
message priority
charging
System.String
specifies operator-specific charging policy

Return Value

String identifying sending request (message ID)

Exceptions

ExceptionCondition
hr.tis.mgw.client.GatewayExceptionwhen gateway couldn't process request for some reason
hr.tis.mgw.client.message.MessageTooLargeExceptionwhen message exceeded maximum length supported
hr.tis.mgw.client.UnknownEndUserAddressExceptionwhen end user address was unknown
!:NoRouteCredentialsExceptionwhen security credentials cannot be resolved for specified route
!:RemoteExceptionwhen there was communication error with gateway