CN101902492A - Web Service server, website constructing method and information exchange method - Google Patents

Web Service server, website constructing method and information exchange method Download PDF

Info

Publication number
CN101902492A
CN101902492A CN2009101452024A CN200910145202A CN101902492A CN 101902492 A CN101902492 A CN 101902492A CN 2009101452024 A CN2009101452024 A CN 2009101452024A CN 200910145202 A CN200910145202 A CN 200910145202A CN 101902492 A CN101902492 A CN 101902492A
Authority
CN
China
Prior art keywords
web service
website
service server
role
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2009101452024A
Other languages
Chinese (zh)
Inventor
章亦春
何伟平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN2009101452024A priority Critical patent/CN101902492A/en
Publication of CN101902492A publication Critical patent/CN101902492A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to Web Service server, a website constructing method and an information interacting method. The Web Service server comprises a storage unit, a registering unit, a role creating unit, an access authority control unit and a service interface, wherein the storage unit is used for storing a relational database; the registering unit is used for registering websites; the role creating unit is used for creating roles; the access authority control unit is used for distributing the access authority control rules to the created roles; and the service interface is used for providing the browser access and information interaction by an AJAX technology. By utilizing the embodiment to deploy the websites, the invention is safe as the traditional website and has low deployment cost.

Description

Web Service server, Web Hosting method and information interacting method
Technical field
The present invention relates to Internet technical field, particularly a kind of Web Service server, Web Hosting method and information interacting method.
Background technology
In the framework of traditional browser/server (Browser/Server), comprise three layers structure.Ground floor is a browser, and second clothes are to be the server-side code layer of representative with PHP/Perl/Jav/AASP, and the 3rd is exactly data storage layer, is representative with database software and third party's cloud computing storage platform.
The interactive site of prior art more or less all has code to operate in the server end of website self.
Fig. 1 shows an example of traditional Web1.0 technology.As shown in Figure 1, comprise database in the website owner server, CGI, web service unit.Client then has browsers such as Internet Explorer, Firefox, Opera, Safari, and the program of Perl, Python, types such as Ruby, C.When client is sent Web when request, the database in the Website server and CGI are sent to client with the data of types such as js or HTML alternately and by the web service unit, thereby finish the response to client-requested.After the data that client obtains returning, in the applied environment of Perl, the Python of correspondence, types such as Ruby, C, realize representing on the browser.
Web2.0 is the general designation of the new class internet, applications of relative Web1.0, is the once revolution from the core content to the applications.Become the new development trend in the Internet by the development that web browser is browsed the Web2.0 the Internet model that html webpage pattern is abundanter to content, contiguity is stronger, instrument is stronger merely by Web1.0.Web1.0 specifically, is that simple " reading " is to " writing ", " the common construction " development from pattern to the transformation of Web2.0; Stride forward to initiatively creating internet information by receiving internet information passively! From the basic comprising unit, be to develop to " information of delivering/writing down " by " webpage "; From instrument, be to develop to contents such as all kinds of browsers, rss readers by Internet-browser; On the operating mechanism, change to " Web Services " by " ClientServer "; The author is developed to whole domestic consumers by professional persons such as programmers; Application by elementary " funny " in the application develops to comprehensive extensive application.Briefly, Web2.0 is to be representative with websites such as Flickr, Craigslist, Linkedin, Tribes, Ryze, Friendster, Del.icio.us, 43Things.com, be applied as core with Blog, TAG, SNS, RSS, wiki etc., the Internet a new generation pattern that realizes according to new theory such as six degree separations, xml, ajax and technology.Fig. 2 shows an example of traditional Web2.0 technology.
With top Web1.0, Web2.0 is traditional Internet technology of representative, and the content of its website is comparatively too fat to move, and as the server deploy data base set PHP/Perl/Java supervisor running environment of unifying, lower deployment cost is higher, causes the difficulty of disposing and safeguarding.
Summary of the invention
The purpose of the embodiment of the invention provides a kind of Web Service server, Web Hosting method and information interacting method, to reduce the lower deployment cost of website, disposes difficulty and maintenance difficulties thereby reduce.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of Web Service server and information interacting method to be achieved in that
A kind of Web Service server comprises:
Memory cell is used to provide the storage based on relevant database;
Registering unit is used to provide the registration of website;
Role's creating unit is used to create the role;
The access rights control unit is used to the role assignments access control rule of establishment;
Service interface, being used to use the AJAX technology provides the mutual of the visit of browser and information.
Preferably, described acl rule comprises two tuples, and first yuan is the HTTP method, and second yuan is the URL pattern.
Preferably, in the described Web Service server, described Web Service server also comprises customization units, is used to provide the customization to Web Service itself.
Preferably, in the described Web Service server, described Web Service is able to programme, is used to revise Web Service itself.
Preferably, described Web Service server also supplies a model, Feed, Action use.
A kind of Web Hosting method comprises:
By Web service login account and use and expand existing interface on common Web Service server, set up the access role control that conducts interviews, set up store data structure and inquiry, thereby defined the Web Service programmable interface of all functions of own website;
Use the whole website of pure JavaScript language compilation oneself to use, the web service interface that in JavaScript, utilizes cross-domain AJAX visit in step 1, to preset at our station (head of a station's server);
The website that deployment is made of static file.
Preferably, in the described method, described deployment comprises:
Described static file is copied to operating system desktop to be used as desktop application.
A kind of information interacting method comprises:
Web Service server receives the register requirement of sending, and provides and sets up the role, sets up storage tree structure and inquiry, the Web Service programmable interface of definition website all functions;
Web Service server by utilizing Web Service interface is replied the visit of website by cross-domain AJAX.
Dispose the website by the technical scheme that the above embodiment of the invention provides, can realize fail safe, and adopt mode lower deployment cost of the present invention extremely low as the conventional web sites.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, the accompanying drawing that describes below only is some embodiment that put down in writing among the application, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the realization schematic diagram of prior art Web1.0;
Fig. 2 is the realization schematic diagram of prior art Web2.0;
Fig. 3 is the structural representation of Web Service server implementation example of the present invention;
Fig. 4 is the flow chart of Web Hosting method embodiment of the present invention;
Fig. 5 is the flow chart of information interacting method embodiment of the present invention.
Embodiment
The embodiment of the invention provides a kind of Web Service server, Web Hosting method and information interacting method.
In order to make those skilled in the art person understand technical scheme among the application better, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills should belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 3 shows the embodiment of the present invention's one Web Service server, as shown in Figure 3, comprising:
Memory cell is used to provide the storage based on relevant database;
Registering unit is used to provide the registration of website;
Role's creating unit is used to create the role;
The access rights control unit, be used to establishment the role assignments access control rule (Access ControlList, ACL);
Service interface, being used to use the AJAX technology provides the mutual of the visit of browser and information.
Wherein, acl rule comprises two tuples, and first yuan is the HTTP method, and second yuan is the URL pattern.Use this mode and can limit any one interface among the whole Web Service, as the role assignments interface, the role access interface is because interface itself is limited by HTTP method and URL pattern.
Traditional client is to download static file from browser from the website, and as .html file .js file .css file etc., and then the browser on the client can move the static file of these downloads, thereby opens the page of website.Web Service is the technology and the agreement that can realize that teledata is mutual, carries out communication by HTML.It has realized the communication between the software individuality that different development languages and development technique realize, that is to say, for example by the software of c+/vb/.net/java exploitation, can carry out that data message is mutual freely as long as satisfied the agreement of webService.
In the embodiment of the invention, because the existence of above-mentioned Web Service server, the content of being write by JavaScript or any other Languages in the middle of every the Internet can be run in browser or other place.
In addition, Web Service server implementation example of the present invention also comprises customization units, is used to provide the customization to Web Service itself.
Unlike the prior art, Web Service of the present invention can support whole application, and is not a kind of application, but a lot of the application.This is because Web Service customizable (programmable in other words conj.or perhaps).According to actual needs, can revise Web Service itself by Web Service as the head of a station, thereby Web Service can change (as required), and do not need the provider (Provider) of Web Service to participate in revising.As head of a station use and management person (admin) role the needs of server according to oneself are customized.
As fixation application, for example the html file can be placed on the desktop of client, then the user double-clicks this html file, and the website just runs.
Among the Web Service, also comprise following content:
Model, model class herein is similar to the model of relationship type, that works distributes but it is as cloud computing.For example, provide SQL-like language for this API of view (View).The SQL-like language here, with the difference of traditional SQL be, can follow variable in such SQL-like language, as the variable of $ beginning, such as following statement:
select$*from?table;
Such variable can be mapped to the parameter of URL, such as the HTTP path.
View can be embedded into template when calling, generate a real inquiry.
In a word, View can use the SQL of band parameter, thereby obtains brand-new WebService server architecture.
Feed---based on View.View is parameterized inquiry, the return results collection.
Action---command sequence, each order are equivalent to the HTTP action.Can be write scattered WebService interface as a tabulation, thereby be formed the abstraction unit of a similar batch processing.Because the user may separately carry out one group of operation, then may be with the order transposing of operation, and the destruction consistency, therefore, Action can be as a whole with one group of user operation encapsulation, and, can in front of the View of face the same, can be with parameter, the URL parameter when this parameter can be mapped to Action automatically and calls.When conducting interviews rule control, may not can all give anonymous role, but whole Action is given to certain role, thereby guarantee fail safe an order.
For example: an application---the BBS of Action, support new user's registration.Registration action is encapsulated as an Action.(user of BBS is mapped to role in the Web Service).First command can be to create a role, and second command can be set a property (mailbox, age, a name etc.), and the 3rd order, the 4th order can be assigns access rule (acl rules).
Do you how to confirm that this Action is legal? here, can verify the checking attribute by e-mail.After being proved to be successful, Action just can carry out.Therefore, can realize fail safe, and adopt mode lower deployment cost of the present invention extremely low as the conventional web sites.
Then, the third mode that identifying code picture, this API, role land, preceding two kinds is that password lands, anonymity is landed.Fail safe is very high.For a website provides solution,
Lower deployment cost is very cheap.Use the framework that separates with the backstage, and the head of a station's deployment and development cost is quite low under such framework, can generate according to template.
The head of a station and user can revise website (website all is a little static files) easily.Client can freely customize (DIY).Under the prerequisite that does not influence fail safe, change the display styles of website, and can issue again.
Traditional website can provide some Web Service, provide some programmable data storehouses, but these all depends on HTML.
Under framework of the present invention, depend on Web Service, the user can abandon server, has further realized using open.
In the present invention, whole website all is only to be by one group of .js .html, and .css, static files such as .png are formed.The website is to run directly in end user's the web browser.And dynamic reading and writing data and other Interactive functions all obtain from third party Web Service by cross-domain AJAX request,
The present invention is to be the center with the Web Service platform that can expand the general purpose of programmable third party, is the web site architecture mode of means with pure client language such as JavaScript and cross-domain AJAX.The AJAX full name is " Asynchronous JavaScript and XML " (asynchronous JavaScript and XML), is meant a kind of webpage development technology that interaction network page is used of creating.What Web used is mutual as Flickr, and Backpack and Google have had qualitative leap in this respect.This term is derived from description and is applied to conversion based on the application of data from the Web based on webpage.In the application based on data, the data of user's request such as contacts list can be obtained from the service end that is independent of real web pages and can dynamically be write the webpage, and giving slowly, Web uses painted the making it as desktop application of experience.Though most of developer used XMLHttp in the past or use Iframe to come loading data, only saw just till now that traditional developer and company begin to adopt these technology.
An example of the process of building a station can comprise as Fig. 4:
S401: the head of a station is by Web service login account and use and expand existing interface on common Web Service server, set up the access role control that conducts interviews, set up store data structure and inquiry, thereby defined the Web Service programmable interface of all functions of own website.
S402: the head of a station uses the whole website of pure JavaScript language compilation oneself to use, the webservice interface at our station (head of a station's server) (on Web Service server) that utilizes cross-domain AJAX visit to preset in S401 in JavaScript.
S403: by .js, the website that static files such as .html constitute is disposed with this.Dispositions method has:
These file copy are used (directly double-click from the web browser and open) to operating system desktop as desktop application; These file copy are arrived any place for other network user's file in download.Rent the space such as the very cheap website that only provides static file to download.Server-side code execution environments such as installation data library software or PHP/Java/Perl/ASP voluntarily.
Based on the above-mentioned process of building a station, information interacting method embodiment of the present invention can comprise following flow process as shown in Figure 5:
S501:Web Service server receives the register requirement of sending, and provides and sets up the role, sets up storage tree structure and inquiry, the Web Service programmable interface of definition website all functions.
S502:Web Service server by utilizing Web Service interface is replied the visit of website by cross-domain AJAX.
In the present invention, whole website all is only to be by one group of .js .html, and .css, static files such as .png are formed.The website is to run directly in end user's the web browser.And dynamic reading and writing data and other Interactive functions all obtain from third party Web Service by cross-domain AJAX request, so a complete website can be run fully in the web browser, even Full Featured interactive site is also only by one group of .html, .js, .css, .png wait static file to constitute, the website can be deployed in Anywhere, comprises the figure desktop of Windows and Linux.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is difference with other embodiment.Especially, for system embodiment, because it is substantially similar in appearance to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
The present invention can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, comprise distributed computing environment (DCE) of above any system or equipment or the like.
The present invention can describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in distributed computing environment (DCE), put into practice the present invention, in these distributed computing environment (DCE), by by communication network connected teleprocessing equipment execute the task.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
Though described the embodiment of the invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.

Claims (8)

1. a Web Service server is characterized in that, comprising:
Memory cell is used to provide the storage based on relevant database;
Registering unit is used to provide the registration of website;
Role's creating unit is used to create the role;
The access rights control unit is used to the role assignments access control rule of establishment;
Service interface, being used to use the AJAX technology provides the mutual of the visit of browser and information.
2. Web Service server as claimed in claim 1 is characterized in that described acl rule comprises two tuples, and first yuan is the HTTP method, and second yuan is the URL pattern.
3. Web Service server as claimed in claim 1 is characterized in that, described Web Service server also comprises customization units, is used to provide the customization to Web Service itself.
4. Web Service server as claimed in claim 1 is characterized in that described Web Service is able to programme, is used to revise Web Service itself.
5. Web Service server as claimed in claim 1 is characterized in that, also supplies a model, Feed, Action use.
6. a Web Hosting method is characterized in that, comprising:
By Web service login account and use and expand existing interface on common Web Service server, set up the access role control that conducts interviews, set up store data structure and inquiry, thereby defined the Web Service programmable interface of all functions of own website;
Use the whole website of pure JavaScript language compilation oneself to use, the web service interface that in JavaScript, utilizes cross-domain AJAX visit in step 1, to preset at our station (head of a station's server);
The website that deployment is made of static file.
7. method as claimed in claim 6 is characterized in that, described deployment comprises:
Described static file is copied to operating system desktop to be used as desktop application.
8. an information interacting method is characterized in that, comprising:
Web Service server receives the register requirement of sending, and provides and sets up the role, sets up storage tree structure and inquiry, the Web Service programmable interface of definition website all functions;
Web Service server by utilizing Web Service interface is replied the visit of website by cross-domain AJAX.
CN2009101452024A 2009-05-27 2009-05-27 Web Service server, website constructing method and information exchange method Pending CN101902492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101452024A CN101902492A (en) 2009-05-27 2009-05-27 Web Service server, website constructing method and information exchange method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101452024A CN101902492A (en) 2009-05-27 2009-05-27 Web Service server, website constructing method and information exchange method

Publications (1)

Publication Number Publication Date
CN101902492A true CN101902492A (en) 2010-12-01

Family

ID=43227692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101452024A Pending CN101902492A (en) 2009-05-27 2009-05-27 Web Service server, website constructing method and information exchange method

Country Status (1)

Country Link
CN (1) CN101902492A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129388A (en) * 2011-03-04 2011-07-20 浪潮(北京)电子信息产业有限公司 Cloud computing system
CN102629348A (en) * 2012-03-20 2012-08-08 浪潮电子信息产业股份有限公司 Equipment management method based on cloud computation
CN102708316A (en) * 2012-04-19 2012-10-03 北京华胜天成科技股份有限公司 Method for isolating data in multi-tenant architecture
CN107315784A (en) * 2017-06-07 2017-11-03 北京奇艺世纪科技有限公司 A kind of data access method and browser
CN107958060A (en) * 2017-12-01 2018-04-24 广州奥梵信息科技有限公司 A kind of website maintenance system based on internet
CN111538934A (en) * 2020-04-29 2020-08-14 浙江联欣科技有限公司 Web Service server, website construction method and information interaction method
CN113259322A (en) * 2021-04-19 2021-08-13 山东英信计算机技术有限公司 Method, system and medium for preventing Web service abnormity

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752928A (en) * 2005-08-25 2006-03-29 复旦大学 Real time dynamic synthesis method of web services
CN101114977A (en) * 2007-08-29 2008-01-30 浙江大学 Open type medical information service system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752928A (en) * 2005-08-25 2006-03-29 复旦大学 Real time dynamic synthesis method of web services
CN101114977A (en) * 2007-08-29 2008-01-30 浙江大学 Open type medical information service system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张明,张建军,于瑞萍: "Ajax技术在Web Serives应用中的安全研究", 《科学技术与工程》 *
郭艺峰,刘万军: "B/S系统的用户权限设计与实现", 《科学技术与工程》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129388A (en) * 2011-03-04 2011-07-20 浪潮(北京)电子信息产业有限公司 Cloud computing system
CN102629348A (en) * 2012-03-20 2012-08-08 浪潮电子信息产业股份有限公司 Equipment management method based on cloud computation
CN102708316A (en) * 2012-04-19 2012-10-03 北京华胜天成科技股份有限公司 Method for isolating data in multi-tenant architecture
CN102708316B (en) * 2012-04-19 2015-04-08 北京华胜天成科技股份有限公司 Method for isolating data in multi-tenant architecture
CN107315784A (en) * 2017-06-07 2017-11-03 北京奇艺世纪科技有限公司 A kind of data access method and browser
CN107315784B (en) * 2017-06-07 2020-01-31 北京奇艺世纪科技有限公司 data access method and browser
CN107958060A (en) * 2017-12-01 2018-04-24 广州奥梵信息科技有限公司 A kind of website maintenance system based on internet
CN111538934A (en) * 2020-04-29 2020-08-14 浙江联欣科技有限公司 Web Service server, website construction method and information interaction method
CN113259322A (en) * 2021-04-19 2021-08-13 山东英信计算机技术有限公司 Method, system and medium for preventing Web service abnormity

Similar Documents

Publication Publication Date Title
US10628132B2 (en) Inversion of control framework for multiple behaviors of a process
CN101902492A (en) Web Service server, website constructing method and information exchange method
CN102934104A (en) Web site implementation by mapping expression evaluation
Ratnayake WordPress web application development
Meijers Hands-On Azure Digital Twins: A practical guide to building distributed IoT solutions
CN103279361A (en) Uniform literature sharing device and method driven by small bookmarks
US20180074674A1 (en) Process initiation
Paz Beginning ASP. NET MVC 4
KR101730070B1 (en) Method for providing webpage in SaaS ENVIRONMENT, Computer program for the same, and Recording medium storing computer program for the same
US20210342130A1 (en) Systems and methods for software application generation and delivery
Gaylord et al. Professional Asp. net 4.5 in C# and VB
Kim et al. Real-time processing of spatial attribute information for mobile web based on standard web framework and HTML5
Rachovski et al. Conceptual model of an application for automated generation of webpage mobile versions
Ragupathi Learning ASP. NET Core MVC Programming
Batra AJAX-Asynchronous Java Script and XML
Drisgill et al. Sharepoint 2013 branding and user interface design
Demiliani Building ERP Solutions with Microsoft Dynamics NAV
Molyneux An open source ILS glossary: version 2
Alamin A social platform for software developers: Using modern web stack MERN
Ramadhanny et al. Development of Website-Based Office Documentation Media Information System
Zehoo Oracle Application Express 4 Recipes
de Oliveira et al. An approach based on model driven engineering to support the development of web of things
Gumus et al. ASP. NET Core 2 Fundamentals: Build cross-platform apps and dynamic web services with this server-side web application framework
Lumba et al. Android-based Library Application Development Case Study: Kalbis Institute Informatics Department
Jakupov Development of a web-based application for automated energy management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1148401

Country of ref document: HK

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101201

REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1148401

Country of ref document: HK