WAP programming: how to define capabilities

Login to reply to this topic.
Fri, 2003-06-13 13:37
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 1918
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
NewLC Founder & CEO / Professional Symbian OS Consultant


Wed, 2003-06-18 16:57
Joined: 2003-05-27
Forum posts: 363
WAP programming: how to define capabilities
Hi Eric,
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
Wed, 2003-06-18 20:02
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 1918
WAP programming: how to define capabilities
Actually, I have some issue with my gateway or something on my network.
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

Thu, 2003-06-19 08:42
Joined: 2003-05-27
Forum posts: 363
WAP programming: how to define capabilities
Hi Eric,

    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  Smiley . 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  Smiley
    [/list:u]

    Happy coding,
    Pawel
  • Login to reply to this topic.