请教有关wap push的,请多帮忙!
各位兄弟姐妹,大家好!我初学WAP,对WAP PUSH技术不是很了解,如果我想将一段带有链接的字符串通过PPG然后PUSH给用户,我该怎么做啊?我是不是要将这些信息写成如下格式:
POST /PGW/ HTTP/1.1
Authorization: Basic xyzabc123
Content-type: multipart/related; boundary=multipart-boundary
User-Agent: Java1.3.1
Host: 195.255.249.57:5080
Accept: */*
Connection: keep-alive
Content-length: 971
--multipart-boundary
Content-type: application/xml
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN"
"http://www.wapforum.org/DTD/pap_1.0.dtd">
<pap product-name="Nokia Push Initiator">
<push-message
push-id="SomePushApp1013753552819"
source-reference="SomePushApp"
progress-notes-requested="false"
ppg-notify-requested-to=
"http://123.123.123.123/push/notificationInbox.jsp">
<address address-value="WAPPUSH=+358454410926/TYPE=PLMN@null"/>
<quality-of-service
bearer-required="false"
network-required="false"
delivery-method="notspecified"
priority="low"/>
</push-message>
</pap>
--multipart-boundary
Content-Type: text/vnd.wap.si
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
"http://www.wapforum.org/DTD/si.dtd">
<si>
<indication href
="http://123.123.123.123/pushservice/actionmanager"
si-id="SomePushApp1013753552819"
action="signal-high"
created="2002-02-15T08:12:32Z">
Some Push Application