WTAI (Send Network Text)

WTAI (Send Network Text) SearchSearch
Author Message
ahmed r
New member
Username: Ahmader

Post Number: 1
Registered: 04-2004
Posted on Monday, April 19, 2004 - 08:55 pm:   

Hello,

I've been trying WTAI to send an SMS via a wml page, I know its not supporting URI for that, but i'm using WMLScript to do that.

I tried different libraries such as :

var handle = WTANetText.send("0123456789", "Hello World!");

var handle = WTAIS95.sendText("5580633", "Hello!" , 0, false, false, "5580633");

Please Acknowledge. Thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2322
Registered: 10-2002
Posted on Tuesday, April 20, 2004 - 09:24 pm:   

Hi,

Unfortunately, I've never seen any phone that supports these WMLScript functions/libraries.

I just did a quick web search, and I've seen relatively recent confirmation from both Nokia and Openwave representatives that their browsers do not implement these functions.

If the functions were supported, they should be in the UAProf file for the phone.

It would be under <prf:WtaiLibraries> where the WTA libraries that the device supports would be listed.

Unfortunately, when I look at the profiles for today's high end phones, they only list support for the following:

WTA.Public.makeCall
WTA.Public.sendDTMF
WTA.Public.addPBEntry

You can view a lot of UAProf files at http://www.w3development.de/rdf/uaprof_repository/

It's a shame. One of the problems is that there are some good specifications that define functions like this ... but the functions are considered "optional" in terms of specifications conformance, so manufacturers do not implement them unless there is competitive reason to do so ...

-bn
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2326
Registered: 10-2002
Posted on Wednesday, April 21, 2004 - 03:53 pm:   

A side note ...

As the actual functions are:

WTAPublic.makeCall
WTAPublic.sendDTMF
WTAPublic.addPBEntry

I'm not sure why the UAProf files include a "." between WTA and Public ...
ahmed r
New member
Username: Ahmader

Post Number: 2
Registered: 04-2004
Posted on Saturday, April 24, 2004 - 02:17 pm:   

Dear Bryce,

Thanks for your replay, and your time for searching with me this subject. however after allot of searching about this myself i found the same information you're saying but i still can not understand this. let me tell you my testing scenarios and you will understand my douts.

I've tested :
var handle = WTANetText.send("0123456789", "Hello World!");

the WMLScript will accept this function cuz i try to use this function with the parameters im passing in the example. but if i remove any parameter the WMLScript will return an error on compile. so the page will return Response Unknown. but if the parameters are valid so the WMLScript will complie successfuly but when reach to the line the browser will return File Unknown Format. So the main issue about this Function is working and validate. but !!! :-(

The Next example:
var handle = WTAIS95.sendText("5580633", "Hello!" , 0, false, false, "5580633");
will always return Response Unknown which also mean the WMLScript did not complie successfuly.

My only dout is there is something missing in the first example, about the UAProf they just provide the Public WTA, so i think for the un-public they will not add it in the UAProf. maybe we need to add some libraries or something before calling the function. cause the function is validate but it will not process. please try it out with me. I'm trying it very hard. maybe we can up with a solution for that. I dont know why there is no one interested in this subject .. i searched allot i just found standards nothing more.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2398
Registered: 10-2002
Posted on Wednesday, April 28, 2004 - 04:25 pm:   

Hi Ahmed,

If you are connecting via a WAP gateway, the WAP gateway needs to convert the text WMLScript into a byte code format before it is sent to the phone.

Most WAP gateways will understand the WTANetText library. And the gateway might go so far as to validate the parameters based upon the definition of the function. (This behaviour will very between gateways.)

Your tests indicate that the WAP gateway through which you are connecting understands the WTANetText library, and converts the function call into the binary WMLScript format. However, the phone does not recognise the library and/or function.

The WTAIS95 library is more specialised, as it is CDMA specific. And it does not surprise me that the WAP gateway through which you are connecting does not know how to perform the binary encoding of this function.

Unfortunately, if a phone does not implement the library, you can't just add it. Support for the function needs to be implemented in the WMLScript interpreter on the phone.

The WAP gateway only converts WMLScript from text format to binary format. In binary format, each library has a number assigned to it, and each function has number assigned to it ... so that the code can be transmitted to the device in a more compact form. But the device needs to support the library/function.

-bn
ahmed r
New member
Username: Ahmader

Post Number: 3
Registered: 04-2004
Posted on Thursday, April 29, 2004 - 11:11 pm:   

Hello Bryce,

Thanks for your information which include some information i never get into it.

so if the gateway support or understand WTANetText library, and validate it do you mean if i convert my WMLScript into binary format the phone will understand too, please let me know more if thats valid. cause i get lost somehow i understand first that if the script landed to the mobile and it support the library+function my thing will work.
however if you know any mobile which support this kind of behavior please let me know.
do you think there is any possibility what im asking can be done with the new releases of Nokia models... or just forget about it and find another job :-)
I'm thinking if i can write J2ME to be downloaded to the mobile and update the WMLScript interpreter is that smart or stupid ;)

Thanks again for your great support ... your really great... i know im asking allot of qustions but i really want to make this happend it would be a great work what we are talking about
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2443
Registered: 10-2002
Posted on Friday, April 30, 2004 - 08:04 pm:   

Ahmed,

I'd forget about it, and move on. Don't take another job yet, but move on to another project.

There are two formats for WMLScript. A text format and a binary format.

When you write WMLScript, you write it in text format. When it gets sent to a phone by a WAP gateway, the WAP gateway must convert it to binary format.

The gateway will perform some validation on the WMLScript when it converts it to binary format. So you might get back an error from the gateway if a function is referenced that the gateway does not know how to convert into binary format.

When the phone receives the binary WMLScript, it is also possible that the phone will see references to functions that it does not support.

Unfortunately, none of the phone browsers are extensible enough to allow you to add missing functions to the WMLScript interpreter. So you can't just write some J2ME code or anything like that.

It would be interesting if the browser could include a link that pointed to a local J2ME application on the phone. So then you could hvae a J2ME application on the phone, and from a link in the browser, pass a parameter to the J2ME app. But I'm not aware of any defined URL format that would allow for that ... so again, you're out of luck.

-bn