A kind of method of setting up the WAP website by the WAP engine
Technical field
The search engine that the present invention relates to be used for the alignment communication is set up the method for website, particularly sets up the method for W2AP website by the WAP engine.
Background technology
WAP (wire application protocol), i.e. WAP (wireless application protocol) is a kind of wireless Internet agreement of having simplified.The WAP business just is based on this consensus standard is provided internet content to mobile phone users by mobile operator and service provider value-added service.The WAP service that provides of China Mobile at present as long as the user is WAP or GPRS mobile phone, and sets the function of surfing the Net on the mobile phone on based on GPRS " mobile dream network ", just can enter " mobile dream network ".WAP business in " mobile dream network " has MMS (multimedia message), EMS (as black and white picture) and KJava recreation (being the main contents of treasure case) at present.The charge mode of information charge has two kinds of monthly payment charging and pay-per-uses, and communication expense charges according to quantity.
The subscriber information service system MISC that the content of WAP inserts in operator, the WAP service was released by China Mobile for a long time in May, 2000, but react very flat, make the Motorola advocate the WAP service the earliest and to release the WAP mobile phone the earliest be absorbed in awkward condition.Along with the maturation of message market and the generation of various markets spinoff, China Mobile has turned to multimedia message, WAP, treasure case with the emphasis of data service, and increasing conducts promotion to its, also strengthens the support dynamics to SP.Through the market silence more than 2 years, from October 1st, 2002, after the multi-media SMS business of China Mobile (being called for short MMS) formally entered into market, the whole market began outburst, and the tinkle of bells, picture, recreation etc. have attracted numerous eyeballs based on the MMS product of WAP.The WAP business has formally entered the fast-developing phase.
Along with popularizing of portable terminal, each corner that WAP will cover society becomes the part in people's life, and formation makes intelligentized WAP engine arise to the great demand of WAP website so naturally.
Yet there are many problems in existing WAP engine, and it is to hinder a big problem of WAP application that the user can easily, not search the information resources that need exactly.Along with popularizing of portable terminal, people will become a kind of trend by the mobile phone access WAP site.The construction of WAP website mainly is that each SP service provider is undertaken by traditional mode of building a station at present.Traditional WAP web construction has a lot of defectives in construction period, versatility, aspect safeguarding, has restricted the development of WAP site, and present stage, the quantity contrast WWW of WAP site was that the mode of building a station causes to a great extent very little really.
Summary of the invention
Therefore, the purpose of this invention is to provide and a kind ofly set up the method for WAP website by the WAP engine, this method can generate the WAP website quickly and accurately, searches for efficient and convenient.
Another object of the present invention provides a kind ofly sets up the method for WAP website by the WAP engine, and this method adopts the editing environment input content based on the hommization of WEB, and website be resolved, transform and be generated to do as one likes can by superior WAP engine.
Based on this, the present invention is achieved in that
A kind of WAP engine, this engine includes editing machine, compiling and maker and database, it is characterized in that this editor and maker are based on the editing machine of browser, and browser is the INTERNET browser; Data in the database are that the structure of tree type is stored.Compiling and maker, it is a utilization XML technology, a kind of XML form of definable is deposited the WAP website of automatic generation.By this XML formatted file, can also generate portable extraordinary static page file (can be used as the DEMO of website) to whole website packing, or conversion html format file makes it directly browse its effect with generic browser (as: IE), also can be converted into the XHTML form, WORD formatted file or the like, realization is to multiple standards, different operators' support, XML (XML (extensible Markup Language)) is a kind of data access structure of international standard, utilize the characteristics of this technology, the WAP website can be saved as a kind of self-defining form, be convenient to the WAP website is converted to any protocol form, to adapt to the standard of different operators, with different procotol standards.
The database of institute's art is the data that not whole WAP website are grouped into a tree, by the mode of returning with single cousin it is deposited into database, is convenient to centralized management.
The unified technique of compiling of this WAP engine utilization, but the WAP resource support that is provided by unified all will be provided the website that the WAP engine generates, WAP is built a station more be tending towards quick, and also can be under certain rule, the content between the shared WAP person of building a station makes to reach content sharing between the WAP person of building a station.
The engine of last art makes the present invention have and hands over the problem of the existence that has solved traditional construction WAP website.By an editing environment input content based on the hommization of WEB, the superior WAP website of do as one likes energy generates engine and resolves, and transforms and the generation website, preserves the result of processing by database, make the WAP website foundation quick and precisely, be convenient to search and user and use.
A kind ofly set up the method for WAP website by the WAP engine, this method is utilized the WAP engine, and the WAP website is searched for, and it is characterized in that the performing step of this method is:
The first step: collect necessary resource content, and the resource content of collecting is stored;
Second step: the functional module of design WAP website; Functional module is divided into two kinds, and a kind of is the information class module, the classification of definition information, and a kind of module is a dynamic interaction pattern piece, self-defined its required attribute;
The 3rd step: build website; Set up operation interface, build website by the method for building row or nextpage;
The 4th step: distribution site.
By the configuration domain name mapping, just can distribution site, can pass through the surfing Internet with cell phone function after the website issue, browse the website of oneself.
Describedly collecting necessary resource content, is with resources such as picture, the tinkle of bells, literal, books, sorts out and stores according to resource content;
Described module is divided into two kinds, the one, the information class module, can be packaged into different modules respectively to above-mentioned resource, as the picture category resource is packed, can pack out " the scenery is beautiful schemes ", " beauty is online ", " cartoon animation " etc. respectively, can pack out respectively as " Hong Kong and Taiwan songster ", " children's song ", " revolutionary song " or the like the tinkle of bells class, another kind of module is a dynamic interaction pattern piece, self-defined its required attribute, be configured to own needed module fully, simultaneously can name different titles, product picks up to build conveniently and calls.These dynamic interaction pattern pieces comprise as chat, forum, blog, test question and answer, friend-making, address list, collection etc.
When collecting resource content, also collect dynamic interaction pattern piece, put out these dynamic interaction pattern pieces in order and unify operating process, define required attribute in these dynamic interaction pattern pieces, carry out self-defined preparing for next step dynamic interaction pattern piece.
After arch has been built up resource and module, in building the operation interface of website,, just be easy to build the website of oneself by increasing the method for row and subordinate's page or module.
Building website is utilization XML technology, defines the WAP website that a kind of XML form is deposited automatic generation.Be convenient to like this WAP website is converted to any protocol form, to adapt to the standard of different operators, with different wind network consensus standards.
Distribution site, be at first to define an abstract format conversion interface (Iconverter), each format conversion assembly is come from this interface inheritance, call different format conversion assemblies by switching controller (ChangeControl), is sites conversion the XML form that the format conversion assembly is supported, supports the real-time update of format conversion assembly simultaneously.
For building website, the WAP website of parsing XML format at first, the functional module of design WAP website generates the physical arrangement of WAP website then dynamically according to the above-mentioned functions module.
Adopt the notion of " OK " to build to the WAP website, " OK " classified and defined attribute, increase inhomogeneous " OK ", dispose its attribute again, just can finish design.
The classification of row has line of text, subordinate's page line, module row, custom link capable etc., and the attribute of row has preceding mark (little picture), back mark, endomorph (literal).
The notion of line of text is not have the row of link, mark back mark and literal before the definable, and it is more lively to make that line of text shows.
The notion of subordinate's page line is that one's own profession has link, and this link is meant the page to subordinate.Above-mentioned method for designing is followed in the design of subordinate's page equally.
The notion of module row is to call the module that designs, and is equivalent to subordinate's page line, and just this subordinate's content of pages is a self-defining functions of modules.
The notion that custom link is capable is to allow the product personnel carry out custom link, and mark back mark waits attribute before can certainly defining.
Simultaneously, can make full use of resource or interactive module, be applied to the pattern of product integration, in the product that figure bell or information are downloaded, can be by to the friend-making module self-defined, be dissolved into fully in this product, interactive in order to improve this product, improve popularity.Illustrate,, can be customized for the friend-making module " book club ", forum or chat are customized for " literary world meeting " etc. at reading channel.
It is short that the present invention has the WAP of foundation website cycle, and easy to use, adaptability is strong, is easy to characteristics such as maintenance.
Description of drawings
Fig. 1 is the structural representation of WAP engine,
Fig. 2 is for setting up the software flow pattern of WAP website by the WAP engine.
Embodiment
As shown in Figure 1, the WAP engine of the present invention's design comprises editing machine, compiling and maker and database, it is characterized in that this editing machine is based on the editing machine of browser, make full use of browser to DHTML, the support of JavaScript, show as the result of editing environment with user's operation with browser, browser is the INTERNET browser; Data in the database are that the structure of tree type is stored.
Described compiling and maker, it is a utilization XML technology, defines the WAP website that a kind of XML form is deposited automatic generation, maker is converted into the form of expression of each WAP website standard with the description form of XML form, realizes the conversion of XML form to the WAP website.By this XML formatted file, can also generate portable extraordinary static page file (can be used as the DEMO of website) to whole website packing, or conversion html format file makes it directly browse its effect with generic browser (as: IE), also can be converted into XHTML form, WORD formatted file or the like, realization is to multiple standards, different operators' support.
Is what advantage described database whole WAP website to be summed up the data that become a tree (tree has? the mode that can also have other to substitute? as star-like, mixed type), by it being deposited into database with single table recursive mode.
Embodiment, its design philosophy use the WAP engine to construct a WAP website.WAP makes and generates engine, adopts the modularization thinking, according to " resource-module-product " such flow process, by visual, easy assembly operation, just can build the WAP website that adapts to any demand.
The first step; Collect necessary resource content
By collecting necessary resource content, the collection of this resource content is to search for existing site contents by the situation that needs of WAP website, and content corresponding is carried out classification and storage; As resources such as picture, the tinkle of bells, literal, books, carry out classified and stored according to resource content, as be divided into the tinkle of bells, picture, information, books etc. according to resource content, the tinkle of bells can be subdivided into CRBT, music tone ringer, Hong Kong and Taiwan singer, children's song, revolutionary song again, and other content also is classification like this;
Second step; The module that design is necessary
Module is divided into two kinds, the one, the information class module, can be packaged into different modules respectively to above-mentioned resource, as the picture category resource is packed, can pack out " the scenery is beautiful schemes ", " beauty is online ", " cartoon animation " etc. respectively, can pack out respectively as " Hong Kong and Taiwan songster ", " children's song ", " revolutionary song " or the like the tinkle of bells class, another kind of module is a dynamic interaction pattern piece, self-defined its required attribute, be configured to own needed module fully, simultaneously can name different titles, product is built conveniently and is called.These dynamic interaction modules comprise as chat, forum, blog, test question and answer, friend-making, address list, collection etc.
The 3rd step; Build product
After having put up resource and module, in building the operation interface of product,, just be easy to build the product of oneself by increasing the method for row and subordinate's page or module.
To the WAP website, adopt the notion of " OK " to build product, " OK " classified and defined attribute, increase inhomogeneous " OK ", dispose its attribute again, just can finish design.
The classification of row has line of text, subordinate's page line, module row, custom link capable etc., and the attribute of row has preceding mark (little picture), back mark, endomorph (literal).
The notion of line of text is not have the row of link, mark back mark and literal before the definable, and it is more lively to make that line of text shows.
The notion of subordinate's page line is that one's own profession has link, and this link is meant the page to subordinate.Above-mentioned method for designing is followed in the design of subordinate's page equally.
The notion of module row is to call the module that designs, and is equivalent to subordinate's page line, and just this subordinate's content of pages is a self-defining functions of modules.
The notion that custom link is capable is to allow the product personnel carry out custom link, and mark back mark waits attribute before can certainly defining.
Simultaneously, can make full use of resource or interactive module, be applied to the pattern of product integration, in the product that figure bell or information are downloaded, can be by to the friend-making module self-defined, be dissolved into fully in this product, interactive in order to improve this product, improve popularity.Illustrate,, can be customized for the friend-making module " book club ", forum or chat are customized for " literary world meeting " etc. at reading channel,
The 4th step; Release product
By the configuration domain name mapping, just can release product, by the surfing Internet with cell phone function, just can browse the product of oneself.