CN111538934A - Web Service server, website construction method and information interaction method - Google Patents

Web Service server, website construction method and information interaction method Download PDF

Info

Publication number
CN111538934A
CN111538934A CN202010352733.7A CN202010352733A CN111538934A CN 111538934 A CN111538934 A CN 111538934A CN 202010352733 A CN202010352733 A CN 202010352733A CN 111538934 A CN111538934 A CN 111538934A
Authority
CN
China
Prior art keywords
web service
website
service server
server
access
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
CN202010352733.7A
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.)
Zhejiang Lianxin Technology Co ltd
Original Assignee
Zhejiang Lianxin Technology Co 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 Zhejiang Lianxin Technology Co ltd filed Critical Zhejiang Lianxin Technology Co ltd
Priority to CN202010352733.7A priority Critical patent/CN111538934A/en
Publication of CN111538934A publication Critical patent/CN111538934A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A Web Service server, a website construction method and an information interaction method are provided. A Web Service server, comprising: a storage unit for providing relational database based storage; a registration unit for providing registration of a website; a role creating unit for creating roles; the access authority control unit is used for distributing access control rules for the created roles; and the service interface is used for providing the access of the browser and the interaction of information by applying the AJAX technology. The embodiment of the invention is utilized to deploy the website, the safety like the traditional website can be realized, and the deployment cost is extremely low by adopting the mode of the invention.

Description

Web Service server, website construction method and information interaction method
Technical Field
The invention relates to the technical field of internet, in particular to a Web Service server, a website construction method and an information interaction method.
Background
In a conventional Browser/Server (Browser/Server) architecture, a three-tier architecture is included. The first layer is a browser, the second layer is a server-side code layer represented by PHP/Perl/Jav/AASP, and the third layer is a data storage layer represented by database software and a third-party cloud computing storage platform.
More or less interactive websites of the prior art have code running on the server side of the website itself.
Fig. 1 shows an example of a conventional web1.0 technique. As shown in FIG. 1, the website owner server includes a database, a public gateway interface, and a web service unit. The client has a browser such as Internet Explorer, Firefox, Opera, Safari, etc., and a Perl, Python, Ruby, C, etc. type program. When a client sends a Web request, a database in a website server interacts with a public gateway interface and sends js or HTML and other types of data to the client through a webpage service unit, so that the response to the client request is completed. And after the client side obtains the returned data, the display on the browser is realized in the corresponding application environments of Perl, Python, Ruby, C and the like.
Web2.0, a generic term for a new class of Internet applications relative to Web1.0, is a revolution from core content to external applications. The development of Web1.0 to Web2.0 Internet mode with richer content, stronger contact and stronger tool has become a new development trend of the Internet from html webpage mode browsed by a web browser. The transition from Web1.0 to Web2.0, specifically, the mode is the development from simple 'reading' to 'writing' and 'co-construction'; advance in creating internet information actively by passively receiving internet information! From the basic constitution unit, the development is from 'web page' to 'published/recorded information'; from the tool, the content development from an Internet browser to various browsers, rss readers and the like is realized; in the operation mechanism, the client server is converted into the Web Services; the author develops from professionals such as programmers to all common users; the application is developed from primary 'audition' application to comprehensive mass application. Simply speaking, Web2.0 is a new generation mode of the Internet, which is represented by websites such as Flickr, Craigsist, Linkedin, Tribes, Ryze, Friendster, Del.icio.us, 43Things.com and the like, and is realized by taking applications such as Blog, TAG, SNS, RSS, wiki and the like as cores according to new theories and technologies such as six-degree separation, xml, ajax and the like. Fig. 2 shows an example of a conventional web2.0 technique.
In the conventional internet technology represented by the above web1.0 and web2.0, the content of the website is relatively bloated, and for example, the deployment of a database system, program operating environments such as PHP/Perl/Java and the like on a server is relatively high, so that the deployment cost is relatively high, and the deployment and maintenance are difficult.
Disclosure of Invention
The embodiment of the invention aims to provide a Web Service server, a website construction method and an information interaction method, so as to reduce the deployment cost of a website and further reduce the deployment difficulty and the maintenance difficulty.
To solve the above technical problem, an embodiment of the present invention provides a Web Service server and an information interaction method, which are implemented as follows:
a Web Service server, comprising:
a storage unit for providing relational database based storage;
a registration unit for providing registration of a website;
a role creating unit for creating roles;
the access authority control unit is used for distributing access control rules for the created roles;
and the service interface is used for providing the access of the browser and the interaction of information by applying the AJAX technology.
Preferably, the ACL rules comprise two tuples, the first tuple being an HTTP method and the second tuple being a URL pattern.
Preferably, in the Web Service server, the Web Service server further includes a customization unit, configured to provide customization for the Web Service itself.
Preferably, in the Web Service server, the Web Service is programmable and is used for modifying the WebService itself.
Preferably, the Web Service server also provides a model, Feed, Action application.
A website building method, comprising:
registering an account on a general Web Service server through Web Service, using and expanding the existing interface, establishing an access role for access control, and establishing a storage data structure and query, thereby defining all functional Web Service programmable interfaces of a website;
writing the whole website application of the user by using a pure JavaScript language, and accessing a web service interface preset in the step 1 aiming at the website (a server of a station leader) by using cross-domain AJAX in the JavaScript;
and deploying the website formed by the static files.
Preferably, in the method, the deploying comprises:
and copying the static file to an operating system desktop to be used as a desktop application.
An information interaction method comprises the following steps:
the Web Service server receives the sent registration request, provides roles for building, a storage tree structure for building and query, and defines Web Service programmable interfaces of all functions of the website;
and the Web Service server responds to the access of the website through the cross-domain AJAX by using a Web Service interface.
The technical scheme provided by the embodiment of the invention is used for deploying the website, so that the security like the traditional website can be realized, and the deployment cost is extremely low by adopting the mode of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a schematic diagram of a prior art implementation of Web1.0;
FIG. 2 is a schematic diagram of a prior art implementation of Web2.0;
FIG. 3 is a schematic structural diagram of a Web Service server according to an embodiment of the present invention;
FIG. 4 is a flowchart of a website building method according to an embodiment of the present invention;
FIG. 5 is a flowchart of an information interaction method according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a Web Service server, a website construction method and an information interaction method.
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 3 shows an embodiment of a Web Service server according to the present invention, and as shown in fig. 3, the embodiment includes:
a storage unit for providing relational database based storage;
a registration unit for providing registration of a website;
a role creating unit for creating roles;
an Access right control unit, configured to assign an Access control rule (ACL) to the created role;
and the service interface is used for providing the access of the browser and the interaction of information by applying the AJAX technology.
Where the ACL rules include a binary set, the first element is an HTTP method and the second element is a URL pattern. Any interface in the whole Web Service can be defined by applying the method, such as a role distribution interface and a role access interface, because the interface is defined by the HTTP method and the URL mode.
A conventional client downloads static files, such as html files, js files, css files, etc., from a website through a browser, and the browser on the client can run the downloaded static files, thereby opening pages of the website. WebService is a technology and protocol capable of realizing remote data interaction, and communicates through HTML. The software communication method realizes communication between software individuals realized by different development languages and development technologies, namely, software developed by c +/vb/. net/java for example, can carry out free data information interaction as long as the webService protocol is met.
In the embodiment of the invention, due to the existence of the Web Service server, all the contents written by JavaScript or any other languages in the Internet can run in a browser or other places.
In addition, the embodiment of the Web Service server of the invention also comprises a customizing unit which is used for providing the customization of the Webservice.
Unlike the prior art, the Web Service of the present invention can support entire applications, and not just one application, but many applications. This is because Web services are customizable (or otherwise programmable). According to actual needs, for example, the station leader can modify the Web Service itself through the Web Service, so that the Web Service can be changed (according to needs) without the need of a Provider (Provider) of the Web Service to participate in the modification. Such as the role of administrator (admin) used by the captain to customize the server to their own needs.
As a fixed application, for example, an html file can be placed on the desktop of the client, and the user double-clicks on the html file, and the website runs.
The Web Service also comprises the following contents:
the model, here, is similar to a relational model, but it may be distributed like cloud computing. This API, for example for View (View), provides a SQL-like language. The SQL-like language herein differs from conventional SQL in that variables, such as $ first variables, can be followed in such SQL-like language, such as the following statements:
select$*from table;
such variables may map to parameters of the URL, such as the HTTP path.
View can be embedded into a template when being called to generate a real query.
In a word, View can use a structured query language with parameters, so as to obtain a brand-new WebService server structure.
Feed-View based. View is a parameterized query, returning a result set.
Action-a sequence of commands, each equivalent to an HTTP Action. Scattered WebService interfaces can be written into a list, so that an abstract unit similar to batch processing is formed. Because the user may execute a group of operations separately, the order of the operations may be exchanged, and consistency may be broken, so the Action may encapsulate the group of operations of the user as a whole, and may have arguments, which may be automatically mapped to URL parameters when the Action calls, as in the previous View. When access rule control is carried out, one command may not be endowed with an anonymous role, but the whole Action is endowed with a certain role, so that the safety is ensured.
For example: one application of Action, the BBS, supports new user registration. The registration Action is packaged as an Action. (mapping users of the BBS to roles in Web Service). The first command may be to create a role, the second command may be to set attributes (mailbox, age, name, etc.), the third command, and the fourth command may be to assign access rules (ACL rules).
How to confirm that this Action is legitimate? Here, the attribute may be verified through email verification. After the verification is successful, the Action is executed. Therefore, the security like the traditional website can be realized, and the deployment cost is extremely low by adopting the method of the invention.
Then, the code picture is verified, the API and the third mode of role login are password login and anonymous login. The safety is very high. A solution is provided for a web site that,
deployment costs are extremely inexpensive. The architecture has separated application and background, and the deployment and development cost of the down-side station leader of the architecture is quite low, and the architecture can be generated according to a template.
The web site (both static files) can be easily modified by the web master and the user. The client can be freely customized (DIY). The display style of the website is changed without affecting the safety, and the website can be redistributed.
Conventional Web sites may offer some Web services, some programmable databases, but these are HTML-dependent.
Under the framework of the invention, the user can abandon the server by depending on Web Service, thereby further realizing application opening.
In the invention, the whole website only consists of a group of static files of js, html, css, png and the like. The web site is run directly in the end user's web browser. While dynamic data read and write and other interactive functions are all obtained from third party Web services via cross-domain AJAX requests,
the invention relates to a website architecture mode which takes a Web Service platform with the general purpose of an extensible programmable third party as the center and pure client languages such as JavaScript and the like and cross-domain AJAX as means. AJAX is called Asynchronous JavaScript and XML (Asynchronous JavaScript and XML) and refers to a webpage development technology for creating interactive webpage applications. Web application interactions such as Flickr, Backpack and Google have had a substantial leap in this regard. This term stems from describing the conversion from a Web-based application to a data-based application. In data-based applications, user-demanded data, such as contact lists, can be retrieved from a server that is independent of the actual Web page and can be dynamically written into the Web page, coloring slow Web application experiences like desktop applications. While most developers have used XMLHttp or Iframe to load data in the past, it has only now been seen that traditional developers and companies have begun to employ these techniques.
An example of a station building process may include, as shown in fig. 4:
s401: the Web Service manager registers an account on a general Web Service server through the Web Service, uses and expands the existing interface, establishes an access role for access control, and establishes a storage data structure and query, thereby defining all functional Web Service programmable interfaces of the website.
S402: the WebService server writes the whole website application of the website leader by using a pure JavaScript language, and accesses a WebService interface (on the WebService server) preset in S401 for the website (the server of the website leader) by using a cross-domain AJAX in the JavaScript.
S403: and deploying the website consisting of the static files of js, html and the like. The deployment method comprises the following steps:
copying these files to the operating system desktop for use as a desktop application (double-click open directly from the web browser); these files are copied to any place where other network users can download the files. Such as very inexpensive web site rental space that only provides for static file downloads. And the self-installation of database software or PHP/Java/Perl/ASP and other server-side code execution environments is not needed.
Based on the above station building process, the embodiment of the information interaction method of the present invention can be shown in fig. 5, and includes the following processes:
s501: the Web Service server receives the sent registration request, provides the role establishment, the storage tree structure establishment and the query, and defines the Web Service programmable interface with all functions of the website.
S502: and the Web Service server responds to the access of the website through the cross-domain AJAX by using a Web Service interface.
In the invention, the whole website only consists of a group of static files of js, html, css, png and the like. The web site is run directly in the end user's web browser. Dynamic data reading and writing and other interactive functions are all obtained from a third-party Web Service through cross-domain AJAX requests, so that a complete website can be completely run in a Web browser, even the full-function interactive website is only composed of a group of static files such as html, js, css, png and the like, and the website can be deployed anywhere and comprises graphical desktops of Windows and Linux.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
While the embodiments of the present invention have been described by way of example, those skilled in the art will appreciate that there are numerous variations and permutations of the present invention without departing from the spirit of the invention, and it is intended that the appended claims cover such variations and modifications as fall within the true spirit of the invention.

