-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

开 颜 wrote:

> Hi,all,
> 
> I am facing a problem on sending the confirmed push message.  Did anybody 
> meet  this 
> before ? If so, please tell me the solution for it. Warning is below:
> 
> PPG: handle_push_message: wrong app id for confirmed push session creation
> 
> 
> The message sent to ppg as follow:
> 
> POST /cgi-bin/wap-push.cgi?username=foo&password=bar HTTP/1.1
> Content-Type: multipart/related; boundary=WPL38woVbhESdfalYevGqpdzLCs; 
> type="application/xml"
> X-Wap-Application-Id: 480
> User-Agent: Jakarta Commons-HttpClient/3.0-rc3
> Host: 202.108.*.*:8080
> 
> --WPL38woVbhESdfalYevGqpdzLCs
> Content-Type: application/xml; charset=UTF-8
> <?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" 
> "http://www.wapforum.org/DTD/pap_1.0.dtd";><pap><push-message push-id="480"  
> progress-notes-requested="false"><address 
> address-value="WAPPUSH=+8613488795096/[EMAIL PROTECTED]"/><quality-of-service 
> priority="medium" delivery-method="confirmed"  network-required="false"  
> bearer-required="false"/></push-message></pap>
> --WPL38woVbhESdfalYevGqpdzLCs
> Content-Type: text/vnd.wap.si; charset=UTF-8
> <?xml version="1.0"?><!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"  
> "http://www.wapforum.org/DTD/si.dtd";><si><indication  
> href="http://www.baidu.com"; si-id="480" action="signal-medium">Hi,new 
> mail!</indication></si>
> --WPL38woVbhESdfalYevGqpdzLCs--
> 
> 
> As the message above showing ,I have added the 'X-Wap-Application-Id'  in the 
> HTTP Request header,but it does not work at all.What can I do to make 
> cofirmed push run finely?
> Any reply is appreciated!

Hi,

now you are mis-interpreting the semantics of the 'X-Wap-Application-Id' HTTP
header towards PPG.

As far as I see, you simply use the value '480' as si-id in the SI document,
which is ok, and drop the same value 1-to-1 as X-Wap-Application-Id, which is
totally wrong.

These two values have nothing in common.

Please review at

http://www.openmobilealliance.org/tech/omna/omna-push-app-id.htm

which X-Wap-Application-Id assignments have been registed with OMA.

Please use Kannel's own testing HTTP client at test/test_ppg to initiate a HTTP
multipart towards Kannel's PPG and see how the request is structured, and addopt
for your own HTTP client.

Stipe

- -------------------------------------------------------------------
K
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGHWzz9ez0oeKvYs0RAhBsAJ4pDS8WVACuOyIQLvT3ZX5eTElwVwCfbEYY
PFx7esbtnGWWNyh3JIbXCYM=
=v91M
-----END PGP SIGNATURE-----

Reply via email to