Using Nokia Toolkit As A Part Of A Developing Environment; Testing Pap Protocol Over Https - Kannel WAP and SMS gateway User Manual

Open source wap and sms gateway
Table of Contents

Advertisement

Using Nokia Toolkit as a part of a developing
environment
This chapter describes a developing environment using Nokia Toolkit instead of
program.
You cannot use a real phone for testing a push server. Sending random messages to a phone does not
work, because its only feedback (if it works properly) in error situations is dropping the offending
message.
Nokia Toolkit, instead, displays push headers, decompiles tokenised documents and outputs debugging
information. It is not, of course, a carbon copy of a real phone. But it is still usefull for checking spec
conformance of push servers.
Toolkit runs on Windows, the first thing you must is to install a virtual machine (VMWare is one
possibility) in the machine where Kannel runs. Then you must configure Toolkit for working with a push
gateway.
Then start
bearerbox
in the push document sended by
to get this is to ping your virtual machine name in the dos prompt window). Your bearer is in this case IP.
An example pap document follows:
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN"
<pap>
<push-message push-id="9fjeo39jf084@pi.com"
<address address-value="WAPPUSH=192.168.214.1/TYPE=IPV4@ppg.carrier.com"/>
<quality-of-service priority="low"
</quality-of-service>
</push-message>
</pap>
Note address-value format. It is contains type and value, because PAP protocol supports different address
formats.
You must use
application handling pushes, right value for it is ua. -C defines the content type of your push message. SI
works with all Toolkits, wml only with some older versions.

Testing PAP protocol over HTTPS

When testing HTTPS connection to PPG, you probably want use test_ppg's configuration file, because
number of required parameters is quite high. Here is a example test_ppg configuration file:
and
similar way as told before. You must set the correct client address
wapbox
test_ppg
"http://www.wapforum.org/DTD/pap_1.0.dtd">
deliver-before-timestamp="2001-09-28T06:45:00Z"
deliver-after-timestamp="2001-02-28T06:45:00Z"
progress-notes-requested="false">
delivery-method="unconfirmed"
's -a and -c flags when pushing messages to Toolkit. -A defines the client
test_ppg
Appendix C. Setting up a test environment for Push Proxy Gateway
program. Use IP address of our virtual machine (easiest way
test_http_server
101

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

1.3.1

Table of Contents