Claims (8)

1. A Web Service server, comprising:
a storage unit for providing relational database based storage;
a registration unit for providing registration of a website;
a role creating unit for creating roles;
the access authority control unit is used for distributing access control rules for the created roles;
and the service interface is used for providing the access of the browser and the interaction of information by applying the AJAX technology.
2. The Web Service server of claim 1, wherein the ACL rules comprise a binary set, the first element being an HTTP method and the second element being a URL pattern.
3. The Web Service server of claim 1, wherein the Web Service server further comprises a customization unit for providing customization to the Web Service itself.
4. The Web Service server of claim 1, wherein the Web Service is programmable to modify the Web Service itself.
5. The Web Service server of claim 1, further providing a model, Feed, Action application.
6. A website building method, comprising:
registering an account on a general Web Service server through Web Service, using and expanding the existing interface, establishing an access role for access control, and establishing a storage data structure and query, thereby defining all functional Web Service programmable interfaces of a website;
writing the whole website application of the user by using a pure JavaScript language, and accessing a web service interface preset in the step 1 aiming at the website (a server of a station leader) by using cross-domain AJAX in the JavaScript;
and deploying the website formed by the static files.
7. The method of claim 6, wherein the deploying comprises:
and copying the static file to an operating system desktop to be used as a desktop application.
8. An information interaction method, comprising:
the Web Service server receives the sent registration request, provides roles for building, a storage tree structure for building and query, and defines Web Service programmable interfaces of all functions of the website;
and the Web Service server responds to the access of the website through the cross-domain AJAX by using a Web Service interface.
CN202010352733.7A 2020-04-29 2020-04-29 Web Service server, website construction method and information interaction method Pending CN111538934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010352733.7A CN111538934A (en) 2020-04-29 2020-04-29 Web Service server, website construction method and information interaction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010352733.7A CN111538934A (en) 2020-04-29 2020-04-29 Web Service server, website construction method and information interaction method

