to be thorough though i got in touch w/the head SMS honcho tom jordahl just in case and lo & behold the coldfusion team actually did think of everything--it just slipped through the usually stellar cf docs.
so to add any optional parameters to your outgoing SMS you just need to do something like:
params["0x1501"]=BinaryDecode("1a2b3c4d","hex");
params["0x1522"]=CharsetDecode("my value","utf-8");
outgoingSMS.optionalParameters=params;
where the "0x1501", etc business are vendor specific optional parameters. which is SO much simpler than the gobs (and gobs) of cf/java code in my approach.
note the use of the charset/BinaryDecode functions. the values for optionalParameters have to be byte[], which those functions return.
btw you could also use the following if you need to send along just the one parameter:
out.optionalParameterValue="1,2,3,4";
note that's optionalParameter without the "s".
so yeah, they really do make the hard things easy :-)
There are no comments for this entry.

