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 by 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, by the portable terminal login WAP (wireless application protocol) WAP page, click the filename of subscription business on demand in the described WAP page;
B, call short message service sms module, resolve described filename, obtain the note number and the note instruction of described 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:
The Unicode UNICODE coded representation of described filename, 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 described 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 deficiencies in the prior art, the suffix of a sign short message service is added in employing in filename of subscription business on demand, system calls the sms module according to this suffix filename is resolved, obtain the note number and the note instruction of program request ordering services, send 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 by note, have great convenience for the user, better met user's request.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.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 messageservice sms) label, on WAP page, finish the problem that program request is ordered for solving by 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.Suppose the weather forecast message business of customization China Mobile 10086, 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 ", 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 browses the page on the WAP site by mobile phone, a certain business is ordered in program request if desired, 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, system discovery this document name comprises suffix .sms, system call sms module is decoded to it, obtain the filename of 10086|0000.sms, then this document name is resolved, parsing obtains note number 10086 and note instruction 0000, expression sends " 10086 " of customization note to China Mobile, 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, as 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, as " 10086|db[0 asks the input handset number]; wherein " [] " represents the user input area; need 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, please input user name as 10086|login[0] #[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 comprises following step as shown in Figure 1:
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, the easy weather forecast of program request ordering services is that example describes, during practical application technical scheme of the present invention, other program request ordering services, as quotations on the stock market, news report or amusement game etc. also can be ordered with the way of short messages program request by the WAP page by the user by mode of the present invention.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.