Pyro Surya wrote:
Hi,
I'm new to the kannel wap gateway..
I've configured the Kannel gateway... (attached the config file)
I'want to wappush to nokia 7210 simulator, I'm using Linux and wine for
7210.
I've tried the wappush using the following control and content entities:
si.txt :
<?xml version="1.0"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
" http://www.wapforum.org/DTD/si.dtd">
<si>
<indication href="http://wap.google.com"
si-id=" [EMAIL PROTECTED]"
action="signal-high"
created="1999-06-25T15:23:15Z"
si-expires="2005-06-30T00:00:00Z">
You have 4 new emails
</indication>
</si>
first "mistake" here. See the 'si-expires' attribute. It's obviously in the
past. So even if we do send the SI document to the client, it will silently
ignore, since the expires timestamp is in the past.
Make sure times are accurate!
pap contro: iptestppg.txt
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN"
" http://www.wapforum.org/DTD/pap_1.0.dtd">
<pap>
<push-message push-id="[EMAIL PROTECTED]"
deliver-after-timestamp="2001-02-28T06:45:00Z"
progress-notes-requested="false">
<address address-value="WAPPUSH=127.0.0.1/[EMAIL PROTECTED]">
</address>
<quality-of-service
priority="low"
delivery-method="unconfirmed"
bearer-required="true"
bearer="csd"
network-required="true"
network="gsm">
</quality-of-service>
</push-message>
</pap>
Started the bearer box: ./bearerbox -v 1 mygw.conf
Started the wapbox:./wapbox -v 1 mygw.conf
Started the test http server which uses theport 8080: ./test_http_server
Started the 7210 simulator: $ wine 7210.exe -classpath
'/opt/Nokia/Devices/Nokia_7210_MIDP_SDK_v1_0/lib/classes.zip
Done the wappush:
./test_ppg
"http://localhost:8080/cgi-bin/wappush.cgi?username=surya&password=password"
si.txt iptestppg.txt
The test_http_server says (I have attached the output ):
2007-03-14 10:23:59 [28832] [1] DEBUG: Octet string dump ends.
Entity: line 1: parser error : Start tag expected, '<' not found
Sent.
^
2007-03-14 10:23:59 [28832] [1] WARNING: PAP COMPILER: pap_compile: parse
error in pap source
2007-03-14 10:23:59 [28832] [1] WARNING: TEST_PPG: receive_push_reply:
cannot compile pap message
obviously the PAP compiler shouts here to have an XML parsing error.
Are you sure the PAP document is XML valid in terms of structure?
Stipe
-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany
tolj.org system architecture Kannel Software Foundation (KSF)
http://www.tolj.org/ http://www.kannel.org/
mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------