Dear all,

how can i configure Kannel to act as a (WAP) Push Proxy Gateway? 

I found also this "code" in previous mails and i have the following
questions:


POST /cgi-bin/wap-push.cgi HTTP/1.1
Content-Type: multipart/related; boundary="7f7a1e:ea72fdd036:-7d89";
type="application/xml; charset=UTF-8"
User-Agent: Java1.3.0
Host: jpo.condat.de:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-length: 1254


--7f7a1e:ea72fdd036:-7d89
Content-Type: application/xml; charset=UTF-8

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN"
                     "http://www.wapforum.org/DTD/pap_1.0.dtd";>
<pap>
    <push-message deliver-after-timestamp="2001-11-28T11:29:40Z"
        deliver-before-timestamp="2001-11-28T14:29:40Z"
        progress-notes-requested="false"
push-id="7f7a1e:ea72fdd036:[EMAIL PROTECTED]">
        <address
address-value="[EMAIL PROTECTED]"/>
        <quality-of-service bearer="Any" bearer-required="true"
            delivery-method="unconfirmed" network="Any"
            network-required="true" priority="medium"/>
    </push-message>
</pap>

--7f7a1e:ea72fdd036:-7d89
Content-Type: text/vnd.wap.si; charset=UTF-8; charset=UTF-8

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
                    "http://www.wapforum.org/DTD/si.dtd";>
<si>
    <indication action="signal-high" created="2001-11-28T12:29:40Z"
        href="http://localhost:8081/wps/SRV*3546L-1*C258-4*S";
        si-expires="2001-11-28T14:29:40Z"
        si-id="7f7a1e:ea72fdd036:[EMAIL PROTECTED]">Check
Skyware!</indication>
</si>

--7f7a1e:ea72fdd036:-7d89--
HTTP/1.1 202 Foo
Content-Length: 424
Content-Type: application/xml
Content-Length: 424

<?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN"
"http://www.wapforum.org/DTD/pap_1.0.dtd";><pap><push-response
push-id="7f7a1e:ea72fdd036:[EMAIL PROTECTED]" sender-name="jpo.condat.de;
WAP/1.3 (Kannel/cvs)" reply-time="2001-11-28T13:47:15Z"
sender-address="/cgi-bin/wap-push.cgi"></push-response><response-result code
="1001" desc="The request has been accepted for
processing"></response-result></pap>



1) considering the text in red: what is that, and what does it do
(especially, the wap-push.cgi or any other program in its place)
2) considering the text in purple: i believe that is not necessary ?
3)The main part of the PUSH message is the text in green. Lets say i have a
servlet, and i try to initiate the PUSH message. Do you know if it is enough
to write the green part in the form out.println("....") and execute its
doPost method or i should also include the red part?

thx,
Maria

Reply via email to