CN109862095A - Data processing method and device based on Web service - Google Patents
Data processing method and device based on Web service Download PDFInfo
- Publication number
- CN109862095A CN109862095A CN201910095805.1A CN201910095805A CN109862095A CN 109862095 A CN109862095 A CN 109862095A CN 201910095805 A CN201910095805 A CN 201910095805A CN 109862095 A CN109862095 A CN 109862095A
- Authority
- CN
- China
- Prior art keywords
- data
- sent
- serializing
- web service
- client
- 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
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The disclosure proposes a kind of data processing method and device based on Web service, is related to Internet technical field.The described method includes: carrying out serializing and compression processing to data to be sent by across language service deployment framework thrift, serializing and compressed data to be sent are obtained;The serializing and compressed data to be sent are packaged, data packet is obtained;The data packet is sent to client.The disclosure can be improved efficiency and quality of the Web service end to client transmissions data.
Description
Technical field
This disclosure relates to Internet technical field, in particular to a kind of data processing method based on Web service and
Device.
Background technique
Web Service (Web service) is independent platform, lower coupling, the application journey based on programmable Web
Sequence can make the different application operated on different machines without other softwares or hardware, can be mutual
Data are exchanged, have many advantages, such as that interactivity is strong and reusability is high.
In the prior art, the data transmission procedure in Web service are as follows: client sends network request to Web service end;
Web service end receives the network request using Web Service processor, calls Web Sevice according to above-mentioned network request
Server obtains data, and will be counted by HTTP (HyperText Transfer Protocol, hypertext transfer protocol) agreement
According to being transferred to client.It specifically, is XML (Extensible Markup for being sent to the data of client
Language, extensible markup language) format data, then, Web service end just needs to divide the data of XML format
Then data to be sent after analysis, processing and conversion are transferred to client by analysis, processing and conversion.
However, since Web service end to a large amount of client and may provide service, thus need to return to client
A large amount of data, but the mode analyzed XML data, handled and converted needs to expend a large amount of hardware resource, Web service
For device when returning to high-volume data to client, efficiency of transmission is lower, and longer will lead to of transmission time services connection time-out, or
Person overflows since data occupied space is excessive, will lead to memory, reduces the reliability of transmission data.
Summary of the invention
The disclosure is designed to provide a kind of data processing method and device based on Web service, to improve Web service
Hold the efficiency and quality to client transmissions data.
To achieve the goals above, the disclosure the technical solution adopted is as follows:
In a first aspect, the disclosure proposes a kind of data processing method based on Web service, which comprises
By the serializing and compress mode of across language service deployment framework thrift, data to be sent are serialized
And compression processing, obtain serializing and compressed data to be sent;
The serializing and compressed data to be sent are packaged, data packet is obtained;
The data packet is sent to client.
Second aspect, the disclosure also propose a kind of data processing equipment based on Web service, and described device includes:
Serialization module, for by the serializing and compress mode of thrift, to data to be sent carry out serializing and
Compression processing obtains serializing and compressed data to be sent;
Package module obtains data packet for the serializing and compressed data to be sent to be packaged;
Sending module, for the data packet to be sent to client.
The third aspect, the disclosure also propose a kind of electronic equipment, deposit including being stored with the computer-readable of computer program
Storage media and processor when the computer program is read and run by the processor, are realized described in above-mentioned first aspect
Method.
Fourth aspect, the disclosure also propose a kind of computer readable storage medium, are stored thereon with computer program, described
When computer program is read out by the processor and runs, method described in above-mentioned first aspect is realized.
Compared with the prior art, the disclosure has the advantages that
In the embodiments of the present disclosure, sequence can be carried out to data to be sent by the serializing and compress mode of thrift
Change and compression processing, serializing and compressed data to be sent is obtained, since the serializing mode of thrift can will be pending
The data of data sequence chemical conversion binary format are sent, compression can be further reduced the data volume after serializing, to make pending
Send data volume it is smaller, be more conducive to high concurrent and big data quantity transmission, therefore, will serializing and compressed data to be sent
It is packaged, and the data packet that encapsulation obtains is sent to client, the efficiency of transmission data can be improved, also reduce memory
Overflow and so on, improve the reliability of transmission data.
Other feature and advantage of the disclosure will be illustrated in subsequent specification, also, partly be become from specification
It is clear that by implementing disclosure understanding.The purpose of the disclosure and other advantages can be by written specifications, power
Specifically noted structure is achieved and obtained in sharp claim and attached drawing.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the disclosure, letter will be made to attached drawing needed in the embodiment below
It singly introduces, it should be understood that the following drawings illustrates only some embodiments of the disclosure, therefore is not construed as to range
It limits, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings
Obtain other relevant attached drawings.
Fig. 1 shows a kind of structural schematic diagram of Web service system provided by the disclosure;
Fig. 2 shows a kind of flow diagrams of data processing method based on Web service provided by the disclosure;
Fig. 3 shows the flow diagram of data processing method of the another kind provided by the disclosure based on Web service;
Fig. 4 shows a kind of the functional block diagram of the data processing equipment based on Web service provided by the disclosure;
Fig. 5 shows the functional module signal of data processing equipment of the another kind provided by the disclosure based on Web service
Figure;
Fig. 6 shows the functional block diagram of a kind of electronic equipment provided by the disclosure.
Specific embodiment
Below in conjunction with attached drawing in the disclosure, the technical solution in the disclosure is clearly and completely described, it is clear that
Described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Usually retouched in attached drawing here
The component for the disclosure stated and shown can be arranged and be designed with a variety of different configurations.Therefore, below to mentioning in the accompanying drawings
The detailed description of the disclosure of confession is not intended to limit claimed the scope of the present disclosure, but is merely representative of the choosing of the disclosure
Determine embodiment.Based on embodiment of the disclosure, those skilled in the art are obtained without making creative work
Every other embodiment, belong to the disclosure protection range.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile in the disclosure
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
As shown in Figure 1, for a kind of structural schematic diagram of Web service system provided by the disclosure.The system includes Web clothes
Business end (Sever) 101, registration center (Registry) 102 and client (Client) 103, Web service end 101, registration center
Network connection can be passed through between 102 and client 103.
Web service end 101 is the provider of Web service, can provide standardized Web service for client 103.It should
Web service end 101 can be deployed on server or server cluster.
Web service is a kind of far call technology across programming language and spanning operation system platform.Web service end 101 is set
It is equipped with application program, and the interface for calling the application program is provided, correspondingly, client 103 can be by web from the interface tune
With the application program.
For example, Web service may include Unionpay's card-punching system, weather forecast system, electronic emporium or search engine etc..
Registration center 102 can store the Web service of the registration of Web service end 101, and can provide to client 103
The corresponding Web service end 101 of the Web service inquired.The registration center 102 can be deployed in server or server set
On group.
It should be noted that Web service end 101 and registration center 102 can be deployed in respectively on different servers,
It can also be deployed on server module different in same server.
It should also be noted that, can also include more than one Web service end 101 in Web service system.
Client 103 is able to access that Web service end 101 and registration center 102, including inquires target from registration center 102
Web service end 101 corresponding to Web service, and the Goal Web Services are obtained from the Web service end 101 inquired.
Wherein, Goal Web Services are Web service needed for client 103.
Above-mentioned Web service system can be run by following step:
Step 1, client 103 sends server-side inquiry request to registration center 102, carries in service-seeking request
Service identifiers.
Wherein, server-side inquiry request is to inquire the request at the Web service end where Goal Web Services.
It should be noted that service identifiers are the information being identified to Web service, such as service-number or Service name
Claim etc..
Step 2, registration center 102 is based on the service identifiers and returns to corresponding server-side mark to client 103.
Wherein, server-side is identified as the information being identified to Web service end, such as the network address at Web service end.
Step 3, client 103 is identified based on the server-side, sends service call mode to corresponding Web service end 101
Inquiry request carries the service identifiers in the method for service inquiry request.
Wherein, service call mode inquiry request is mode of the inquiry from the 101 invocation target Web service of Web service end
Request.
Step 4, Web service end 101 is based on the service identifiers, and the service call of Goal Web Services is returned to client 103
Mode.
Step 5, client 103 is based on the service call mode, sends network request to Web service end 101.
Step 6, Web service end 101 is based on the network request, to 103 returned data of client, thus to client 103
Goal Web Services are provided.
It referring to figure 2., is a kind of flow diagram of the data processing method based on Web service provided by the disclosure.
This method is applied in Web service end shown in FIG. 1.It should be noted that at data described in the disclosure based on Web service
Reason method is not limitation with Fig. 2 and specific order as described below, it should be understood that in other embodiments, disclosure institute
The sequence for the data processing method part step based on Web service stated can be exchanged with each other according to actual needs, or
Part steps therein also can be omitted or delete.Process shown in Fig. 2 will be described in detail below.
Step 201, by the serializing of thrift and compress mode, data to be sent are carried out at serializing and compression
Reason obtains serializing and compressed data to be sent.
Since Web service end may provide service to a large amount of client, so needing to return to client a large amount of
Data, and data sequence to be sent can be melted into the data of binary format using the serializing mode of thrift, and to sequence
Data after columnization are compressed, thus make serializing and compressed data volume to be sent it is smaller, be more conducive to high concurrent and
The transmission of big data quantity, therefore, in order to improve transmission data efficiency, reduce memory overflow and so on, to improve
Data to be sent can be serialized and be compressed by the serializing and compress mode of thrift by the reliability for transmitting data
Processing.
In practical application, thrift is a kind of service arrangement frame across language, support multi-language binding, data structure with
It transmits the separation of performance and supports a variety of message formats, comprising complete client, server-side storehouse and RPC can be fast implemented
(Remote Procedure Call, remote procedure call) supports synchronous and asynchronous communication.
In the embodiment of the present disclosure, data to be sent are the data that Web service end will be sent to client, and this is to be sent
Data relevant to the Web service that the Web service end is provided to the client that data can be.
In the embodiment of the present disclosure, by thrift serializing and compress mode to data to be sent carry out serializing and
When compression processing, the TBinary Protocol (Binary Serialization agreement) or TCompact of thrift can be passed through
Protocol (intensive Binary Serialization agreement), so that serializing treated data to be sent are obtained, later again to sequence
Treated that data to be sent are compressed for columnization, obtains serializing and compressed data to be sent.
Wherein, for any structure body in data to be sent, the beginning label for generating the structural body can first be corresponded to;Again
Generate each field that the structural body includes, including field beginning label, field value and end-of-field marker;When the institute of the structural body
After having field generation, field stop flag is generated;The completion label for ultimately producing the corresponding structural body, to complete to this
The serializing of structural body.Data after serializing may include in a binary file.
Structural body is data structure or the data acquisition system being made of data.
For example, data to be sent include the tables of data of two column, two row, wherein the first row and secondary series of the first row be respectively
The ID (Identification, identity card) and name (name) of user;The first row and secondary series of second row are respectively 1 He
Lilei indicates that the name for the user that ID is 1 is lilei.By the serializing mode of thrift by the data table transmition be two into
The data of system, for example lilei is converted to the representation of binary data are as follows: 010101.Then pass through the compression of thrift
Mode compresses binary data, wherein the first row of the tables of data can be mapped as 1, secondary series is mapped as
0, the first row is mapped as 1, the second row is mapped as 0, is carried out according to the binary data that the mapping relations obtain serializing
Compression, so that serializing and compressed data to be sent are obtained, for example, lilei corresponding 010101 can further be pressed
It is condensed to 01.
Step 202, serializing and compressed data to be sent are packaged, obtain data packet.
For the ease of Web service end to client transmissions data, can to serializing and compressed data to be sent into
Row encapsulation.
Data to be sent can be packaged, according to the communication protocol between Web service end and client to obtain
Data packet corresponding with the communication protocol.
Step 203, client is delivered a packet to.
Since data to be sent are the relevant data of Web service that Web service end is provided to client, it can incite somebody to action
Data packet is sent to client, so that this provides corresponding Web service to client.
The data packet of generation can be sent to client by the network connection between client by Web service end.
In the embodiments of the present disclosure, sequence can be carried out to data to be sent by the serializing and compress mode of thrift
Change and compression processing, serializing and compressed data to be sent is obtained, since the serializing mode of thrift can will be pending
The data of data sequence chemical conversion binary format are sent, compression can be further reduced the data volume after serializing, to make pending
Send data volume it is smaller, be more conducive to high concurrent and big data quantity transmission, therefore, will serializing and compressed data to be sent
It is packaged, and the data packet that encapsulation obtains is sent to client, the efficiency of transmission data can be improved, also reduce memory
Overflow and so on, improve the reliability of transmission data.
It referring to figure 3., is a kind of flow diagram of the data processing method based on Web service provided by the disclosure.
This method is applied in the Web service end in Fig. 1 and the interaction between client, it should be noted that base described in the disclosure
In the data processing method of Web service be not limitation with Fig. 3 and specific order as described below, it should be understood that other
In embodiment, the sequence of the data processing method part step described in the disclosure based on Web service can be according to reality
It needs to be exchanged with each other or part steps therein also can be omitted or delete.Process shown in Fig. 3 will be carried out below detailed
It illustrates.
Step 301, client generates network request, and the network request is sent to Web service end.
In order to obtain service provided by Web service end, client can send network request to the Web service end.
Wherein, HTTP request can be generated in client, passes through SOAP (Simple Object Access Protocol, letter
Single object access protocol) packaged type, which is packaged, the data packet after being encapsulated, and by the data
Packet is sent to Web service end.
It should be noted that in order to improve client to Web service end send data (e.g., network request) efficiency and can
By property, client can pass through the serializing and compress mode pair of thrift after generating network request (e.g., HTTP request)
The network request carries out serializing processing and compression processing, obtains serializing and compressed network request.And then pass through
The packaged type of SOAP is packaged processing to the network request after serializing and compression, the network request after being encapsulated,
And the network request after encapsulation is sent to Web service end.
Step 302, Web service end receives the network request that client is sent, and obtains number to be sent based on the network request
According to.
Web service end can obtain data to be sent based on the network request, and send the data to be sent subsequent
To client, to provide corresponding Web service to client.
Web service end can be decapsulated by the data packet that the decapsulation mode of SOAP sends client, be obtained
The network request, the type based on the requested Web service of the network request acquires corresponding data, and the data are made
For data to be sent.For example, when the requested Web service of the network request is to obtain specified file, Web service end can be with
Based on the network request, this document is obtained from preset database, this document can be used as data to be sent.
Optionally, since network request can be serialized by client by the serializing and compress mode of thrift
With obtained after compression processing, therefore, Web service end can be by the decompression and unserializing mode of thrift, to network
Request is unziped it with unserializing processing, network request after obtaining decompression and unserializing, based on decompression and anti-
Network request after serializing obtains data to be sent.
From the foregoing it will be appreciated that sending the efficiency of data (e.g., network request) and reliable to improve client to Web service end
Property, client can carry out the serializing and compression processing of thrift to the network request for being sent to Web service end, and pass through
The packaged type of SOAP is packaged processing to the network request after serializing and compression, and therefore, Web service end passes through SOAP
Decapsulation mode the data packet that client is sent is carried out decapsulating obtained network request, may for serializing and compression
Network request later, so ensuring that accurately parsing obtains the network request of client, thus reliably to visitor
Family end provides Web service, and Web service end can solve the network request after decapsulation by the decompression mode of thrift
Compression processing, the network request after being decompressed, then the network after decompression is asked by the unserializing mode of thrift
Serializing of negating processing, obtains unserializing treated network request, and treated that network request obtains based on unserializing
Take data to be sent.
It is deserialized as handling mutually converse process with serializing, capable of serializing that treated, data are restored to sequence
Form before change.
For the data after serializing, the beginning label of each structural body in the data can be read;Circulation reads the structure
Each field in body, including field beginning label, field value and end-of-field marker;Until reading to field stop flag and being somebody's turn to do
The completion of structural body marks, so that the data after the serializing to be restored to the form to before serializing.
Step 303, Web service end passes through the serializing and compress mode of thrift, serializes to data to be sent
And compression processing, obtain serializing and compressed data to be sent.
Wherein, Web service end passes through the serializing and compress mode of thrift, and data to be sent are serialized and pressed
The mode of contracting processing may refer to the associated description in abovementioned steps 201, no longer repeat one by one herein.
Step 304, Web service end will serialize and compressed data to be sent are packaged, and obtain data packet.
It is alternatively possible to by the packaged type of SOAP, by serializing and compressed data to be sent with binary system text
Part form is packaged, and obtains data packet.
Wherein, SOAP is a kind of light weight, simple data exchange agreement.
Step 305, Web service end delivers a packet to client.
It is alternatively possible to pass through TCP (Transmission Control Protocol, transmission control protocol) for data
Packet is sent to client.
Since HTTP is the agreement of application layer, TCP is the agreement of transport layer, when Web service end by way of HTTP to
When client sends data, the connection between client, institute lower so as to cause efficiency of transmission continually can be established and disconnected
With in order to transmit data by more permanent connection, to further increase efficiency of transmission, Web service end can pass through
The mode for establishing TCP connection with client delivers a packet to client.
In addition, client get Web service end transmission data packet when, can be based on the decapsulation mode pair of SOAP
The data packet is decapsulated, and carries out unserializing processing to the data after decapsulation, to restore to obtain data to be sent.
For example, client carries out decapsulation processing to the data packet after the data packet for receiving the transmission of Web service end,
Data packet after being decapsulated, for example, if in data packet after the decapsulation including binary data 01, it can be according to pre-
If mapping ruler, be mapped as 010101 for 01, i.e., to binary data 01 carry out decompression processing, then to 010101 carry out inverted sequence
Columnization processing, it is final to restore to obtain the data lilei before serializing processing.
In the embodiments of the present disclosure, firstly, can by the serializing of thrift and compress mode to data to be sent into
Row serializing and compression processing, obtain serializing and compressed data to be sent, since the serializing mode of thrift can
By the data of data sequence to be sent chemical conversion binary format, compression can be further reduced the data volume after serializing, thus
Make data volume to be sent it is smaller, be more conducive to high concurrent and big data quantity transmission, therefore, will serializing and it is compressed pending
It send data to be packaged, and the data packet that encapsulation obtains is sent to client, the efficiency of transmission data can be improved, also subtracted
Few memory spilling and so on, improve the reliability of transmission data.
Secondly, client can be delivered a packet to by TCP, to transmit number by more permanent connection
According to further raising efficiency of transmission.
It referring to figure 4., is a kind of functional module of the data processing equipment 400 based on Web service provided by the disclosure
Schematic diagram.It should be noted that the present embodiment provided by the data processing equipment 400 based on Web service, basic principle and
The technical effect of generation is identical as aforementioned corresponding embodiment of the method, to briefly describe, does not refer to part in the present embodiment, can join
Corresponding contents in test method embodiment.The data processing equipment 400 based on Web service includes:
Serialization module 401, for by thrift serializing and compress mode data to be sent are serialized
And compression processing, obtain serializing and compressed data to be sent;
Package module 402 obtains data packet for the serializing and compressed data to be sent to be packaged;
Sending module 403, for sending the packet to client.
Optionally, referring to figure 5., the device further include:
Receiving module 404, for receiving the network request of client transmission;
Module 405 is obtained, for obtaining the data to be sent based on the network request.
Optionally, which is serialized and is compressed by the serializing and compress mode of thrift by client
It is obtained after processing, which is specifically used for:
By the decompression of the thrift and unserializing mode to the network request unzip it and unserializing at
Reason, the network request after obtaining decompression and unserializing;
The data to be sent are obtained based on the network request after the decompression and unserializing.
Optionally, package module 404 is specifically used for:
By the packaged type of SOAP, by the serializing and compressed data to be sent in the form of binary file into
Row encapsulation, obtains the data packet.
Optionally, which is specifically used for:
The client is sent the packet to by TCP.
The method that above-mentioned apparatus is used to execute previous embodiment offer, it is similar that the realization principle and technical effect are similar, herein not
It repeats again.
The above module can be arranged to implement one or more integrated circuits of above method, such as: one
Or multiple specific integrated circuits (Application Specific Integrated Circuit, abbreviation ASIC), or, one
Or multi-microprocessor (digital singnal processor, abbreviation DSP), or, one or more field programmable gate
Array (Field Programmable Gate Array, abbreviation FPGA) etc..For another example, when some above module passes through processing elements
When the form of part scheduler program code is realized, which can be general processor, such as central processing unit (Central
Processing Unit, abbreviation CPU) or it is other can be with the processor of caller code.For another example, these modules can integrate
Together, it is realized in the form of system on chip (system-on-a-chip, abbreviation SOC).
Fig. 6 is please referred to, is the functional block diagram of a kind of electronic equipment provided by the disclosure.The electronic equipment can be with
Computer readable storage medium 601 and processor 602 including being stored with computer program, processor 602 can call calculating
The computer program that machine readable storage medium storing program for executing 601 stores.When the computer program is read and is run by processor 602, Ke Yishi
Existing above method embodiment.Specific implementation is similar with technical effect, and which is not described herein again.
Optionally, the disclosure also provides a computer readable storage medium, is stored thereon with computer program, the computer
When program is read out by the processor and runs, above method embodiment may be implemented.
In several embodiments provided by the disclosure, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit
Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the disclosure can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this public affairs
Open the part steps of each embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory
(English: Read-Only Memory, abbreviation: ROM), random access memory (English: Random Access Memory, letter
Claim: RAM), the various media that can store program code such as magnetic or disk.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one
A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to
Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting
Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing is merely preferred embodiment of the present disclosure, are not limited to the disclosure, for the skill of this field
For art personnel, the disclosure can have various modifications and variations.It is all within the spirit and principle of the disclosure, it is made any to repair
Change, equivalent replacement, improvement etc., should be included within the protection scope of the disclosure.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
Claims (10)
1. a kind of data processing method based on Web service, which is characterized in that the described method includes:
By the serializing and compress mode of across language service deployment framework thrift, data to be sent are serialized and pressed
Contracting processing, obtains serializing and compressed data to be sent;
The serializing and compressed data to be sent are packaged, data packet is obtained;
The data packet is sent to client.
2. as described in claim 1 based on the data processing method of Web service, which is characterized in that pass through thrift described
Serializing and compress mode, to data to be sent carry out serializing and compression processing before, the method also includes:
Receive the network request that the client is sent;
The data to be sent are obtained based on the network request.
3. as claimed in claim 2 based on the data processing method of Web service, which is characterized in that the network request is by institute
It states after client carries out serializing and compression processing by the serializing of the thrift and compress mode and obtains;
It is described that the data to be sent are obtained based on the network request, comprising:
By the decompression and unserializing mode of the thrift, to the network request unzip it and unserializing at
Reason, the network request after obtaining decompression and unserializing;
The data to be sent are obtained based on the network request after the decompression and unserializing.
4. the data processing method as described in any one of claims 1-3 based on Web service, which is characterized in that described by institute
It states serializing and compressed data to be sent is packaged, obtain data packet, comprising:
By the packaged type of simple object access protocol, by the serializing and compressed data to be sent with two into
Document form processed is packaged, and obtains the data packet.
5. as described in claim 1 based on the data processing method of Web service, which is characterized in that described by the data packet
It is sent to client, comprising:
The data packet is sent to the client by transmission control protocol TCP.
6. a kind of data processing equipment based on Web service, which is characterized in that described device includes:
Serialization module is serialized and is compressed to data to be sent for passing through the serializing and compress mode of thrift
Processing obtains serializing and compressed data to be sent;
Package module obtains data packet for the serializing and compressed data to be sent to be packaged;
Sending module, for the data packet to be sent to client.
7. as claimed in claim 6 based on the data processing equipment of Web service, which is characterized in that described device further include:
Receiving module, the network request sent for receiving the client;
Module is obtained, for obtaining the data to be sent based on the network request.
8. as claimed in claim 7 based on the data processing equipment of Web service, which is characterized in that the network request is by institute
It states after client carries out serializing and compression processing by the serializing of the thrift and compress mode and obtains;
The acquisition module is specifically used for:
By the decompression and unserializing mode of the thrift, to the network request unzip it and unserializing at
Reason, the network request after obtaining decompression and unserializing;
The data to be sent are obtained based on the network request after the decompression and unserializing.
9. such as the described in any item data processing equipments based on Web service of claim 6-8, which is characterized in that the encapsulation
Module is specifically used for:
By the packaged type of SOAP, the serializing and compressed data to be sent are sealed in the form of binary file
Dress, obtains the data packet.
10. as claimed in claim 6 based on the data processing equipment of Web service, which is characterized in that the sending module is specific
For:
The data packet is sent to the client by TCP.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910095805.1A CN109862095A (en) | 2019-01-30 | 2019-01-30 | Data processing method and device based on Web service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910095805.1A CN109862095A (en) | 2019-01-30 | 2019-01-30 | Data processing method and device based on Web service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109862095A true CN109862095A (en) | 2019-06-07 |
Family
ID=66897184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910095805.1A Pending CN109862095A (en) | 2019-01-30 | 2019-01-30 | Data processing method and device based on Web service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109862095A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110879815A (en) * | 2019-11-26 | 2020-03-13 | 上海莉莉丝科技股份有限公司 | Method, device, equipment and storage medium for upgrading game database server |
CN113329046A (en) * | 2020-02-28 | 2021-08-31 | 珠海格力电器股份有限公司 | Data transmission method, system and storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101446983A (en) * | 2009-01-12 | 2009-06-03 | 腾讯科技(深圳)有限公司 | Method, system and equipment for realizing web page acquisition by mobile terminal |
CN102111437A (en) * | 2010-12-30 | 2011-06-29 | 浪潮集团山东通用软件有限公司 | Simple object access protocol (SOAP) extension-based WEB service transmission compression method |
CN102710768A (en) * | 2012-05-31 | 2012-10-03 | 深圳市远行科技有限公司 | Service-oriented architecture-based bulk data transmission system and method |
CN102970378A (en) * | 2012-12-13 | 2013-03-13 | 中国电子科技集团公司第十五研究所 | Binary data optimized transmission system |
CN104780222A (en) * | 2015-04-29 | 2015-07-15 | 江苏物联网研究发展中心 | General data exchange method based on HTTP and object serialization |
CN105141567A (en) * | 2014-05-26 | 2015-12-09 | 腾讯科技(深圳)有限公司 | Interactive data processing method and system of terminal application and service end and interaction method |
US20160088059A1 (en) * | 2010-07-14 | 2016-03-24 | Google Inc. | Reduction of web page load time using http header compression |
CN106357713A (en) * | 2015-07-16 | 2017-01-25 | 北京京东尚科信息技术有限公司 | Remote procedure call realizing method, client side device and server device |
CN106411933A (en) * | 2016-11-15 | 2017-02-15 | 深圳市彬讯科技有限公司 | Lightweight RPC framework capable of service management and language calling |
CN106453288A (en) * | 2016-09-29 | 2017-02-22 | 上海和付信息技术有限公司 | Asynchronous mode supporting distributed micro service framework system and implementation method thereof |
CN106506509A (en) * | 2016-11-15 | 2017-03-15 | 深圳市彬讯科技有限公司 | Can carry out servicing the lightweight RPC framework implementation methods that administers with language call |
CN106909596A (en) * | 2016-06-23 | 2017-06-30 | 阿里巴巴集团控股有限公司 | Method for processing business, apparatus and system |
CN107888551A (en) * | 2016-09-30 | 2018-04-06 | 北京神州泰岳软件股份有限公司 | A kind of remote service calling method, device and system |
-
2019
- 2019-01-30 CN CN201910095805.1A patent/CN109862095A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101446983A (en) * | 2009-01-12 | 2009-06-03 | 腾讯科技(深圳)有限公司 | Method, system and equipment for realizing web page acquisition by mobile terminal |
US20160088059A1 (en) * | 2010-07-14 | 2016-03-24 | Google Inc. | Reduction of web page load time using http header compression |
CN102111437A (en) * | 2010-12-30 | 2011-06-29 | 浪潮集团山东通用软件有限公司 | Simple object access protocol (SOAP) extension-based WEB service transmission compression method |
CN102710768A (en) * | 2012-05-31 | 2012-10-03 | 深圳市远行科技有限公司 | Service-oriented architecture-based bulk data transmission system and method |
CN102970378A (en) * | 2012-12-13 | 2013-03-13 | 中国电子科技集团公司第十五研究所 | Binary data optimized transmission system |
CN105141567A (en) * | 2014-05-26 | 2015-12-09 | 腾讯科技(深圳)有限公司 | Interactive data processing method and system of terminal application and service end and interaction method |
CN104780222A (en) * | 2015-04-29 | 2015-07-15 | 江苏物联网研究发展中心 | General data exchange method based on HTTP and object serialization |
CN106357713A (en) * | 2015-07-16 | 2017-01-25 | 北京京东尚科信息技术有限公司 | Remote procedure call realizing method, client side device and server device |
CN106909596A (en) * | 2016-06-23 | 2017-06-30 | 阿里巴巴集团控股有限公司 | Method for processing business, apparatus and system |
CN106453288A (en) * | 2016-09-29 | 2017-02-22 | 上海和付信息技术有限公司 | Asynchronous mode supporting distributed micro service framework system and implementation method thereof |
CN107888551A (en) * | 2016-09-30 | 2018-04-06 | 北京神州泰岳软件股份有限公司 | A kind of remote service calling method, device and system |
CN106411933A (en) * | 2016-11-15 | 2017-02-15 | 深圳市彬讯科技有限公司 | Lightweight RPC framework capable of service management and language calling |
CN106506509A (en) * | 2016-11-15 | 2017-03-15 | 深圳市彬讯科技有限公司 | Can carry out servicing the lightweight RPC framework implementation methods that administers with language call |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110879815A (en) * | 2019-11-26 | 2020-03-13 | 上海莉莉丝科技股份有限公司 | Method, device, equipment and storage medium for upgrading game database server |
CN113329046A (en) * | 2020-02-28 | 2021-08-31 | 珠海格力电器股份有限公司 | Data transmission method, system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104125208B (en) | Data transmission method and device | |
CN101847100B (en) | Method for expanding software application and device | |
CN1231029C (en) | Data transmission protocol using short information service | |
US20080215613A1 (en) | Method and System For Transferring Objects Between Programming Platforms Computer Program Product Thereof | |
CN101609415B (en) | Universal service calling system and method based on middleware | |
CN111552838B (en) | Data processing method and device, computer equipment and storage medium | |
CN101178717A (en) | Method for adaptation processing web page and web page adaptation device | |
CN108446105B (en) | Lightweight API Server development framework and development method | |
CN111064726B (en) | Method and system for realizing data conversion between GOOSE protocol and HDLC protocol | |
CN109862095A (en) | Data processing method and device based on Web service | |
CN110704200A (en) | Method and device for converting call interface | |
CN112988409B (en) | Interface calling method and device, computer equipment and storage medium | |
CN107632875A (en) | Electric business Interface integration method, system, computer equipment, readable storage medium storing program for executing | |
CN102629194A (en) | Novel application store adaptor facing mobile terminals | |
CA2539464A1 (en) | System and method for dynamic content processing with extendable provisioning | |
CN110247926A (en) | A kind of exchange method and system | |
CN107222461A (en) | Communication processing method and device | |
CN102263707A (en) | Method and system for sending messages | |
CN113890891A (en) | Data sharing interaction method and device of energy cloud network | |
CN111104122B (en) | Method for mapping xml service logic to java service logic | |
CN102486780A (en) | Method, client and server for asynchronous cross-domain transmission on extensible markup language (XML) data | |
CN104270453A (en) | Method for data communication between multilevel servers and servers | |
CN114675821B (en) | Service standardization system and method based on low codes | |
CN106878431B (en) | Method and device for converting node communication message format in distributed system | |
CN102281584A (en) | Method and system for implementing capability of Internet of things |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190607 |