The
WapPushMessage type is used when submitting Wap Push messages to the
Gateway through the
SOAP API.
Properties
The attributes supported are defined as follows:
Attribute | Description |
ReceiverNumber | Number of the receiver, internationally
formatted with country-code but no “+” or “00”
prefixed. |
SenderNumber | Number of sender to be displayed on receiver’s
handset. Numeric with no “+” or space, max 15
digits. Alphanumeric up to 11 characters can
also be used. |
Url | The URL of the link that points to the WAP
resource. |
Description | A short description/name to show together with
the Wap link. |
Tariff | The amount (in local currency as cents/”ører”)
to charge the receiver. This feature requires an
CPA agreement. Should be set to 0 (zero) when
not used. |
Network | Optional. Used to indicate special routing of the
message. Should only be set upon request from
gateway-owner. |
TimeToLive | Set this value to the number of minutes that the message should be valid before it expires if not delivered. Set to 0 to use the default value. |
CPATag | Optional. Used with CPA messages to indicate further details on the subscribers telephone bill what he/she has paid for. |
ReceiptRequest | If this attribute is set to true and forwarding of delivery reports are enabled for your Gateway account, then the delivery report for this message will be forwarded to your application. |
SessionData | Optional. A free text field that can be used to tag the session with customer specific data such as the application name, username, reference-id etc. The maximum length is 200 characters.
Leave empty unless required. |
AffiliateProgram | Optional. If you are part of an Affiliate-Program offered by the PSWinCom Gateway provider, you can use this element to specify your Affiliate Program code. Leave empty unless required. |
DeliveryTime | Optional. String representing a date and time when the Gateway should try to deliver the message.
If this parameter is present the message will be considered to be a deferred message that will be queued for future delivery instead of immediately being forwarded to operator. The format is as follows:
YYYYMMDDHHmm
Sample:
20th of June 2008 at 14:32 should be specified
as: 200806201432
DeliveryTime is always in CET. Maximum delay of message is currently one week (7 days). |
Code
C# notation of the WapPushMessage object:
public class WapPushMessage
{
public string ReceiverNumber;
public string SenderNumber;
public string Url;
public string Description;
public string Network;
public int Tariff;
public int TimeToLive;
public string CPATag;
public bool RequestReceipt;
public string SessionData;
public string AffiliateProgram;
public string DeliveryTime;
public WapPushMessage()
{
}
}
XML
<WapPushMessage>
<ReceiverNumber>4792112233</ReceiverNumber>
<SenderNumber>2077</SenderNumber>
<Url>http://wap.pswin.com</Url>
<Description>PSWinCom Wap site</Description>
<Network></Network>
<Tariff>0</Tariff>
<TimeToLive>0</TimeToLive>
<CPATag></CPATag>
<RequestReceipt>true</RequestReceipt>
<SessionData></SessionData>
<AffiliateProgram></AffiliateProgram>
<DeliveryTime></DeliveryTime>
</WapPushMessage>
See also