A kind of method that realizes SMS VoD service of mobile terminal
Technical field
The invention belongs to communication technical field, relate in particular to the method that on the WAP page, realizes the program request ordering services.
Background technology
WAP (Wireless Application Protocol WAP) is a kind of global unified open protocol standard that internet content and advanced value-added service are provided to portable terminal.WAP definition can be general platform, become information to the information translation of the online html language of Internet at present with WML (Wireless Markup Language WML) description, be presented on the display screen of portable terminal.
What use WAP technology was maximum at present is exactly the WAP mobile phone, and it combines Internet and mobile phone technology, and it provides the approach through the mobile phone access the Internet.Like this, as long as a mobile phone of supporting WAP has been arranged, just access internet whenever and wherever possible comprises and sending and receiving e-mail, and visits page on the WAP site or the like.
But existing WAP technology can't realize through sending short message by mobile phone, realizes the program request ordering services.
Summary of the invention
The object of the present invention is to provide a kind of portable terminal to realize the method for program request ordering services, be intended to solve the problem that can not realize the program request ordering services with short message mode that exists in the prior art through the WAP page.
The present invention is achieved in that a kind of method that realizes portable terminal realization program request ordering services, and described method comprises the steps:
A, through the portable terminal login WAP WAP page; Click the filename of subscription business on demand in the described WAP page; Wherein, Said filename of subscription business on demand comprises note number and note instruction, adopts " | " as separator between note number and the note instruction, is suffix .sms after the note instruction;
B, call short message service sms module, resolve described filename, obtain the note number and the note instruction of said program request ordering services;
C, send the instruction of described note to described note number.
Described filename suffix is .sms, and described sms module is called according to described filename suffix .sms by system.
Wherein step b also comprises:
Described filename is with Unicode UNICODE coded representation, and described sms module is decoded to described filename.
Wherein also comprise before the c after the step b:
The prompting user's input information, described information is mobile terminal number and/or password.
Specifically comprise:
Call input frame and show that the prompting user imports described mobile terminal number and/or password in described input frame.
Described mobile terminal number is the mobile terminal number of the said WAP page of login or other mobile terminal number.
Adopt " | " as separator between described note number and the note instruction.
Described program request ordering services is weather forecast or quotations on the stock market or news report or amusement game.
The present invention overcomes the deficiency of prior art; Be employed in the suffix that adds a sign short message service in the filename of subscription business on demand; System calls the sms module according to this suffix filename is resolved, and obtains the note number and the note instruction of program request ordering services, sends the technical scheme that instruction is ordered in program request to this note number then; Make mobile phone users when browsing the WAP page; Can realize the program request ordering services through note, have great convenience for the user, better meet user's request.
Description of drawings
Fig. 1 is an embodiment of the invention flow chart.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Owing to adopt the WML language on the existing WAP site; There is not relevant note (short message service sms) label; Accomplish the problem that program request is ordered for solving on WAP page through SMS; In the embodiment of the invention, the extension name .sms of a self-defined file provides in WAP page and adds suffix .sms in the filename of program request ordering services.
Wherein, filename comprises note number and note instruction, adopts " | " as separator between note number and the note instruction, is suffix .sms after the note instruction.The weather forecast message of supposing customization China Mobile 10086 is professional; Note number is 10086; The note instruction is 0000; The click box that shows on the WAP page is " weather forecast of customization China Mobile ", and its corresponding file is called 10086|0000.sms, and this document name is expressed as 00310030003000380036007c0030003000300030.sms through 16 scale codings with UNICODE (Unicode) after encoding.
When the user browsed the page on the WAP site through mobile phone, a certain business was ordered in program request if desired, and for example the user need customize the weather forecast business of China Mobile; Then click " weather forecast of customization China Mobile " corresponding customization click box; The UNICODE of this click box corresponding file name is encoded to 00310030003000380036007c0030003000300030.sms, and system discovery this document name comprises suffix .sms, and system call sms module is decoded to it; Obtain the filename of 10086|0000.sms; Then this document name is resolved, resolve and obtain note number 10086 and note instruction 0000, " 10086 " of customization note to China Mobile are sent in expression; Its instruction is " 0000 ", and the business of expression customization is " a customization weather forecast message ".System is implemented in the function of note customization on the WAP page to the note of 10086 transmissions " 0000 ".
For further satisfying user's actual demand, system can require user's input information before sending above-mentioned note, like the phone number of customized user, perhaps when the user replaces other user's program request ordering services, also can import and receive professional phone number.Input frame can call in system before sending note; The prompting user imports relevant information in input frame; Like " 10086|db [0 asks the input handset number] "; Wherein " [] " represented the user input area, needs the information of user's input prompt, ' the type of first character representation input frame of [' back.In addition; A plurality of input frames can call in system; The prompting user imports multiple information, like 10086|login [0 please input user name] # [1 please input password], when the user imports corresponding information in each input frame after; System is implemented in the function of note customization on the WAP page to 10086 transmission notes " 0000 ".
The flow chart of the embodiment of the invention is as shown in Figure 1, comprises following step:
1, the user browses the WAP page, clicks " weather forecast of customization China Mobile ";
2, the sms module is called according to the .sms suffix of " weather forecast of customization China Mobile " corresponding file name by system;
3, system decodes to the filename 00310030003000380036007c0030003000300030.sms of coding, obtains the filename of 10086|0000.sms;
4, the filename of 10086|0000.sms is resolved, obtain note number " 10086 " and note instruction " 0000 ";
5, system sends to 10086 with note instruction " 0000 ".
In the embodiment of the invention; It is that example describes that the program request ordering services is prone to weather forecast, during practical application technical scheme of the present invention, and other program request ordering services; Like quotations on the stock market; News report or amusement game etc. also can be ordered with the way of short messages program request through the WAP page by the user through mode of the present invention.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.