CN105872083A - Method and system supporting server access by different types of clients as well as server - Google Patents
Method and system supporting server access by different types of clients as well as server Download PDFInfo
- Publication number
- CN105872083A CN105872083A CN201610334395.8A CN201610334395A CN105872083A CN 105872083 A CN105872083 A CN 105872083A CN 201610334395 A CN201610334395 A CN 201610334395A CN 105872083 A CN105872083 A CN 105872083A
- Authority
- CN
- China
- Prior art keywords
- client
- data
- server
- general format
- json
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000008569 process Effects 0.000 claims description 23
- 238000013524 data verification Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 claims description 10
- 238000011161 development Methods 0.000 abstract description 10
- 230000003993 interaction Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000013497 data interchange Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 235000006719 Cassia obtusifolia Nutrition 0.000 description 2
- 235000014552 Cassia tora Nutrition 0.000 description 2
- 244000201986 Cassia tora Species 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000007596 consolidation process Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method and a system for supporting server access by different types of clients as well as a server. The method comprises steps as follows: the server analyzes data in general format in the content of the data access requests when receiving data access requests sent by different types of clients through a preset general interface; the data in general format are processed, processed results are converted into data in general format, and the data in general format are returned to the client. Compared with the prior art, compared with the fact that multiple API matched with different types of clients separately need be developed on the server side in the prior art, the method realizes interaction between different types of clients and the general server side of the same server, a small number of participated professional developers are required, the development cycle is short, the efficiency is high, the cost is low, and the extendibility is high.
Description
Technical field
The present invention relates to a kind of method, server and system supporting dissimilar client-access server.
Background technology
At present, different platform is all supported in a lot of application products or software service, in order to improve Consumer's Experience, there are Android version, Ios version, Wp7 version, Web page version, even more there is the version of the different electronic devices such as wearable device, it is user-friendly to the multi-forms such as computer, mobile phone, Ipad, wrist-watch with this and experiences service, and these clients develop the language the most different (such as wechat) used.But, the different client forms of expression, its kernel service is all identical, and the core content that i.e. server end provides is identical.
But the exploitation of server end now is required for distinguishing the type of client, such as client is mobile phone A pp, and corresponding server end is a set of API individually developed for mobile phone;When client is Web page browser, corresponding server end is a set of webpage version program for webpage development.Therefore for different clients, needing to develop different independent API, when API quantity is more, the workload of programmer's exploitation is big, and the time that exploitation expends is longer, costly.How to design the generic server end of a kind of dissimilar client, make polytype client interact with same server end, be personnel's problem demanding prompt solution of the same trade.
Summary of the invention
In view of the above problems, the embodiment of the present invention provides and overcomes the problems referred to above or solve a kind of method, server and system supporting dissimilar client-access server of the problems referred to above at least in part.
As an aspect of the embodiment of the present invention, relating to a kind of method supporting dissimilar client-access server, described method includes:
When described server receives, by the general-purpose interface preset, the data access request that client sends, parse the general format data comprised in described data access request content;Described client includes: Web client, App client and wearable device client;
Described general format data is processed, and result is converted into described general format data, return to described client.
Alternatively, described described general format data is processed, including:
Described general format data is processed, is converted into the instruction of extended formatting, and performs described instruction.
Alternatively, described instruction include following one or more:
Database access directive, data verification instruction and data or logic instruction.
Alternatively, described general-purpose interface is JSON interface, and described data access request is JSON request, and described general format data is JSON formatted data.
Alternatively, described general format data is processed, be converted into the instruction of extended formatting, including:
The JSON formatted data that will comprise in data access request content, is mapped to the JAVA class of described JSON interface pairing and instantiates, according to the instruction of extended formatting described in the data genaration that instantiation obtains.
Alternatively, when described client is Web client, before described server receives, by the general-purpose interface preset, the data access request that client sends, described method also includes: when receiving the web access requests that Web client sends, the HTML html web page pre-saved is returned to Web client;Described html web page is first interface of client request.
As another aspect of the embodiment of the present invention, relate to a kind of server, including:
Parsing module, for when described server receives, by the general-purpose interface preset, the data access request that client sends, parsing the general format data comprised in described data access request content;Described client includes: Web client, App client and wearable device client;
Modular converter, for processing described general format data, and is converted into described general format data by result;
Return module, return to described client for the described general format data being converted into by described modular converter.
Alternatively, described modular converter, specifically for described general format data is processed, it is converted into the instruction of extended formatting, and performs described instruction.
Alternatively, described instruction include following one or more:
Database access directive, data verification instruction and data or logic instruction.
Alternatively, described general-purpose interface is a kind of JSON interface, and described data access request is JSON request, and described general format data is JSON formatted data.
Alternatively, described modular converter, also particularly useful for the JSON formatted data that will comprise in data access request content, it is mapped to the JAVA class of described JSON interface pairing and instantiates, according to the instruction of extended formatting described in the data genaration that instantiation obtains.
Alternatively, described server also includes: delivery module, before described parsing module receives the data access request that client sends, when receiving the web access requests that Web client sends, send the HTML html web page pre-saved to Web client;Described html web page is first interface of client request.
As another aspect of the embodiment of the present invention, relate to a kind of system supporting dissimilar client-access server, including: server and at least one client;
Described server, for when described server receives, by the general-purpose interface preset, the data access request that client sends, parsing the general format data comprised in described data access request content;Described general format data is processed, and result is converted into described general format data, return to described client;
At least one client described, for sending data access request to server, and receives the general format data that server returns, processes described general format data and show at least one client described;At least one client described includes: Web client, App client and wearable device client.
Alternatively, the described general format data of described process also shows at least one client described, including: when described client is Web client, by calling default Javascript file by described general format data, it is converted into content that Web client self needs and shows.
Alternatively, the described general-purpose interface in described server is JSON interface, and described data access request is JSON request, and described general format data is JSON formatted data.
The embodiment of the present invention at least achieves following technique effect:
Method, server and the system of the support dissimilar client-access server that the embodiment of the present invention provides, when server receives, by the general-purpose interface preset, the data access request that Web client, App client or wearable device client send, parse the general format data comprised in described data access request content;And general format data is processed, and result is converted into described general format data, return to described client.The program uses in server side, can receive, by default general-purpose interface, the data access request that different types of client sends;Compared with needing to develop multiple API individually matched at server end for dissimilar client with prior art, the method that the present invention provides achieves and makes polytype client can interact with the generic service end of same server, and the developer of required specialty participates in that number is few, the construction cycle is short, efficiency is high, expense is low and extensibility is higher.
Further, the present invention use the data interchange format JSON interface that general-purpose interface is a kind of lightweight, and data access request be JSON request, wherein general format data is JSON formatted data.Server end uses JSON interface, it is achieved that make polytype client can interact with the generic service end of same server, it is easy to safeguard, and back-level server can select multilingual to develop;And JSON request is prone to read, and JSON formatted data is fairly simple, and transmission occupied bandwidth is little.
Other features and advantages of the present invention will illustrate in the following description, and, partly become apparent from specification, or understand by implementing the present invention.Objectives and other advantages of the present invention can be realized by structure specifically noted in the specification write, claims and accompanying drawing and be obtained.
Below by drawings and Examples, technical scheme is described in further detail.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for specification, is used for together with embodiments of the present invention explaining the present invention, is not intended that limitation of the present invention.In the accompanying drawings:
The network architecture schematic diagram of the method for the support dissimilar client-access server that Fig. 1 provides for the embodiment of the present invention;
The method flow diagram for server side that Fig. 2 provides for the embodiment of the present invention;
The App client that Fig. 3 provides for the embodiment of the present invention and the flow chart of server interaction;
The Web client that Fig. 4 provides for the embodiment of the present invention and the flow chart of server interaction;
The block diagram of the server that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing showing the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and should not limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
The technical scheme that disclosure embodiment provides, with reference to the network architecture schematic diagram shown in Fig. 1, two sides can be related to: different types of client and server, wherein, when server receives, by the general-purpose interface preset, the data access request that Web client, App client or wearable device client send, this data access request is resolved, and the general format data comprised in the content after resolving is processed, and result is converted into described general format data, finally return to client.
With reference to shown in Fig. 2, the method for above-mentioned support dissimilar client-access server is used for server, may comprise steps of S21-S22;
In the step s 21, when described server receives, by the general-purpose interface preset, the data access request that client sends, the general format data comprised in described data access request content is parsed;Described client includes: Web client, App client and wearable device client;
In step S22, described general format data is processed, and result is converted into described general format data, return to described client.
Wherein, the webpage version of Web client i.e. computer end, it may also be said to PC end or Web version, Web client refers to sing on web, is the client software of dynamic page technology, the browser by computer end that namely we generally say.Browser accesses webpage by http request, and after waiting that webpage has loaded, client can send data access request and carry out data interaction with server.
Application (App, Application) client, refers to the third party application of smart mobile phone, also referred to as " Mobile solution " or " cell-phone customer terminal ", such as: the clients such as Android, ios, wp7, pc, and the development language that used of above-mentioned client is the most different.Android Android development language be java, iOS platform development language be C, Microsoft's Windows phone7 development language is C#;Other are C++ etc. such as Saipan symbian system version development language.
Wearable device is such as: intelligent watch, Intelligent bracelet, Google's glasses etc., wearable device client principle is with App client.
At present, the development language of server can be multiple, such as: such as: C/C++, C#, Java, python etc., but needing for different types of client to develop the API matched, the API quantity needing exploitation is many, the manpower of participation, material resources are the most, and the bug(of the unknown undiscovered defects more under covering or problem are referred to as bug) the most.
General-purpose interface in the method for the support dissimilar client-access server that the present embodiment provides, also referred to as general API, achieve and make polytype client can interact with the service end of same server, less to the manpower required for the exploitation of server program, time, expense;Can receive, by this general-purpose interface, the data access request that different types of client sends, use general-purpose interface efficiency high;With need multiple API of exploitation for dissimilar client, and the load that general-purpose interface can realize making server reduces;The universal data format comprised in the content data request that wherein general-purpose interface receives, transmission occupied bandwidth is less.General format data is processed by server, and result is converted into described general format data, returns to the client of request.Compared with needing to develop multiple API individually matched at server for dissimilar client with prior art, the method that the present invention provides achieves and makes polytype client can interact with the service end of same server, the developer of required specialty participates in that number is few, the construction cycle is short, efficiency is high, expense is low, and general-purpose interface extensibility is high.
The each step of method of client-access server dissimilar to above-mentioned support is described in detail separately below.
In one embodiment, described in above-mentioned steps S21, described general format data is processed, be i.e. converted into the instruction of extended formatting, and perform described instruction.
In one embodiment, the instruction in above-mentioned steps S21 can include following one or more: database access directive, data verification instruction and data or logic instruction.The services or functionalities that server end provides are different, relate to instruct also different;As client needs to inquire about up-to-date information, server through database access instruction, inquire up-to-date information and return to client;For another example client to calculate how many dollars exchanged by 10000 RMB, then what server provided is exactly data operation service;And client logs in, server provides data verification function.Certain above-mentioned instruction is also not limited only to this, the corresponding process that server is done according to the business of different application and function logic, also can use some other logical process instruction.
In one embodiment, the general-purpose interface in above-mentioned steps S21-S22 is the data interchange format JSON interface of a kind of lightweight, and data access request is JSON request, and general format data is JSON formatted data;When the JSON request instruction that JSON interface to dissimilar client sends, resolve the JSON formatted data comprised in JSON request instruction.
Specifically, server can use the JSON request (data wherein comprising JSON form in JSON request) that JSON interface client sends, and greatly improves the efficiency mutual with client, and Whole Response speed is the most quickly.JSON (JavaScript Object Notation) is the data interchange format of a kind of lightweight.It is prone to people read and write.It is also easy to machine resolve and generate simultaneously.It is based on JavaScript(Standard ECMA-262 3rd Edition-December 1999) a subset.As the data interchange format of a kind of lightweight, the grammer of JSON is very simple, uses key-value pair representation.The one group of data represented in JavaScript object can be converted to character string by JSON, the most just can easily transmit this character string between function, or in asynchronous application, character string is passed to server from different types of client, it is also possible to from the data of server transmission JSON form to client and by client interpretation.
Certainly, the embodiment of the present invention can also use most basic method GET(Get to be a kind of request sent out to server and ask for data by Http agreement), POST(Post is a kind of request submitting data to server to), can also realize with server end is mutual, this for the information in request considerably less in the case of time-consumingly the longest, but for requesting query data volume bigger time, the response speed of whole system can be affected, this can reduce the efficiency of inquiry greatly.So server uses the JSON request that JSON interface client sends in the method for the present embodiment, process JSON data;JSON formatted data accounts for bandwidth little (form is compression), and client is easily read by Javascript, improves the efficiency mutual with client, and the time that client waits is shorter;JSON formatted data supports multilingual, including C, C#, Java,
The server end language such as JavaScript, Perl, PHP, Python, Ruby, are easy to the parsing of server;JSON formatted data can directly use for server-side code, enormously simplify the code development quantity of server end and client, but completing of task is constant, and be easily maintained.
In one embodiment, in step S22, general format data is processed, be converted into corresponding database instruction, including: the JSON formatted data that will comprise in data access request content, it is mapped to the JAVA class of JSON interface pairing and instantiates;Instruction according to extended formatting described in the data genaration that instantiation obtains.As: by part in data access request content or be wholly converted into corresponding database instruction, or data access request Content Transformation is become data verification instruction, data or logic instruction.
Specifically, when the JSON interface of server end obtains the JSON request that client is sent, resolve JSON request, and the JSON formatted data in being asked by JSON is mapped to the JAVA class matched with JSON interface and instantiates, this JAVA class is typically JavaBean (JavaBean is the Reusable Module that a kind of JAVA language is write as).Server end processes the JAVA class of this instantiation further, is on the one hand converted into corresponding database instruction, sends part or all database instruction to database;On the other hand it is converted into data verification instruction and data or logic instruction.
Further, the step that above-mentioned execution result is converted into general format data can be realized by following process: the development language used according to server, result is integrated into the data of JSON form by server.Such as: when server uses JAVA language exploitation, data etc. after so using JAVA that database is returned execution result, data verification result, data or logical operation with regard to server end are converted into JSON formatted data and are sent to client, in order to client completes to show accordingly.
Further, wherein: on server, be preset with multiple Javascript file, owing to a set of service has the interface of a lot of difference in functionality under normal circumstances, link, JSON formatted data that each interface needs are different, first effect of Javascript file is to process JSON interface, submits to server including the JSON formatted data being packaged into JSON request content;Client is helped to receive the JSON formatted data sent of server and resolve display.Client is verified by second effect of Javascript file exactly, and such as, each JSON interface has fixing form, and some data is required item, and the form that some data is filled in is incorrect, is all done preliminary checking by Javascript file.3rd effect of Javascript file is ensuring that Special display effect and the operation of client local.
The JSON request that the embodiment of the present invention provides creates HTML list than existing Form(label for inputting for user) a list Submit(object submission button representing in HTML list) request submitted to of method is flexible and changeable, and cause the change of client request content the most more, therefore before submitting JSON request to, it is also required to client does the computing of some logicalities, such as to the preliminary identification etc. submitting data to.
Additionally, owing to server end uses JSON interface unified consistent, after receiving a JSON request, reply to, after processing, the JSON formatted data that client is just as, no matter client is any type, therefore client needs some programmable language to process the JSON formatted data received, and the interior perhaps form changing into applicable client needs own shows.
Specifically, with reference to shown in Fig. 3, such as: when user by the App client and server such as Android, ios, wp7, pc mutual time, its client sends JSON request, server end this request of JSON interface, resolve the JOSN data comprised, by application program, JSON formatted data is processed.Such as: if this JSON request is the request that database is relevant, then be converted into corresponding database instruction, and be sent to database;After database performs instruction, execution result is returned to server end, becomes JSON formatted data by Server Consolidation, then be sent to the App client of above-mentioned request;Above-mentioned App client will receive JSON formatted data by calling default Javascript file, be converted into the content of App client self needs and show.Data verification instruction request, data or logic instruction request, its client and server interaction and above-mentioned inquiry database request principle similar, repeat no more.
In one embodiment, when above-mentioned client is Web client, before above-mentioned server receives, by the general-purpose interface preset, the data access request that client sends, described method also includes: when receiving the web access requests that Web client sends, the HTML html web page pre-saved is returned to Web client;Described html web page is first interface of client request.
Specifically, with reference to Fig. 4, when user is by Web client and server interaction, first pass through the TCP/IP address of http protocol access services device, server loads the html web page providing service, user, by browsing this html web page, obtains the data, services needed, and sends JSON by Javascript and asks;Server end this JSON of JSON interface asks, resolve the JOSN formatted data comprised, by application program, JSON formatted data is processed, such as in the case of JSON request is the request of inquiry database, so it is converted into corresponding database instruction, and is sent to database;After database performs instruction, execution result is returned to server program, is integrated into JSON formatted data by server end, then is sent to the Web client of above-mentioned request;Above-mentioned Web client will receive JSON formatted data by calling default Javascript file, be converted into the content of Web client self needs and show.When Web client send be data verification instruction request and data or logic instruction request time, server side processing procedure is similar with the request process of above-mentioned inquiry database with client interaction, does not repeats them here.
And present different types of client is essentially all programmable, the assembling of JSON formatted data can be completed by the Javascript file of client call.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of server and supports the system of dissimilar client-access server, support that the method for dissimilar client-access server is similar owing to the principle of this server problem solved with system is a kind of to previous embodiment, therefore the enforcement of this server and system may refer to the enforcement of preceding method, repeats no more in place of repetition.
The following server provided for the embodiment of the present invention, may be used for performing the embodiment of the method for above-mentioned support dissimilar client-access server.
With reference to Fig. 5, this server includes:
Parsing module 51, for when described server receives, by the general-purpose interface preset, the data access request that client sends, parsing the general format data comprised in described data access request content;Described client includes: Web client, App client and wearable device client;
Modular converter 52, for processing described general format data, and is converted into described general format data by result;
Return module 53, return to described client for the described general format data being converted into by described modular converter.
In one embodiment, above-mentioned modular converter 52, specifically for general format data being processed to above-mentioned, it is converted into the instruction of extended formatting, and performs described instruction.
In one embodiment, above-mentioned instruction include following one or more: database access directive, data verification instruction and data or logic instruction.
In one embodiment, above-mentioned general-purpose interface is a kind of JSON interface, and described data access request is JSON request, and described general format data is JSON formatted data.
In one embodiment, above-mentioned modular converter 52, also particularly useful for the JSON formatted data that will comprise in data access request content, it is mapped to the JAVA class of described JSON interface pairing and instantiates, according to the instruction of extended formatting described in the data genaration that instantiation obtains.
In one embodiment, with reference to Fig. 5, above-mentioned server also includes: delivery module 50, before above-mentioned parsing module 51 receives the data access request that client sends, when receiving the web access requests that Web client sends, send the HTML html web page pre-saved to Web client;Above-mentioned html web page is first interface of client request.
Disclosure embodiment additionally provides a kind of system supporting dissimilar client-access server, with reference to shown in Fig. 1, including server and at least one client;
Above-mentioned server, for when described server receives, by the general-purpose interface preset, the data access request that client sends, parsing the general format data comprised in described data access request content;Described general format data is processed, and result is converted into described general format data, return to described client;
At least one client above-mentioned, for sending data access request to server, and receives the general format data that server returns, processes general format data and show at least one client above-mentioned;At least one client above-mentioned includes: Web client, App client and wearable device client.
In one embodiment, the described general format data of above-mentioned process also shows at least one client described, including: when described client is Web client, by calling default Javascript file by described general format data, it is converted into content that Web client self needs and shows.
In one embodiment, the described general-purpose interface in above-mentioned server is JSON interface, and above-mentioned data access request is JSON request, and above-mentioned general format data is JSON formatted data.
The invention discloses a kind of method, server and system supporting dissimilar client-access server, when server receives, by the general-purpose interface preset, the data access request that different types of client sends, parse the general format data comprised in data access request content;And general format data is processed, and result is converted into described general format data, return to above-mentioned client.Compared with needing to develop multiple API individually matched at server end for dissimilar client with prior art, the method that the present invention provides achieves and makes polytype client can interact with the generic service end of same server, and the developer of required specialty participates in that number is few, the construction cycle is short, efficiency is high, expense is low and extensibility is high.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program.Therefore, the form of the embodiment in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware.And, the present invention can use the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) wherein including computer usable program code.
The present invention is to describe with reference to method, equipment (system) and the flow chart of computer program according to embodiments of the present invention and/or block diagram.It should be understood that can be by the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided to produce a machine to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces the manufacture including command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to perform sequence of operations step on computer or other programmable devices to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides the step of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame for realization.
Obviously, those skilled in the art can carry out various change and modification without departing from the spirit and scope of the present invention to the present invention.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (15)
1. the method supporting dissimilar client-access server, it is characterised in that described method includes:
When described server receives, by the general-purpose interface preset, the data access request that client sends, parse the general format data comprised in described data access request content;Described client includes: Web client, App client and wearable device client;
Described general format data is processed, and result is converted into described general format data, return to described client.
2. the method for claim 1, it is characterised in that described described general format data is processed, including:
Described general format data is processed, is converted into the instruction of extended formatting, and performs described instruction.
3. method as claimed in claim 2, it is characterised in that described instruction include following one or more:
Database access directive, data verification instruction and data or logic instruction.
4. the method as described in any one of claim 1-3, it is characterised in that described general-purpose interface is JSON interface, described data access request is JSON request, and described general format data is JSON formatted data.
5. method as claimed in claim 4, it is characterised in that described general format data is processed, is converted into the instruction of extended formatting, including:
The JSON formatted data that will comprise in data access request content, is mapped to the JAVA class of described JSON interface pairing and instantiates, according to the instruction of extended formatting described in the data genaration that instantiation obtains.
6. method as claimed in claim 4, it is characterised in that when described client is Web client, before described server receives, by the general-purpose interface preset, the data access request that client sends, described method also includes:
When receiving the web access requests that Web client sends, the HTML html web page pre-saved is returned to Web client;Described html web page is first interface of client request.
7. a server, it is characterised in that including:
Parsing module, for when described server receives, by the general-purpose interface preset, the data access request that client sends, parsing the general format data comprised in described data access request content;Described client includes: Web client, App client and wearable device client;
Modular converter, for processing described general format data, and is converted into described general format data by result;
Return module, return to described client for the described general format data being converted into by described modular converter.
8. server as claimed in claim 7, it is characterised in that described modular converter, specifically for processing described general format data, is converted into the instruction of extended formatting, and performs described instruction.
9. server as claimed in claim 8, it is characterised in that described instruction include following one or more:
Database access directive, data verification instruction and data or logic instruction.
10. the server as described in any one of claim 7-9, it is characterised in that described general-purpose interface is a kind of JSON interface, described data access request is JSON request, and described general format data is JSON formatted data.
11. servers as claimed in claim 10, it is characterized in that, described modular converter, also particularly useful for the JSON formatted data that will comprise in data access request content, it is mapped to the JAVA class of described JSON interface pairing and instantiates, according to the instruction of extended formatting described in the data genaration that instantiation obtains.
12. servers as claimed in claim 10, it is characterized in that, described server also includes: delivery module, before described parsing module receives the data access request that client sends, when receiving the web access requests that Web client sends, send the HTML html web page pre-saved to Web client;Described html web page is first interface of client request.
13. 1 kinds of systems supporting dissimilar client-access server, it is characterised in that including: server and at least one client;
Described server, for when described server receives, by the general-purpose interface preset, the data access request that client sends, parsing the general format data comprised in described data access request content;Described general format data is processed, and result is converted into described general format data, return to described client;
At least one client described, for sending data access request to server, and receives the general format data that server returns, processes described general format data and show at least one client described;At least one client described includes: Web client, App client and wearable device client.
14. systems as claimed in claim 13, it is characterized in that, the described general format data of described process also shows at least one client described, including: when described client is Web client, by calling default Javascript file by described general format data, it is converted into content that Web client self needs and shows.
15. systems as described in claim 13 or 14, it is characterised in that the described general-purpose interface in described server is JSON interface, described data access request is JSON request, and described general format data is JSON formatted data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610334395.8A CN105872083A (en) | 2016-05-19 | 2016-05-19 | Method and system supporting server access by different types of clients as well as server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610334395.8A CN105872083A (en) | 2016-05-19 | 2016-05-19 | Method and system supporting server access by different types of clients as well as server |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105872083A true CN105872083A (en) | 2016-08-17 |
Family
ID=56635360
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610334395.8A Pending CN105872083A (en) | 2016-05-19 | 2016-05-19 | Method and system supporting server access by different types of clients as well as server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105872083A (en) |
Cited By (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106412034A (en) * | 2016-09-14 | 2017-02-15 | 北京百度网讯科技有限公司 | Business processing method and apparatus |
| CN107203387A (en) * | 2017-06-13 | 2017-09-26 | 广东神马搜索科技有限公司 | Target database access method and system |
| CN107395663A (en) * | 2017-05-17 | 2017-11-24 | 阿里巴巴集团控股有限公司 | Data capture method and device |
| CN108040045A (en) * | 2017-12-07 | 2018-05-15 | 百度在线网络技术(北京)有限公司 | Generation method, device, server and the storage medium of flowing of access file |
| CN108427556A (en) * | 2018-03-12 | 2018-08-21 | 深圳市博安达信息技术股份有限公司 | A kind of form design analytic method and system |
| CN108833954A (en) * | 2018-06-07 | 2018-11-16 | 深圳市亿联智能有限公司 | A kind of data analysis mode for supporting a variety of IPTV data formats |
| CN109875521A (en) * | 2019-04-18 | 2019-06-14 | 厦门纳龙科技有限公司 | A kind of analysis of ECG data and system |
| CN110377649A (en) * | 2019-06-17 | 2019-10-25 | 中国平安财产保险股份有限公司 | Building, querying method, device, equipment and the storage medium of labeling data |
| CN110738024A (en) * | 2019-09-24 | 2020-01-31 | 深圳丝路天地电子商务有限公司 | Method for converting WebAPP into API service interface |
| CN110766886A (en) * | 2018-07-25 | 2020-02-07 | 新智数字科技有限公司 | Driving device, method for driving card reader to realize card service and self-service payment system |
| CN110851209A (en) * | 2019-11-08 | 2020-02-28 | 北京字节跳动网络技术有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN111343221A (en) * | 2018-12-18 | 2020-06-26 | 北京奇虎科技有限公司 | Business processing method and device in command mode based on general interface framework |
| CN111949419A (en) * | 2020-07-17 | 2020-11-17 | 上海淇馥信息技术有限公司 | Cross-environment resource acquisition method and device and electronic equipment |
| CN111984305A (en) * | 2020-08-21 | 2020-11-24 | 腾讯科技(上海)有限公司 | Application configuration method and device and computer equipment |
| CN112395098A (en) * | 2019-08-19 | 2021-02-23 | 网易(杭州)网络有限公司 | Application program interface calling method and device, storage medium and electronic equipment |
| CN112559605A (en) * | 2019-09-25 | 2021-03-26 | 北京国双科技有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN112632175A (en) * | 2020-12-31 | 2021-04-09 | 上海海圆科技发展有限公司 | Universal data interaction method suitable for various development environments |
| CN112765252A (en) * | 2021-01-25 | 2021-05-07 | 深圳市欢太科技有限公司 | Data transmission method, client, terminal, server and storage medium |
| CN112910980A (en) * | 2021-01-27 | 2021-06-04 | 中国银联股份有限公司 | Database access system and method |
| CN113572858A (en) * | 2021-09-24 | 2021-10-29 | 盛威时代科技集团有限公司 | Data transmission method, device, equipment, medium and product |
| CN113645303A (en) * | 2021-08-11 | 2021-11-12 | 曙光信息产业(北京)有限公司 | Data transmission method and device, computer equipment and storage medium |
| CN113765972A (en) * | 2020-10-27 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Data request response method, apparatus, system, server and storage medium |
| CN114647807A (en) * | 2020-12-18 | 2022-06-21 | 永中软件股份有限公司 | Theme customization method of web login page, computing device and readable medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001086427A2 (en) * | 2000-05-09 | 2001-11-15 | Sun Microsystems, Inc. | Transformation of objects between a computer programming language and a data representation language |
| CN102098330A (en) * | 2010-12-29 | 2011-06-15 | 东莞宇龙通信科技有限公司 | Asynchronous transmission method, device and system based on json data format |
| CN104821954A (en) * | 2015-03-27 | 2015-08-05 | 中国海洋大学 | Cross-platform remote procedure call method |
-
2016
- 2016-05-19 CN CN201610334395.8A patent/CN105872083A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001086427A2 (en) * | 2000-05-09 | 2001-11-15 | Sun Microsystems, Inc. | Transformation of objects between a computer programming language and a data representation language |
| CN102098330A (en) * | 2010-12-29 | 2011-06-15 | 东莞宇龙通信科技有限公司 | Asynchronous transmission method, device and system based on json data format |
| CN104821954A (en) * | 2015-03-27 | 2015-08-05 | 中国海洋大学 | Cross-platform remote procedure call method |
Cited By (36)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106412034B (en) * | 2016-09-14 | 2019-09-20 | 北京百度网讯科技有限公司 | Business processing method and device |
| CN106412034A (en) * | 2016-09-14 | 2017-02-15 | 北京百度网讯科技有限公司 | Business processing method and apparatus |
| CN107395663A (en) * | 2017-05-17 | 2017-11-24 | 阿里巴巴集团控股有限公司 | Data capture method and device |
| CN107395663B (en) * | 2017-05-17 | 2020-01-21 | 阿里巴巴集团控股有限公司 | Data acquisition method and device |
| CN107203387B (en) * | 2017-06-13 | 2020-12-29 | 阿里巴巴(中国)有限公司 | Target database access method and system |
| CN107203387A (en) * | 2017-06-13 | 2017-09-26 | 广东神马搜索科技有限公司 | Target database access method and system |
| CN108040045A (en) * | 2017-12-07 | 2018-05-15 | 百度在线网络技术(北京)有限公司 | Generation method, device, server and the storage medium of flowing of access file |
| CN108040045B (en) * | 2017-12-07 | 2021-05-07 | 百度在线网络技术(北京)有限公司 | Access flow file generation method and device, server and storage medium |
| CN108427556A (en) * | 2018-03-12 | 2018-08-21 | 深圳市博安达信息技术股份有限公司 | A kind of form design analytic method and system |
| CN108833954A (en) * | 2018-06-07 | 2018-11-16 | 深圳市亿联智能有限公司 | A kind of data analysis mode for supporting a variety of IPTV data formats |
| CN108833954B (en) * | 2018-06-07 | 2020-12-11 | 深圳市亿联智能有限公司 | Data analysis mode supporting multiple IPTV data formats |
| CN110766886B (en) * | 2018-07-25 | 2023-01-10 | 新智数字科技有限公司 | Driving device, method for driving card reader to realize card service and self-service payment system |
| CN110766886A (en) * | 2018-07-25 | 2020-02-07 | 新智数字科技有限公司 | Driving device, method for driving card reader to realize card service and self-service payment system |
| CN111343221A (en) * | 2018-12-18 | 2020-06-26 | 北京奇虎科技有限公司 | Business processing method and device in command mode based on general interface framework |
| CN109875521A (en) * | 2019-04-18 | 2019-06-14 | 厦门纳龙科技有限公司 | A kind of analysis of ECG data and system |
| CN110377649B (en) * | 2019-06-17 | 2023-07-14 | 中国平安财产保险股份有限公司 | Construction and query methods, devices, equipment and storage medium of tagged data |
| CN110377649A (en) * | 2019-06-17 | 2019-10-25 | 中国平安财产保险股份有限公司 | Building, querying method, device, equipment and the storage medium of labeling data |
| CN112395098A (en) * | 2019-08-19 | 2021-02-23 | 网易(杭州)网络有限公司 | Application program interface calling method and device, storage medium and electronic equipment |
| CN112395098B (en) * | 2019-08-19 | 2024-03-15 | 网易(杭州)网络有限公司 | Application program interface calling method and device, storage medium and electronic equipment |
| CN110738024A (en) * | 2019-09-24 | 2020-01-31 | 深圳丝路天地电子商务有限公司 | Method for converting WebAPP into API service interface |
| CN112559605A (en) * | 2019-09-25 | 2021-03-26 | 北京国双科技有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN110851209A (en) * | 2019-11-08 | 2020-02-28 | 北京字节跳动网络技术有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN110851209B (en) * | 2019-11-08 | 2023-07-21 | 北京字节跳动网络技术有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN111949419A (en) * | 2020-07-17 | 2020-11-17 | 上海淇馥信息技术有限公司 | Cross-environment resource acquisition method and device and electronic equipment |
| CN111984305A (en) * | 2020-08-21 | 2020-11-24 | 腾讯科技(上海)有限公司 | Application configuration method and device and computer equipment |
| CN111984305B (en) * | 2020-08-21 | 2023-08-08 | 腾讯科技(上海)有限公司 | Application configuration method and device and computer equipment |
| CN113765972A (en) * | 2020-10-27 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Data request response method, apparatus, system, server and storage medium |
| CN114647807A (en) * | 2020-12-18 | 2022-06-21 | 永中软件股份有限公司 | Theme customization method of web login page, computing device and readable medium |
| CN112632175A (en) * | 2020-12-31 | 2021-04-09 | 上海海圆科技发展有限公司 | Universal data interaction method suitable for various development environments |
| CN112765252A (en) * | 2021-01-25 | 2021-05-07 | 深圳市欢太科技有限公司 | Data transmission method, client, terminal, server and storage medium |
| CN112910980B (en) * | 2021-01-27 | 2022-11-15 | 中国银联股份有限公司 | Database access system and method |
| CN112910980A (en) * | 2021-01-27 | 2021-06-04 | 中国银联股份有限公司 | Database access system and method |
| CN113645303A (en) * | 2021-08-11 | 2021-11-12 | 曙光信息产业(北京)有限公司 | Data transmission method and device, computer equipment and storage medium |
| CN113645303B (en) * | 2021-08-11 | 2024-04-23 | 曙光信息产业(北京)有限公司 | Data transmission method, device, computer equipment and storage medium |
| CN113572858A (en) * | 2021-09-24 | 2021-10-29 | 盛威时代科技集团有限公司 | Data transmission method, device, equipment, medium and product |
| CN113572858B (en) * | 2021-09-24 | 2022-01-14 | 盛威时代科技集团有限公司 | Data transmission method, device, equipment, medium and product |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105872083A (en) | Method and system supporting server access by different types of clients as well as server | |
| CN110198247B (en) | Interface test method and system | |
| CN108614776B (en) | Dynamic construction method and system for cross-language protocol test request | |
| KR102220127B1 (en) | Method and apparatus for customized software development kit (sdk) generation | |
| KR102243793B1 (en) | Method and apparatus for code virtualization and remote process call generation | |
| US7509649B2 (en) | System and method for conversion of generic services' applications into component based applications for devices | |
| US20060200748A1 (en) | System and method for applying workflow of generic services' to component based applications for devices | |
| US20170262266A1 (en) | Orchestrating the lifecycle of multiple-target applications | |
| CN110347378A (en) | The building method and device of item development environment | |
| CN101697139A (en) | Method, device and registry for remote procedure call | |
| CN102567400B (en) | Method for realizing Web visit and Web server | |
| CN108694120B (en) | Method and device for testing service component | |
| US20120089931A1 (en) | Lightweight operation automation based on gui | |
| Rattanapoka et al. | An MQTT-based IoT cloud platform with flow design by Node-RED | |
| CN111026634A (en) | Interface automation test system, method, device and storage medium | |
| CN110704200A (en) | Methods and devices for converting invocation interfaces | |
| US10382313B2 (en) | Test building for testing server operation | |
| CN111414154A (en) | Method and device for front-end development, electronic equipment and storage medium | |
| CN111125064A (en) | Method and device for generating database mode definition statement | |
| CN113485927B (en) | Test data generation method, device, equipment and storage medium | |
| CA2538561C (en) | System and method for conversion of web services applications into component based applications for devices | |
| CN110874278A (en) | Embedding method, workflow system, device and storage medium of external system | |
| CN113495498A (en) | Simulation method, simulator, device, and medium for hardware device | |
| CN115982257A (en) | Interface creation method and related device | |
| CN112988588B (en) | Client software debugging method and device, storage medium and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Address after: 2 C520 room 1236, 313000 Dragon King Road, Huzhou, Zhejiang Applicant after: Zhejiang profile information technology Co., Ltd. Address before: 313000 room 2, building 1236, Dragon King Road, Huzhou economic and Technological Development Zone, Zhejiang, Applicant before: HUZHOU WEIWEI INFORMATION TECHNOLOGY CO., LTD. |
|
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160817 |