mobile手机拦截彩像

来源:互联网 发布:网络团队组建方案 编辑:程序博客网 时间:2024/05/01 22:12

1. 设定Content type   application/vnd.wap.mms-message

2. 设定Appid  x-wap-application:mms.ua

 

 

 

参考文章

(http://www.nowsms.com/discus/messages/132/518.html)

If you want to generate the push yourself, you'll need to download the WAP specifications from the Open Mobile Alliance (http://www.openmobilealliance.org) site.

When you generate a WAP push, you are generating a Push PDU as documented in the WSP (Wireless Session Protocol) specification.

The push PDU is sent via connectionless WSP to the push port (2948) on the recipient device.

ConnectionlessWSP is transported over WDP (the Wireless Datagram Protocol). The WDPspecification specifies the encoding for WDP over GSM SMS. To supportthe specification of a destination port, the WDP encoding for GSM SMSuses the SMS User Data Header (UDH). Details are in the WDPspecification, and the approach is compatible with the UDH encodingused by Nokia Smart Messaging (just that a specific port number, 2948,is reserved for WAP Push).

WDP and WSP specify how toconstruct the headers for the WAP push message. But you'll also needsome content. The two most common push content formats are "ServiceIndication" and "Service Load", which are documented in theWAP-167-ServiceInd and WAP-168-ServiceLoad specifications,respectively. These two content formats are XML-based, and the XML getsencoded in a WBXML (Wireless Binary XML, yet another WAP spec) format... the ServiceInd and ServiceLoad specs have examples of that encodingspecific to those content types.

WAP push is also used forMMS notifications. The MMS notification is simply an alternativecontent type (in the same way that ServiceInd and ServiceLoad are pushcontent types). There are some other discussions out here discussingMMS notification formats that you might find interesting for theirreferences to the header formats.

http://www.nowsms.com/discus/messages/1/395.html
http://www.nowsms.com/discus/messages/1/462.html
http://www.nowsms.com/discus/messages/12/208.html
http://www.nowsms.com/discus/messages/1/136.html#POST1623

 

(http://www.nowsms.com/discus/messages/12/799.html)

Sos --- How to register mms client?

 

Posted on Friday, September 26, 2003 - 07:49 am:   
Hi,i want write a program to receive MMS, but what should i register my program? i mean,
which registery should i write? thanks in advance.
Anonymous
Posted on Friday, September 26, 2003 - 09:17 am:   
duno what u mean
newbie
Posted on Friday, September 26, 2003 - 10:33 am:   
i mean, after writing a program, you must register
it to receive mms in advance. or your program will n't get the mms push notification message.
i want to know how to register?
Bryce Norwood - NowSMS Support
Posted on Saturday, October 11, 2003 - 09:11 pm:   
What are you registering with?

What platform is the client running on?

This would seem to be a question that is specific to whatever platform your client software is written for ...
Anonymous
Posted on Monday, October 13, 2003 - 02:40 am:   
PocketPCnewbie
Posted on Monday, October 13, 2003 - 06:10 am:   
Hi,bryce,
thanks for your patient reply!
my clint is running on Smartphonw2002,and how it get MMS notification messge? I have register
appid and content type as following :
AppID: MyClient.exe
content-type: application/vnd.wap.mms-message
but when a mms notication arrives, mobile can't call myclient.exe to receive it. why? what should i do? thanks a lot.
Bryce Norwood - NowSMS Support
Posted on Tuesday, October 14, 2003 - 02:13 am:   
Well, you got me there. I'm definitely not an expert on either Pocket PC or MS Smartphone development.

The Pocket PC 2003 API defines an API called PushRouter_RegisterClient, which looks like what you would use:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guide_ppc/htm/_ mdref_pushrouter_registerclient.asp

I'm not sure if that API is also supported on the Smartphone platform.

Ifthat is the API that you are attempting to use (or a similar one), thenyou might be confused about the meaning of "AppID". In this context, itis not the name of your executable (szPath has the executable nameincluding path). Instead, it is referring to a push application id ...a list of which you can find on this page: http://www.wapforum.org/wina/push-app-id.htm

Unfortunately, the MS API documentation is not clear on how you would specify an appid using the binary value (only the text).

 

AppID 如下:

(http://www.wapforum.org/wina/push-app-id.htm)

PUSH Application ID

WINA assigns numbers for registered PUSH Application IDs.  The numberspace is divided into three segments:

  • 0x0000 - 0x7FFF: Well-known values, managed specified by the WAPworking groupprocesses. The application as represented by the URI must be defined inany WAP specification. URNs are required for URI and NID in URN [rfc2141 ] MUST be "x-wap-application".
  • 0x8000 - 0xFF000000: Reserved values, registered and managed by WINA. URN with NID "x-wap-application" cannot be used.
  • 0x04000 - 0x1FFFFF: Experimental values, registered by WINA only for advisorypurposes. URIs in the Well-Known and Reserved category SHOULD NOT be used.

In order to register a PUSH Application identifier, a short descriptionof its use must be provided. 

See WAP-189 PUSH OTA Specification.for more information onPUSH Application identifiers.

Well Known Values

URNNumberDescriptionx-wap-application:*0x00Any Applicationx-wap-application:push.sia0x01WAP Push SIAx-wap-application:wml.ua0x02WML User Agentx-wap-application:wta.ua0x03WTA User Agentx-wap-application:mms.ua0x04This ID will used for application dispatching to MMS User Agent inthe handling of MMS notfication using WAP Push. See WAP-206-MMSCTR formore detail.x-wap-application:push.syncml0x05SyncML PUSH Application ID: used to push a SyncML Alert from aSyncML server side. The SyncML Alert is an indication for starting aSyncML session e.g., for data synchronization. Requested by the WAP WAG Synchronisation Drafting Committee.x-wap-application:loc.ua0x06This ID is used for application dispatching to Location User Agent inthe handling of Location Invocation document. See WAP-257-LOCPROT fordetails.Requested by the WAP WAG Location Drafting Committee.x-wap-application:syncml.dm0x07This ID is used for SyncML Device Management. Requested by the SyncML Device Management Expert Group.x-wap-application:drm.ua0x08This ID is used for DRM User Agent. Requested by the WAP WAG Download DC.x-wap-application:emn.ua0x09This ID is used for Email Notification (EMN) User Agent. Requested by the WAP WAG PUSH DC.x-wap-application:wv.ua0x0AThis ID is used for Wireless Village (EMN) User Agent. Requested by Wireless Village.

Registered Values

URNNumberRegistrantDescription x-wap-microsoft:localcontent.ua 0x8000 David Hitchman is an application to receive pages to be stored andaccess locally. These are not wta channels. Usually the pages will bedownloaded as multi-part mime. x-wap-microsoft:IMclient.ua 0x8001 David Hitchman is an application which will act as an instant messaging client on a phone. x-wap-docomo:imode.mail.ua 0x8002 Hidetoshi Ueno is used to identify the i-mode mail application user agent on a mobile device. x-wap-docomo:imode.mr.ua 0x8003 Hidetoshi Ueno is used to identify the i-mode message request application user agent on a mobile device. x-wap-docomo:imode.mf.ua 0x8004 Hidetoshi Ueno is used to identify the i-mode message free application user agent on a mobile device. x-motorola:location.ua 0x8005 Joby James is an application that receives message notifications from the location server. x-motorola:now.ua 0x8006 Joby James is an application that presents personalized information to the user. x-motorola:otaprov.ua 0x8007 Joby James is an application that receives provisioning messages from the server. x-motorola:browser.ua 0x8008 Joby James is a web browsing application. x-motorola:splash.ua 0x8009 Randi Faris is an application that receives splash screen content from the server. unused 0x800A     x-wap-nai:mvsw.command 0x800B Martin Fallenstedt is used by administrators to issue commands to individual devices. unused 0x800C through 0x800F     x-wap-openwave:iota.ua 0x8010 Philip Ryan is used for application dispatching to the IP-basedOTA Provisioning Service Agent in the handling of IOTA notficationsusing WAP Push.

Private or Experimental Values

URNNumberRegistrantDescription
原创粉丝点击