Thanks Enver.  I was playing with the http://yourserver:sendsms-port/cgi-bin/sendsms

However, J2ME does not like the connection this is returning.  I am getting java.lang.ClassCastException

Can I do this?

String address = "http://138.1.117.234:13013/cgi-bin/sendsms?username=tester&password=foobar&to=0123456 ";
conn = (MessageConnection)Connector.open(address);
TextMessage txtmessage =
                (TextMessage)conn.newMessage(MessageConnection.TEXT_MESSAGE);
Thanks,

Mustafa

On 11/3/06, Enver ALTIN <[EMAIL PROTECTED]> wrote:
On Fri, 2006-11-03 at 10:09 -0500, Mustafa Cayci wrote:
> group = smsc
> smsc = fake
> smsc-id = FAKE
> port = 10000
> connect-allow-ip = xxx.xx.xxx
>
> Then I should be able to do
>
> MessageConnection conn = (MessageConnection)
> Connector.open("http://xxx.xx.xxx:10000);

Wrong.

You use gateway/test/fakesmsc; connect it to bearerbox's listening side
for fakesmsc. You connect to
http://yourserver:sendsms-port/cgi-bin/sendsms where sendsms-port is the
port number defined in the smsbox group of your configuration file.

-HTH
--
.O.
..O   Enver ALTIN                   |   http://enveraltin.com/
OOO   Software developer @ Parkyeri | http://www.parkyeri.com/



Reply via email to