A kind of mobile PNR message push system and method thereof based on the iPhone cell phone platform
Technical field
The present invention relates to a kind of mobile PNR message push system and method based on the iPhone cell phone platform; Through this system or method; The iPhone cellphone subscriber can utilize client application in time to obtain oneself PNR and stroke, and further customizes stroke planning on this basis.
Background technology
At present, most passengers select to go on a journey and generally can plan the stroke of oneself earlier, and then consider to select the suitable vehicles.In plane ticket more and more cheap today, believe that much human can select the aircraft trip.Plane ticket is different from traditional train, bus ticket; It can comprise a lot of personal information; Such as name, ID card No., stroke etc., since this specific character, its storing process in computer system also relatively complicated (host computer system of CA's letter during computer system is refered in particular to here).It also has own only sign in system, be exactly electronic passenger ticket number for outside passenger, and it is to store with the structure of PNR in system.
Each open passenger ticket all corresponding oneself PNR, the passenger does not know own PNR, needn't be concerned about what PNR is yet, he needs only the travel information of the passenger ticket of care oneself.Business visitor's number scale now just slowly becomes big today, and their travel information is very many, and they possibly be busy with the business of oneself, have no time to manage the stroke of oneself.Second day routing is Shanghai to some people of picture, if forget that second day stroke may be cumbersome in Beijing today.
Move the PNR message push system now and can help your the easily stroke of management oneself., the user can in time receive PNR stroke notice after being fully booked plane ticket; Directly get into corresponding stroke interface through cell-phone customer terminal; Manage the stroke of oneself, such as certain stroke being shared with the good friend of oneself or sending to other cellphone subscribers, even can it be come out on microblogging.In the run-length management interface, the user can also customize and the follow-up relevant service of own stroke, as prompting, the hotel reservation or the like of setting out.If the follow-up flight that changed also can be received instant notice after the stroke change, be convenient to user's change plan.
Mobile PNR message push system and method based on the iPhone cell phone platform of the present invention solved the problems referred to above, timely passengers PNR stroke, and manage, customize the stroke plan with this.
Summary of the invention
The present invention provides a kind of mobile PNR message push system based on the iPhone cell phone platform, is made up of iPhone FTP client FTP and service end system.FTP client FTP comprises the iPhone client application module; Service end system comprises: the PNR subscribing module, and the PNR parsing module, PNR pushes module.
The iPhone client application module is responsible for checking and is submitted user's log-on data to, receives the PNR message informing at last.
Service end PNR subscribing module is at first extracted information of registered users the previous day from the client registry, judge whether this user imports identification card number, if do not have identification card number, end operation; Call the MQ service according to identification card number then, subscribe to the PNR message informing.
Service end PNR parsing module is regularly inquired about MQ service, judges whether that the PNR message of subscribing to exists, if having then resolve this message, judges whether that according to resolving back PNR content PNR draws a bill then, does not finish if PNR draws a bill; If PNR draws a bill, then the inquiring user configuration information judges whether this user PNR prompting message switch is launched, if not enabled then finishes; If launch, then generate PNR message and the storage of relative users ID according to user profile.
Service end PNR pushes the regular repeating query PNR of module storehouse; Judge whether to exist the PNR message informing that does not send the iPhone cellphone subscriber; If have then its associated user facility information storehouse generated final PNR message; Then it is pushed to apple APNS server, at last by pushing away the PNR message informing under the apple server.
The present invention also provides a kind of PNR message sending out notice method based on the iPhone cell phone platform, comprises the steps:
Step 1, the iPhone client application module is verification passenger log-on data at first, submits to service end then;
Step 2, service end is regularly extracted information of registered users the previous day every day from passenger's log-on message, subscribe to the service of PNR message informing according to identification card number then;
Step 3, serve end program are regularly inquired about MQ service and whether are had new PNR origination message, when new PNR message, resolve message; Judge whether that according to content behind the PNR message parse PNR draws a bill then, generate PNR stroke reminding message at last;
Step 4, service end is pushed to apple APNS server with PNR stroke reminding message, shifts client mobile phone at last down onto;
In step 1, at first whether client application verification passenger log-on data is effective, if invalid, then returns miscue, and after registration was passed through, passenger information was submitted to service end.
In step 2, what at first get into is service end PNR subscribing module.This module judges whether the passenger has ID card information, if having then call the MQ subscription service and subscribe to the PNR message informing;
In step 3, service end PNR parsing module program is visit MQ service regularly, and whether inquiry exists new PNR origination message, if exist then resolve, does not exist then and finishes; Then, judge that PNR resolves whether the back content is that PNR draws a bill, further judge whether the PNR stroke reminding switch of this individual subscriber setting is opened, if opened then the PNR message informing that generates associated user ID is stored if draw a bill.
In step 4, service end PNR pushes module Final Format PNR message is pushed to the apple server, by shifting client mobile phone under it onto.
The present invention focus on service end with passenger's stroke with PNR form of message real time propelling movement to the iPhone cell-phone customer terminal, the passenger directly carries out run-length management through PNR message.
Description of drawings
Fig. 1 is the mobile PNR message push system block diagram that the present invention is based on the iPhone cell phone platform;
Fig. 2 is the mobile PNR message push system overview flow chart that the present invention is based on the iPhone cell phone platform;
Fig. 3 is the mobile PNR message push system service end PNR subscribing module flow chart that the present invention is based on the iPhone cell phone platform;
Fig. 4 is the mobile PNR message push system service end PNR parsing module flow chart that the present invention is based on the iPhone cell phone platform;
Fig. 5 is that the mobile PNR message push system service end PNR that the present invention is based on the iPhone cell phone platform pushes the module flow chart;
Fig. 6 is the mobile PNR message push system client register interface figure that the present invention is based on the iPhone cell phone platform;
Fig. 7 is the mobile PNR message push system client stroke reminding switch figure that the present invention is based on the iPhone cell phone platform;
Fig. 8 is the mobile PNR message push system client PNR message informing displayed map that the present invention is based on the iPhone cell phone platform;
Embodiment
The part term that uses among the present invention:
PNR (Passenger Name Record): passenger's record of making a reservation in the host computer system, it has reflected passenger's voyage, the quantity of flight seat occupancy, and passenger information.Be suitable for civil aviaton's Ticket booking system.Be generally five digit number and alphabetical combination (at present being upgraded to six).
Host computer system: a kind of special mainframe computer, Unisys system.
APNS (Apple Push Notification Service): in the operating system of apple more than 3.0, the service of the pushed information of apple.
MQ (Message Queuing): message queue is the communication means of a kind of application program application programs of IBM.
As shown in Figure 1, the mobile PNR message push system based on the iPhone cell phone platform of the present invention is made up of client application and service end system, and client is the iPhone client application module; Service end system comprises: the PNR subscribing module, and the PNR parsing module, PNR pushes module.Service end is formed application server cluster by two IBM minicomputers, and two minicomputers constitute HTTP access server, a minicomputer composition data storehouse system.The HTTP access server is responsible for receiving all requests, according to load balancing request is assigned to wherein one of application server cluster then.Can data record be write database server after the application server processes success.
The passenger exists
The iPhone client applicationWhen registered at the interface, client verified at first whether log-on message is effective, then it is submitted to service end, and client application must be opened PNR stroke reminding switch simultaneously.
Service end PNR subscribing moduleFrom client log-on message storehouse, extract the previous day registered user and judge whether the passenger has ID card information, if having then call the MQ subscription service and subscribe to the PNR message informing, if not then finish.
Service end PNR parsing moduleWhether visit MQ service-seeking regularly has the PNR origination message of subscribing to exist, if having then resolve this message, if not then return and wait for that start next time; Judge whether that according to resolving back PNR content PNR draws a bill then, do not finish if PNR draws a bill; If PNR draws a bill, then the inquiring user configuration information judges whether this user PNR prompting message switch is launched, if not enabled then finishes; If launch, then generate PNR message and the storage of relative users ID according to user profile.
Service end PNR pushes moduleWhether regular inquiry PNR storehouse exists is not sent iPhone mobile phone PNR message; If exist then unite passenger's cell phone apparatus information bank PNR message and cell phone apparatus information are sent to apple APNS server, finally PNR message is pushed to the iPhone client by the apple server.
As shown in Figure 2, the mobile PNR message push system based on the iPhone cell phone platform of the present invention, its method for pushing comprises the steps:
Step 1, the iPhone client application module is verification passenger log-on data at first, submits to service end then;
Step 2, service end is regularly extracted information of registered users the previous day every day from passenger's log-on message, subscribe to the service of PNR message informing according to identification card number then;
Step 3, serve end program are regularly inquired about MQ service and whether are had new PNR origination message, when new PNR message, resolve message; Judge whether that according to content behind the PNR message parse PNR draws a bill then, generate PNR stroke reminding message at last;
Step 4, service end is pushed to apple APNS server with PNR stroke reminding message, shifts client mobile phone at last down onto;
As shown in Figure 3, service end PNR subscribing module of the present invention comprises the steps:
Step 1, serve end program are obtained passenger registered user the previous day from passenger's log-on message;
Step 2 judges whether the passenger exists ID card information, if exist then call MQ and subscribe to the PNR notification service, if not then finish;
As shown in Figure 4, service end PNR parsing module of the present invention comprises the steps:
Step 1, serve end program are regularly inquired about the MQ service and whether are had new PNR origination message; Continue next step if exist;
Step 2 is resolved the PNR origination message;
Step 3 is resolved the back content according to PNR and is judged whether to PNR draws a bill, if continue next step;
Step 4, whether the PNR of judges reminds switch to open, if open then combine user profile to generate PNR message and the storage of associated user ID;
As shown in Figure 5, service end PNR of the present invention pushes module, comprises the steps:
Whether step 1, message center program are regularly inquired about the PNR storehouse and are existed and do not send iPhone cellphone subscriber message, continue next step if exist;
Step 2, federated user facility information storehouse and message library generate Final Format PNR message;
Step 3 is sent PNR message to the apple server, is pushed at last on the iPhone mobile phone;
Fig. 6 submits figure to for iPhone client log-on message of the present invention;
Fig. 7 is iPhone client PNR stroke reminding switch figure of the present invention;
Fig. 8 is an iPhone client PNR stroke message displayed map;
Illustrate as follows, the iPhone cell-phone customer terminal is opened " the boat trip in length and breadth " product at present, and the passenger gets into and at first gets into register interface submission log-on message, and is successfully opening client " stroke reminding " switch after the registration.See Fig. 7, Fig. 8.
Service end is extracted passenger registered user the previous day according to client passenger log-on message, judges then whether the passenger exists ID card information, calls MQ service subscription PNR message informing according to ID card information.The PNR notification message is asynchronous arrival; Whether PNR parsing module program regularly visit MQ service-seeking has new PNR origination message to arrive; Can produce new PNR after the passenger ticket booking, when inquiring PNR message, resolve and do relevant treatment after generate the PNR message stores of associated user ID.PNR pushes module final PNR message and respective user iPhone cell phone apparatus information is sent to apple APNS server, is pushed to the iPhone cell-phone customer terminal at last.
The iPhone cell-phone customer terminal in the situation automatic reception that need not to open client application behind the PNR stroke reminding; Can point out by the Pop-up message frame; The passenger can open " the boat trip in length and breadth " client and directly get into this PNR correspondence course interface, the stroke of management or customization oneself as long as click prompting frame.See Fig. 8.