NCL Community Forum Index
  Home   Login   Register   Help   Memberlist   Search   NCL  

NCL Community Forum Index » SwiftNote (SMSJDK) Support » Specify WAP Push fragmentation length
Post new topic  Reply to topic View previous topic :: View next topic 
Specify WAP Push fragmentation length
PostPosted: Tue Dec 11, 2007 2:41 pm Reply with quote
Administrator
Site Admin
Joined: 11 Aug 2004
Posts: 237




WAP Push messages are typically binary messages sent over SMS. In the event that the binary message exceeds the GSM message length of 140 bytes, it will be fragmented into multiple SMS.

For CDMA networks, the length of a WAP Push fragment may be restricted to less than 140 bytes by the SMSC (126 bytes in some vendors).

In such a cast the maximum fragment length must be specified/reconfigured. This can be done by
  • Placing the property wapPushMaxBinaryFragmentSize=126 in the WapConfiguration.properties file (and put this file in a root directory your classpath if it does not already exist) or
  • use the encodeToSms as shown below, where the last argument specifies the maximum fragment length


Code:

public BinaryMessage[] encodeToSms(
   byte transactionId,
   Address destination,
   boolean confirmed,
   boolean registered,
   int maxFragLen);


Available since version 2.2.1.905
View user's profile Send private message

Specify WAP Push fragmentation length
 NCL Community Forum Index » SwiftNote (SMSJDK) Support
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic