WAP programming: how to define capabilities
| Fri, 2003-06-13 13:37 | |
|
|
Hi all, I am discovering the joy of WAP programming on NS60. I want an app to retrieve some data from a remote server. And I also want to do it by HTTP or by WAP. HTTP is OK and working fine. But I am some difficulties with WAP (using WSP) : - do I need to define CCapCodec capabilities ? How ? - Is there some kind of observer I can use on the WAP stack to get a progress report on download ? Tx for your help! Eric Eric Bustarret |






Forum posts: 363
Which interfaces are you precisely using? The stack should send you packets as they arrive, so in effect you have to create an observer anyway.
Happy coding,
Pawel
Forum posts: 1918
It looks like the gateway transmits data (at least on log files) but the emulator do not receive them....
Does someone has some source code regarding use of WSP API ?
(sorry I cannot post mine.... it's property of my customer).
How could I check that the "EMethodInvoke_cnf_t" I receive is a success or not?
(I assume it is not since I do not get the "EMethodResult_ind_t" event which should containt the result of the GET)
Tx
Eric
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 363
First of all, EMethodInvoke_cnf_t is just a notification so it is implied that the method invocation was succesful. When you get that, you do nothing and just wait for the result
. When you receive EMethodResult_ind_t, only then you can inspect the actual result of the WSP transaction.
And, regarding your earlier question about CCapCodec - I think it's good to set some basic caps but that should not be compulsory really.. if this helps
[/list:u]
Happy coding,
Pawel