更新时间:2023-02-26 21:05:49
您可以用任何语言来推到服务器。你唯一需要的是在推SDK中的演示应用程序提供的PAP文件
You can use any language to push to the server. The only thing you need is the PAP file provided in the demo APP in the PUSH SDK
您需要发送的文件,PAP与RIM您指定凭证throught HTTP。
You need to send the PAP file throught http with your given credential by RIM.
编辑:如果你想与你的BES环境中安装自己的推送服务器Tomcat和Mysql的时候才需要。请参阅Docs对于DebugPortal 20页
Edit : Tomcat and Mysql are needed only if you want to install your own PUSH server with your BES environment. See the Docs for DebugPortal on page 20
下面是PAP文件。
--$(boundary)
Content-Type: application/xml; charset=UTF-8
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN"
"http://www.wapforum.org/DTD/pap_2.0.dtd"
[<?wap-pap-ver supported-versions="2.0"?>]>
<pap>
<push-message push-id="$(pushid)" ppg-notify-requested-to="$(notifyURL)">
<address address-value="WAPPUSH=$(pin)%3A100/TYPE=USER@rim.net"/>
<quality-of-service delivery-method="$(deliveryMethod)"/>
</push-message>
</pap>
--$(boundary)
$(headers)
$(content)
--$(boundary)--