Publications (1)

Publication Number Publication Date
CN111538934A true CN111538934A (en) 2020-08-14

Family

ID=71978904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010352733.7A Pending CN111538934A (en) 2020-04-29 2020-04-29 Web Service server, website construction method and information interaction method

Country Status (1)

Country Link
CN (1) CN111538934A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902492A (en) * 2009-05-27 2010-12-01 阿里巴巴集团控股有限公司 Web Service server, website constructing method and information exchange method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902492A (en) * 2009-05-27 2010-12-01 阿里巴巴集团控股有限公司 Web Service server, website constructing method and information exchange method

Similar Documents

Publication Publication Date Title
EP3593254B1 (en) Editing a database during preview of a virtual web page
US11537272B2 (en) Content management system extensions
Murugesan Web application development: Challenges and the role of web engineering
US8966446B1 (en) Systems and methods of live experimentation on content provided by a web site
US20110265010A1 (en) System and method for generation of website display and interface
CN103838558B (en) Website build a station system and method, access website method and webpage adaptation system
JP2009531793A (en) System and method for converting web community and web application data
US20200226615A1 (en) Customer service representative dashboard application
US10417317B2 (en) Web page profiler
US11640307B2 (en) Process initiation
Aguilar SignalR Programming in Microsoft ASP. NET
US20190108598A1 (en) Systems, methods, and apparatuses for creating and reusing communities within a cloud based computing environment
CN110213105A (en) It is a kind of cross-platform micro- using creation method
US20160269446A1 (en) Template representation of security resources
CN101902492A (en) Web Service server, website constructing method and information exchange method
CN111538934A (en) Web Service server, website construction method and information interaction method
US11449186B2 (en) System and method for optimized generation of a single page application for multi-page applications
Fain et al. Enterprise web development: Building HTML5 applications: from desktop to mobile
Kim et al. Real-time processing of spatial attribute information for mobile web based on standard web framework and HTML5
Aladdin et al. The Scientific Comparison between Web-Based Site and Web-Builder (Open Source) Project: Functionalities, Usability, Design and Security
Rachovski et al. Conceptual model of an application for automated generation of webpage mobile versions
Ragupathi Learning ASP. NET Core MVC Programming
Yudin et al. Starting with Django
Gumus et al. ASP. NET Core 2 Fundamentals: Build cross-platform apps and dynamic web services with this server-side web application framework
Sinha et al. Working with APIs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200814

RJ01 Rejection of invention patent application after publication