CN103491135B - Device and method for conducting self-matching on data formats - Google Patents
Device and method for conducting self-matching on data formats Download PDFInfo
- Publication number
- CN103491135B CN103491135B CN201310392242.5A CN201310392242A CN103491135B CN 103491135 B CN103491135 B CN 103491135B CN 201310392242 A CN201310392242 A CN 201310392242A CN 103491135 B CN103491135 B CN 103491135B
- Authority
- CN
- China
- Prior art keywords
- data
- transmitted
- web system
- format
- recipient
- 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.)
- Active
Links
Abstract
The invention provides a device for conducting self-matching on data formats. The device is arranged in a sender web system and comprises a format recognition unit, a judgment unit, a format conversion unit and a data interaction unit. The format recognition unit is used for recognizing the data formats of data to be transmitted in the sender web system, the judgment unit is used for judging whether the data formats of the data to be transmitted are matched with required data formats or not, the data conversion unit is used for converting the data formats of the data to be transmitted into the required data formats under the mismatching condition, and the data interaction unit is used for sending the data to be transmitted after the format conversion to a receiver web system under the mismatching condition, or directly sending the data to be transmitted to the receiver web system. The invention further discloses a method for conducting the self-matching on the data formats. According to the technical scheme, a corresponding achievement can be added to each data format at a client terminal or a service terminal, namely, compatibility of the various data formats can be achieved in data transmission, and the self-adaption matching of the data formats is ensured.
Description
Technical field
The present invention relates to technical field of data transmission, in particular to a kind of device and of Self Matching data form
The method for planting Self Matching data form.
Background technology
Web services are the technologies of a Service-Oriented Architecture Based.Ensure that the service between different platform different system can phase
Mutually utilize.Ignore the technological disparity between different system.
Because system is different, the technology and data form that each system interactively with each other is based on also has very big difference
Not, the data form that how to make the data form that service is returned needs with user matches, and current industry has following several solutions
Scheme:
1)The first solution
Most common scheme is that service provider provides different services, and each service returns the data of different-format,
Service requester asks different remote services according to the demand of oneself to service provider, and so, it is right that service requester needs
The detail of every kind of service that service provider is provided has sufficiently understanding, to service provider system ask service when
The different service of the concrete formatted request of the local data of the basis for wanting explicit is waited, and in server end, it is also desirable to it is explicit
Different realizations are provided for each data form, and these are realized that announcement is gone out, to ensure that service request method, system can
Obtain the details of these concrete implementations.Such realization for having the disadvantage server end is more complicated, and needs service
Requesting party is familiar with the detail of the service of these complexity.
At present, in the industry the webservice of the restful based on JAX-RS of standard is exactly to take this scheme, and
The all Open Frameworks for meeting this standard at present employ this scheme.
Specifically as shown in figure 1, when system_A is interacted by network and system_B, system_B needs to provide
The corresponding service of all different data formats, than json forms as illustrated in the drawing, xml forms, pojo types etc..Meanwhile,
System_A is used as requesting party, in addition it is also necessary to understand the ground of the data form that the data form of oneself and service publisher issue
Location, according to the data form of oneself different services are asked, that is, the json issued in such as figure, and xml, pojo object etc. is no
With the service of data form.
2)Second solution
Network service provider is provided only and the service for returning is received and responded based on the request of a certain data form, such as
The xml data forms of standard, it is assumed that the data form of this " standard " be need use this network service each system can
Identification, the conversion of native format and reference format is then realized by user.It is at present popular based on standard soap agreement
WebService be exactly this scheme taken.
So, user is needed the request of data of oneself according to certain grammer(The such as webservice of soap modes
In wsdl files)To be converted to the data form semanteme that server end is capable of identify that.Then server end is according to standard syntax
Identification data, and return to the web responses of client standard data format.Client is required to recognize the number of this " standard "
According to form, the native data formats of oneself needs are then reconverted into.
It will be clear that the program remains a need for user has a clear understanding of the data form and corresponding reference format of itself, but
Data Format Transform can be realized.
3)The third solution
The system that service is issued provides various clients, for service requester selection.Different clients is provided not
The support of same data form, including request and the support of the data form for responding.So service requester be also required to according to work as
Front local data form and select different clients, client be responsible for and server end communicated and carried out data turn
Change.
This derives equivalent to one of first two scheme, and such advantage is the realization that server end need not be complicated,
The difference of data form is shielded by the client of support different data format.Have the disadvantage that user still needs understanding currently used
Data form, if active user is not the original holder of current data, or data source is in third party, selects client
Hold this operation for current request side user, remain very big limitation.
As shown in Fig. 2 system_B only issue it is a kind of support the service of standard data format, and provide for system_A
Various clients, the user of such system_A is it should be clearly understood that the data form of itself, then needs the number according to oneself
Different clients are selected according to form, than POJO types as illustrated in the drawing, various clients of xml and json forms.
Therefore, the requirement to user how is reduced, the Adaptive matching of data form is realized in data exchange process, into
For technical problem urgently to be resolved hurrily at present.
The content of the invention
The present invention is based on the problems referred to above, it is proposed that a kind of technology of new Self Matching data form, can be in client
End or service end are that the addition of every kind of data form is a kind of to be realized accordingly, you can various data forms are realized in data transfer
It is compatible, it is ensured that the Adaptive matching of data form.
In view of this, the present invention proposes a kind of device of Self Matching data form, in sender's web system, bag
Include:Format identification unit, for determining the data to be transmitted of described sender web system, and recognizes the data to be transmitted
Data form;Judging unit, for judging the data form and the required data of recipient's web system of the data to be transmitted
Whether form matches;Format conversion unit, in absence of such a match, the data form of the data to be transmitted being turned
It is changed to the required data form of recipient's web system;Data interaction unit, in absence of such a match, by lattice
The data to be transmitted after formula conversion is sent to recipient's web system, otherwise directly by data to be transmitted transmission
To recipient's web system.
In the technical scheme, sender's web system is directly checked the data form of data to be transmitted, and is judged
Go out and whether match with the data form required for recipient's web system, if mismatching, its data form is carried out automatically turning
Change, so that the user of sender's web system is without the need for understanding the data form to data to be transmitted, recipient's web system
Without the need for providing various services for different data forms or providing various clients, you can realize the self adaptation of data form
Match somebody with somebody, reduce the demand to user recipient's web system.
In above-mentioned technical proposal, it is preferable that the format identification unit includes:Data parse subelement, for parsing
The data to be transmitted, obtains the structure of the data to be transmitted;Structure comparing subunit, for by the data to be transmitted
Structure is compared with least one preset data structure, and using the corresponding data form of preset data structure for matching as
The data form of the data to be transmitted.
In the technical scheme, parsed and obtained by the structure to data to be transmitted so that by data structure
Comparison, can determine whether current data form matches, i.e., whether meet the actual demand of recipient's web system, from
And the user of sender's web system is understood without the need for the form to data to be transmitted, it helps reduce recipient web
The complexity of system.
In any of the above-described technical scheme, it is preferable that also include:Edit cell, for the edit instruction that basis is received,
Edlin is entered at least one preset data structure.
In the technical scheme, according to the actual requirements the data form of actual expenses can be added and be reduced, lead to
Cross and add more preset data structures, more data forms can be supported, so as to lift the success rate of Adaptive matching;It is logical
The quantity for reducing preset data structure is crossed, the time that format match can be caused to be spent is shorter, improve the form conversion of data
Efficiency.
In any of the above-described technical scheme, it is preferable that the data interaction unit is additionally operable to:Receive from the recipient
The returned data of web system;The format conversion unit is additionally operable to:By the Data Format Transform of the returned data to it is described
The data form of data to be transmitted is consistent, for the returned data after the conversion of described sender web system output format.
In the technical scheme, when data to be transmitted is sent to recipient's web system, to the data form for identifying
Recorded, so as to when the data of recipient's web system return are received, without the need for performing format identification repeatedly, you can straight
The data form of usage record is connect, for the conversion of the form of the data for returning, being favorably improved conversion efficiency, sender is reduced
The power consumption of web system.
In any of the above-described technical scheme, it is preferable that the judging unit is additionally operable to:Judge described sender web system
Whether form designated order that user send is received;Wherein, the format conversion unit is additionally operable to:If receiving, basis
The form designated order, the Data Format Transform by the returned data is the data form specified, otherwise by the return
The Data Format Transform of data is extremely consistent with the data form of the data to be transmitted.
In the technical scheme, except can by the form automatic identification to data to be transmitted and conversion, can with by
User specifies to data form so that sender's web system need not be by the form and preset data form of data to be transmitted
It is compared one by one, is favorably improved conversion efficiency.
According to another aspect of the invention, it is also proposed that a kind of method of Self Matching data form, including:Step 202, sends out
The side's of sending web system determines the data to be transmitted of itself;Step 204, recognizes the data form of the data to be transmitted, and judges institute
Whether the data form and the required data form of recipient's web system for stating data to be transmitted matches;Step 206, if not
Matching, then be the required data form of recipient's web system by the Data Format Transform of the data to be transmitted, and will
The data to be transmitted after form conversion is sent to recipient's web system, if matching, directly by the number to be transmitted
According to transmission to recipient's web system.
In the technical scheme, sender's web system is directly checked the data form of data to be transmitted, and is judged
Go out and whether match with the data form required for recipient's web system, if mismatching, its data form is carried out automatically turning
Change, so that the user of sender's web system is without the need for understanding the data form to data to be transmitted, recipient's web system
Without the need for providing various services for different data forms or providing various clients, you can realize the self adaptation of data form
Match somebody with somebody, reduce the demand to user recipient's web system.
In above-mentioned technical proposal, it is preferable that the process of the data form for recognizing the data to be transmitted includes:Solution
The data to be transmitted is analysed, the structure of the data to be transmitted is obtained;The structure of the data to be transmitted and at least one is pre-
If data structure is compared, and using the corresponding data form of preset data structure for matching as the data to be transmitted
Data form.
In the technical scheme, parsed and obtained by the structure to data to be transmitted so that by data structure
Comparison, can determine whether current data form matches, i.e., whether meet the actual demand of recipient's web system, from
And the user of sender's web system is understood without the need for the form to data to be transmitted, it helps reduce recipient web
The complexity of system.
In any of the above-described technical scheme, it is preferable that also include:According to the edit instruction for receiving, to described at least one
Plant preset data structure and enter edlin.
In the technical scheme, according to the actual requirements the data form of actual expenses can be added and be reduced, lead to
Cross and add more preset data structures, more data forms can be supported, so as to lift the success rate of Adaptive matching;It is logical
The quantity for reducing preset data structure is crossed, the time that format match can be caused to be spent is shorter, improve the form conversion of data
Efficiency.
In any of the above-described technical scheme, it is preferable that also include:Described sender web system is received from the reception
The returned data of square web system;By the Data Format Transform of the returned data to the data form with the data to be transmitted
Unanimously;The returned data after output format conversion.
In the technical scheme, when data to be transmitted is sent to recipient's web system, to the data form for identifying
Recorded, so as to when the data of recipient's web system return are received, without the need for performing format identification repeatedly, you can straight
The data form of usage record is connect, for the conversion of the form of the data for returning, being favorably improved conversion efficiency, sender is reduced
The power consumption of web system.
In any of the above-described technical scheme, it is preferable that also include:Described sender web system judges whether to receive use
The form designated order that family sends;If receiving, according to the form designated order, by the data form of the returned data
Be converted to the data form specified;Otherwise by the Data Format Transform of the returned data to the data with the data to be transmitted
Form is consistent.
In the technical scheme, except can by the form automatic identification to data to be transmitted and conversion, can with by
User specifies to data form so that sender's web system need not be by the form and preset data form of data to be transmitted
It is compared one by one, is favorably improved conversion efficiency.
Can be that every kind of data form adds a kind of corresponding reality in client or service end by above technical scheme
It is existing, you can the compatibility of various data forms to be realized in data transfer, it is ensured that the Adaptive matching of data form.
Description of the drawings
Fig. 1 shows a kind of principle schematic for realizing pattern matched in correlation technique;
Fig. 2 shows another kind of principle schematic for realizing pattern matched in correlation technique;
Fig. 3 shows the schematic block diagram of the device of Self Matching data form according to an embodiment of the invention;
Fig. 4 shows the schematic flow sheet of the method for Self Matching data form according to an embodiment of the invention;
Fig. 5 shows the principle schematic for realizing pattern matched according to an embodiment of the invention;
Fig. 6 shows the schematic flow sheet for realizing pattern matched according to an embodiment of the invention.
Specific embodiment
It is below in conjunction with the accompanying drawings and concrete real in order to be more clearly understood that the above objects, features and advantages of the present invention
Apply mode to be further described in detail the present invention.It should be noted that in the case where not conflicting, the enforcement of the application
Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description in order to fully understand the present invention, but, the present invention may be used also
Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below
Specific embodiment restriction.
Fig. 3 shows the schematic block diagram of the device of Self Matching data form according to an embodiment of the invention.
As shown in figure 3, the device 300 of Self Matching data form according to an embodiment of the invention, positioned at sender web systems
In system, including:Format identification unit 302, for determining the data to be transmitted of described sender web system, and treats described in recognizing
The data form of transmission data;Judging unit 304, for judging data form and the recipient web systems of the data to be transmitted
Whether required data form of uniting matches;Format conversion unit 306, in absence of such a match, will be described to be passed
The Data Format Transform of transmission of data is the required data form of recipient's web system;Data interaction unit 308, is used for
In absence of such a match, the data to be transmitted after is changed form is sent to recipient's web system, otherwise directly
The data to be transmitted is sent to recipient's web system.
In the technical scheme, sender's web system is directly checked the data form of data to be transmitted, and is judged
Go out and whether match with the data form required for recipient's web system, if mismatching, its data form is carried out automatically turning
Change, so that the user of sender's web system is without the need for understanding the data form to data to be transmitted, recipient's web system
Without the need for providing various services for different data forms or providing various clients, you can realize the self adaptation of data form
Match somebody with somebody, reduce the demand to user recipient's web system.
In above-mentioned technical proposal, it is preferable that the format identification unit 302 includes:Data parse subelement 3022, use
In the data to be transmitted is parsed, the structure of the data to be transmitted is obtained;Structure comparing subunit 3024, for treating described
The structure of transmission data is compared with least one preset data structure, and by the corresponding number of preset data structure for matching
According to form as the data to be transmitted data form.
In the technical scheme, parsed and obtained by the structure to data to be transmitted so that by data structure
Comparison, can determine whether current data form matches, i.e., whether meet the actual demand of recipient's web system, from
And the user of sender's web system is understood without the need for the form to data to be transmitted, it helps reduce recipient web
The complexity of system.
In any of the above-described technical scheme, it is preferable that also include:Edit cell 310, for being referred to according to the editor for receiving
Order, at least one preset data structure edlin is entered.
In the technical scheme, according to the actual requirements the data form of actual expenses can be added and be reduced, lead to
Cross and add more preset data structures, more data forms can be supported, so as to lift the success rate of Adaptive matching;It is logical
The quantity for reducing preset data structure is crossed, the time that format match can be caused to be spent is shorter, improve the form conversion of data
Efficiency.
In any of the above-described technical scheme, it is preferable that the data interaction unit 308 is additionally operable to:Reception connects from described
The returned data of debit's web system;The format conversion unit 306 is additionally operable to:By the Data Format Transform of the returned data
To consistent with the data form of the data to be transmitted, return described in after changing for described sender web system output format
Return data.
In the technical scheme, when data to be transmitted is sent to recipient's web system, to the data form for identifying
Recorded, so as to when the data of recipient's web system return are received, without the need for performing format identification repeatedly, you can straight
The data form of usage record is connect, for the conversion of the form of the data for returning, being favorably improved conversion efficiency, sender is reduced
The power consumption of web system.
In any of the above-described technical scheme, it is preferable that the judging unit 304 is additionally operable to:Judge described sender web system
Whether system receives the form designated order that user sends;Wherein, the format conversion unit 306 is additionally operable to:If receiving,
According to the form designated order, the Data Format Transform by the returned data is the data form specified, otherwise will be described
The Data Format Transform of returned data is extremely consistent with the data form of the data to be transmitted.
In the technical scheme, except can by the form automatic identification to data to be transmitted and conversion, can with by
User specifies to data form so that sender's web system need not be by the form and preset data form of data to be transmitted
It is compared one by one, is favorably improved conversion efficiency.
Fig. 4 shows the schematic flow sheet of the method for Self Matching data form according to an embodiment of the invention.
As shown in figure 4, the method for Self Matching data form according to an embodiment of the invention, including:Step 402, sends
Square web system determines the data to be transmitted of itself;Step 404, recognizes the data form of the data to be transmitted, and judges described
Whether the data form of data to be transmitted matches with the required data form of recipient's web system;Step 406, if not
Match somebody with somebody, be then the required data form of recipient's web system by the Data Format Transform of the data to be transmitted, and by lattice
The data to be transmitted after formula conversion is sent to recipient's web system, if matching, directly by the data to be transmitted
Send to recipient's web system.
In the technical scheme, sender's web system is directly checked the data form of data to be transmitted, and is judged
Go out and whether match with the data form required for recipient's web system, if mismatching, its data form is carried out automatically turning
Change, so that the user of sender's web system is without the need for understanding the data form to data to be transmitted, recipient's web system
Without the need for providing various services for different data forms or providing various clients, you can realize the self adaptation of data form
Match somebody with somebody, reduce the demand to user recipient's web system.
In above-mentioned technical proposal, it is preferable that the process of the data form for recognizing the data to be transmitted includes:Solution
The data to be transmitted is analysed, the structure of the data to be transmitted is obtained;The structure of the data to be transmitted and at least one is pre-
If data structure is compared, and using the corresponding data form of preset data structure for matching as the data to be transmitted
Data form.
In the technical scheme, parsed and obtained by the structure to data to be transmitted so that by data structure
Comparison, can determine whether current data form matches, i.e., whether meet the actual demand of recipient's web system, from
And the user of sender's web system is understood without the need for the form to data to be transmitted, it helps reduce recipient web
The complexity of system.
In any of the above-described technical scheme, it is preferable that also include:According to the edit instruction for receiving, to described at least one
Plant preset data structure and enter edlin.
In the technical scheme, according to the actual requirements the data form of actual expenses can be added and be reduced, lead to
Cross and add more preset data structures, more data forms can be supported, so as to lift the success rate of Adaptive matching;It is logical
The quantity for reducing preset data structure is crossed, the time that format match can be caused to be spent is shorter, improve the form conversion of data
Efficiency.
In any of the above-described technical scheme, it is preferable that also include:Described sender web system is received from the reception
The returned data of square web system;By the Data Format Transform of the returned data to the data form with the data to be transmitted
Unanimously;The returned data after output format conversion.
In the technical scheme, when data to be transmitted is sent to recipient's web system, to the data form for identifying
Recorded, so as to when the data of recipient's web system return are received, without the need for performing format identification repeatedly, you can straight
The data form of usage record is connect, for the conversion of the form of the data for returning, being favorably improved conversion efficiency, sender is reduced
The power consumption of web system.
In any of the above-described technical scheme, it is preferable that also include:Described sender web system judges whether to receive use
The form designated order that family sends;If receiving, according to the form designated order, by the data form of the returned data
Be converted to the data form specified;Otherwise by the Data Format Transform of the returned data to the data with the data to be transmitted
Form is consistent.
In the technical scheme, except can by the form automatic identification to data to be transmitted and conversion, can with by
User specifies to data form so that sender's web system need not be by the form and preset data form of data to be transmitted
It is compared one by one, is favorably improved conversion efficiency.
Fig. 5 shows the principle schematic for realizing pattern matched according to an embodiment of the invention.
As shown in figure 5, system_B provides only a kind of user resources service of set form and externally issues, it is not required to here
To be that different data forms issue different network services.And for system_A, it is not required that it is concerned about currently used number
According to form, without going oneself to select client, but the client of unified call Self Matching data form.
Above-mentioned client realizes that the process of Self Matching data form is as follows:
First, recognized and change data by data form identification and transform engine, between shielding different data format
Difference.Specifically, data form identification and transform engine can call data form identifier and data format converter.
Data format converter provides the identification of various data forms and realizes, and can be self-service according to user's needs
Extension.The converter of relatively common data form, such as the json Data Format Transforms of standard have for example been prefixed in Fig. 5
Device, xml data format converters etc., these converters can constitute converter chain, match successively, until obtaining final result.And
Data format converter also provides format syntax definition, can be by user according to the self-defined new form of self-demand, so as to reality
Now to the support of more data form.
In sum, regardless of current data format, system_A need not be concerned about, it is only necessary to access same visitor
Family end simultaneously obtains the service of system_B offers, and by client the identification and conversion of data form are completed, Self Matching number here
Various data form identifiers and data format converter are provided according to the client of form, if special data form,
New data form identifier can easily be expanded.
In addition, from the aspect of special circumstances and system effectiveness from user etc., data form identifier here and data
Format converter also allows user directly to specify specific data form, and this is applied to user to situation familiar to data structure.
If user specifies data form, then data conversion can be carried out according to the implementation strategy that user specifies, otherwise can enable certainly
Dynamic identifying system, the suitable data form identifier of Self Matching and data format converter, complete data interaction between network system
Automatic format conversion.
So, system_A can just be absorbed in Business Processing, without the difference being concerned about between different data format.
Specifically, such as incoming request data is xml data, then system_A need not pay close attention to current data lattice
Formula(Certainly, here our system design can also specify data form for user), it is only necessary to the incoming Self Matching number of data
According to the client of form, data form identification and transform engine will check whether requesting party specifies data form first, if
Specify, then directly remove matched data converter, otherwise, data form identifier can be called to go to check data form.
Based on the structure shown in Fig. 5, Fig. 6 shows the corresponding schematic flow sheet for realizing pattern matched.
As shown in fig. 6, realize the flow process of pattern matched according to an embodiment of the invention including:
First, user initiates to ask from client, such as, by " data input " step of starting in figure, input is specific
Xml data(By taking this type as an example), here afterwards system_A does not need focused data type, unified call Self Matching client
(That is Self Matching data form client).
The data of Self Matching client inspection input are request data or response data.Here first can be according to number of request
According to process, then check whether called side voluntarily specifies data type, specified data type information has been then if user
Data converter is directly invoked, otherwise calls data form identifier to carry out identification data form.
Data form identifier specifically performs the process of identification realization to be included:It is by analyzing the form of current data structure
It is no to match with known data structure, if matching, it is determined that the data form of the matching.Here chain-of-responsibilpattern pattern, registration are adopted
Multiple data structure identifiers are implemented(I.e. preset various known, data structures for being matched), successively
Match somebody with somebody.Similar incidents mechanism of transmission, data are transmitted on this chain, until some realization on chain being capable of final process number
According to, adopt the data structure identifier is easily extended in this way identification realize.Such as in figure, if cannot know
It is other, data can be transmitted, for being matched with next default data structure, until obtaining situation about matching.
If having identified data form, then data format converter can be passed to.Here data format converter
It is appearance in pairs with data form identifier.Namely can be while growth data format converter and data lattice when extension
Formula identifier.Here first check for whether current data form needs conversion, specifically can check current data format whether with
Data form required for the network service that server system_B is provided matches.Then can be required according to current service side
Data type, by solicited message structurized request body is converted to.Here we are directed to xml data, first using xml analytical tools
Necessary information is parsed, the desired structure objects of system_B are then assembled into, request is sent.
Send to system_B and ask, call network(web)Service, and obtain the user profile data asked.First
Data to obtaining do certain inspection, such as the inspection of data validation can re-call here data form identifier pair
Response is processed, the identification and conversion of for example above-mentioned request data of concrete steps.Here the specified letter of user itself can be paid the utmost attention to
Breath, if be not specifically designated, the concrete form transition response data of acquiescence data of request according to before, to ensure user
Request and the form uniformity of response data.
Here such as system_A does not specify the data form of desired data, then directly according to request data
Data form returns response data, and the data that system_B is returned are structurized user profile, are converted to by client here
Xml forms, return to system_A.
Finally, we obtain desired data, and service requester system_A need not be concerned about in this process data
Form, it is not required that gone to select the path of service and corresponding client, whole web services invoked procedure pair according to data form
It is fully transparent for system_A.
Technical scheme is described in detail above in association with accompanying drawing, technical scheme proposed by the present invention is perfectly solved
The deficiency of related art scheme:On the one hand simplify the issue of server service, on the other hand cause data form for
Client transparence, service requester need not pay close attention to the data form of native data formats or third party's data.This side
Formula facilitates client and remote service is called, and also enables a client to more easily expire using third party's data in addition
The sufficient business of oneself.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.
Claims (8)
1. a kind of device of Self Matching data form, in sender's web system, it is characterised in that include:
Format identification unit, for determining the data to be transmitted of described sender web system, and recognizes the data to be transmitted
Data form;
Judging unit, for judging the data form and the required data form of recipient's web system of the data to be transmitted
Whether match;
Format conversion unit, in absence of such a match, the Data Format Transform of the data to be transmitted being connect for described
The required data form of debit's web system;
Data interaction unit, in absence of such a match, the data to be transmitted after form is changed is sent to described
Recipient's web system, otherwise directly sends the data to be transmitted to recipient's web system;
The data interaction unit is additionally operable to:Receive the returned data from recipient's web system;
The format conversion unit is additionally operable to:By the Data Format Transform of the returned data to the number with the data to be transmitted
It is consistent according to form, for the returned data after the conversion of described sender web system output format.
2. the device of Self Matching data form according to claim 1, it is characterised in that the format identification unit bag
Include:
Data parse subelement, for parsing the data to be transmitted, obtain the structure of the data to be transmitted;
Structure comparing subunit, for the structure of the data to be transmitted to be compared with least one preset data structure,
And using the corresponding data form of preset data structure for matching as the data to be transmitted data form.
3. the device of Self Matching data form according to claim 2, it is characterised in that also include:
Edit cell, for according to the edit instruction for receiving, at least one preset data structure edlin being entered.
4. the device of Self Matching data form according to claim 1, it is characterised in that the judging unit is additionally operable to:
Judge whether described sender web system receives the form designated order that user sends;
Wherein, the format conversion unit is additionally operable to:If receiving, according to the form designated order, by the return number
According to Data Format Transform be the data form specified, otherwise by the Data Format Transform of the returned data to be passed with described
The data form of transmission of data is consistent.
5. a kind of method of Self Matching data form, it is characterised in that include:
Step 202, sender's web system determines the data to be transmitted of itself;
Step 204, recognizes the data form of the data to be transmitted, and judges the data form of the data to be transmitted and receive
Whether the required data form of square web system matches;
Step 206, if mismatching, by the Data Format Transform of the data to be transmitted for needed for recipient's web system
The data form asked, and the data to be transmitted after form is changed sent to recipient's web system, if matching,
Directly the data to be transmitted is sent to recipient's web system;
Described sender web system receives the returned data from recipient's web system;
The Data Format Transform of the returned data is extremely consistent with the data form of the data to be transmitted;
The returned data after output format conversion.
6. the method for Self Matching data form according to claim 5, it is characterised in that the identification number to be transmitted
According to the process of data form include:
The data to be transmitted is parsed, the structure of the data to be transmitted is obtained;
The structure of the data to be transmitted is compared with least one preset data structure, and by the preset data for matching
Data form of the corresponding data form of structure as the data to be transmitted.
7. the method for Self Matching data form according to claim 6, it is characterised in that also include:
According to the edit instruction for receiving, edlin is entered at least one preset data structure.
8. the method for Self Matching data form according to claim 5, it is characterised in that also include:
Described sender web system judges whether to receive the form designated order that user sends;
If receiving, according to the form designated order, the Data Format Transform by the returned data is the data specified
Form;
It is otherwise that the Data Format Transform of the returned data is extremely consistent with the data form of the data to be transmitted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310392242.5A CN103491135B (en) | 2013-09-02 | 2013-09-02 | Device and method for conducting self-matching on data formats |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310392242.5A CN103491135B (en) | 2013-09-02 | 2013-09-02 | Device and method for conducting self-matching on data formats |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103491135A CN103491135A (en) | 2014-01-01 |
CN103491135B true CN103491135B (en) | 2017-04-19 |
Family
ID=49831088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310392242.5A Active CN103491135B (en) | 2013-09-02 | 2013-09-02 | Device and method for conducting self-matching on data formats |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103491135B (en) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107168971B (en) * | 2016-03-07 | 2020-10-27 | 阿里巴巴集团控股有限公司 | Data processing method and device for webpage application |
CN106897185B (en) * | 2016-07-08 | 2020-04-24 | 阿里巴巴集团控股有限公司 | Method and device for outputting abnormity |
CN106528744A (en) * | 2016-10-28 | 2017-03-22 | 宁德时代新能源科技股份有限公司 | Format conversion method and system |
CN107463999B (en) * | 2017-08-14 | 2020-06-23 | 南宁学院 | Hydropower equipment repair processing method based on communication platform |
CN108038092A (en) * | 2017-11-09 | 2018-05-15 | 捷开通讯(深圳)有限公司 | A kind of conversion method, intelligent terminal and the storage device of APN data formats |
CN110413957A (en) * | 2018-04-28 | 2019-11-05 | 中移(苏州)软件技术有限公司 | The method and processor of data exchange, server, data interchange platform |
CN110532305B (en) * | 2018-05-23 | 2022-11-08 | 中国移动通信集团浙江有限公司 | Service data cutting-over method and system |
CN108833954B (en) * | 2018-06-07 | 2020-12-11 | 深圳市亿联智能有限公司 | Data analysis mode supporting multiple IPTV data formats |
CN109214196B (en) * | 2018-08-13 | 2022-04-19 | 创新先进技术有限公司 | Data interaction method, device and equipment |
CN110381022B (en) * | 2019-06-13 | 2021-12-10 | 视联动力信息技术股份有限公司 | Data acquisition method and system applied to video network |
CN111046245A (en) * | 2019-12-11 | 2020-04-21 | 杭州趣链科技有限公司 | Multi-source heterogeneous data source fusion calculation method, system, equipment and storage medium |
CN111128402A (en) * | 2019-12-20 | 2020-05-08 | 天津新开心生活科技有限公司 | Data format conversion method and device, storage medium and electronic equipment |
CN111192143B (en) * | 2019-12-25 | 2023-07-18 | 达闼机器人股份有限公司 | Data processing method, device, storage medium and blockchain node |
CN111245965B (en) * | 2020-04-26 | 2020-07-24 | 智博云信息科技(广州)有限公司 | Data synchronization method and system |
CN116325703A (en) * | 2020-09-28 | 2023-06-23 | 华为技术有限公司 | Data format processing method and device |
CN114416838A (en) * | 2021-12-27 | 2022-04-29 | 国网天津市电力公司 | Method for data transmission among power multi-production systems |
CN116719866B (en) * | 2023-05-09 | 2024-02-13 | 上海银满仓数字科技有限公司 | Multi-format data self-adaptive distribution method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5911776A (en) * | 1996-12-18 | 1999-06-15 | Unisys Corporation | Automatic format conversion system and publishing methodology for multi-user network |
CN101056277A (en) * | 2006-04-10 | 2007-10-17 | 三星电子株式会社 | Method for transferring a content in dlna system |
CN102413075A (en) * | 2011-12-18 | 2012-04-11 | 上海量明科技发展有限公司 | Method and system for changing format during data transmission |
CN103139170A (en) * | 2011-11-30 | 2013-06-05 | 中国联合网络通信集团有限公司 | Service data sending method, media switching center and network system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3823929B2 (en) * | 2002-05-17 | 2006-09-20 | ソニー株式会社 | Information processing apparatus, information processing method, content distribution apparatus, content distribution method, and computer program |
CN1181651C (en) * | 2002-09-24 | 2004-12-22 | 联想(北京)有限公司 | Method for automatic matching terminal devices in household network |
CN101707734A (en) * | 2009-05-25 | 2010-05-12 | 南京师范大学 | Adaptive acquiring and sending device for mobile time-space positioning video-audio data |
EP2400389B1 (en) * | 2010-06-24 | 2016-05-25 | Alcatel Lucent | A method, a system, a server, a device, a computer program and a computer program product for transmitting data in a computer network |
-
2013
- 2013-09-02 CN CN201310392242.5A patent/CN103491135B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5911776A (en) * | 1996-12-18 | 1999-06-15 | Unisys Corporation | Automatic format conversion system and publishing methodology for multi-user network |
CN101056277A (en) * | 2006-04-10 | 2007-10-17 | 三星电子株式会社 | Method for transferring a content in dlna system |
CN103139170A (en) * | 2011-11-30 | 2013-06-05 | 中国联合网络通信集团有限公司 | Service data sending method, media switching center and network system |
CN102413075A (en) * | 2011-12-18 | 2012-04-11 | 上海量明科技发展有限公司 | Method and system for changing format during data transmission |
Also Published As
Publication number | Publication date |
---|---|
CN103491135A (en) | 2014-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103491135B (en) | Device and method for conducting self-matching on data formats | |
CN105763619B (en) | The method and device that client and server-side are communicated | |
US20140297809A1 (en) | Apparatus and method for processing multiple open apis | |
CN102655481B (en) | A kind of instant messaging chat content inspection method based on webpage and system | |
CN108337236A (en) | A kind of gRPC call methods and device based on Protobuf and HTTP/1.1 | |
US11431806B2 (en) | Internet of things information system of multiple objects | |
CN105721473A (en) | WEB side remote invoking optimizing method and system | |
CN104717647B (en) | Professional ability method for authenticating, equipment and system | |
CN104702675B (en) | The response method and device of customer incident | |
CN101854371A (en) | Method and device for calling and processing JavaScript object | |
CN110377437A (en) | Communication means, computer equipment and storage medium between a kind of micro services | |
CN107632875A (en) | Electric business Interface integration method, system, computer equipment, readable storage medium storing program for executing | |
CN107368334B (en) | Business plug-in interaction system and method | |
CN101953188B (en) | Method and apparatus for processing multi-channel request subscription under service management platform | |
CN104660547B (en) | A kind of service platform for realizing telecommunication | |
CN103220343B (en) | Big data multi-system retransmission method | |
CN102546225B (en) | Video resource sharing method and management platform | |
RU2604983C2 (en) | Service parsing method flexibly adapted to ims system service tag | |
CN108924773B (en) | Message processing method and device | |
CN103533001A (en) | Communication method and communication system based on HTTP multi-proxy, and intermediate proxy server | |
CN115333943A (en) | Deterministic network resource configuration system, method, device and storage medium | |
CN109829708A (en) | A kind of transaction processing system | |
CN101925021B (en) | Method/system for processing messages and convergence service system | |
CN107145535A (en) | Instant communicating method and device and server | |
CN109525539B (en) | Capability calling method, call receipt method, information processing method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100094 Haidian District North Road, Beijing, No. 68 Applicant after: Yonyou Network Technology Co., Ltd. Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park Applicant before: UFIDA Software Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |