CN103812916A - Method and device for transmitting data between different terminals - Google Patents
Method and device for transmitting data between different terminals Download PDFInfo
- Publication number
- CN103812916A CN103812916A CN201210460447.8A CN201210460447A CN103812916A CN 103812916 A CN103812916 A CN 103812916A CN 201210460447 A CN201210460447 A CN 201210460447A CN 103812916 A CN103812916 A CN 103812916A
- Authority
- CN
- China
- Prior art keywords
- terminal
- data
- xml file
- http packet
- xml
- 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
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method and device for transmitting data between different terminals. The method mainly comprises the steps of enabling a first terminal to package data needing transmitting into an XML (extensible markup language) format, and generating XML files, and enabling the first terminal to assemble hyper text transport protocol (HTTP) data packets according to the XML files; and enabling the first terminal to send the HTTP data packets to a second terminal through a wireless communication network. Data transmission can be effectively performed between the terminals of different data interfaces, and the terminal interfaces do not need to be modified specifically.
Description
Technical field
The present invention relates to Computer Applied Technology field, relate in particular to the method and apparatus that transmits data between a kind of different terminals.
Background technology
Along with the raising of compatriots' income, purchase car quantity and be how much level risings at present, the vehicle purchase tax administration of collection also enters the new stage, and original hall mode of declaring is also fallen behind gradually, and queue up and declare dutiable goods in hall everywhere, can't bear the heavy load.
Vehicle purchase tax tax is paid to the 4S shop that extends to, negotiate car people uses the vehicle purchase tax self-aided terminal in 4S shop to carry out tax to pay purchasing after car, dutiable certificate has been obtained into new a kind of vehicle purchase tax and has been declared collection mode, both facilitate taxpayer to declare dutiable goods, also alleviated the pressure of the point of vehicle purchase tax collection everywhere fieldwork.
But the data-interface of the terminal of the vehicle purchase tax self-aided terminal in current 4S shop and vehicle purchase tax collection system is inconsistent, making to purchase car people cannot be effectively by operations such as vehicle purchase tax self-aided terminal complete that tax is paid.
Summary of the invention
Embodiments of the invention provide a kind of transmit data between different terminals method, can effectively carry out transfer of data to realize between the terminal with different pieces of information interface.
A method of transmitting data between different terminals, comprising:
The data encapsulation of needs transmission is become expandable mark language XML form by first terminal, and generate XML file, and described first terminal is according to described XML file assembling HTML (Hypertext Markup Language) HTTP packet;
Described first terminal by cordless communication network by described HTTP Packet Generation to the second terminal.
A kind of terminal, comprising:
Data encapsulation module, for the data encapsulation of needs transmission is become to XML form, and generates XML file;
Data are submitted module to, for the XML file assembling HTTP packet generating according to described data encapsulation module, by cordless communication network, described HTTP Packet Generation are arrived to other terminal.
The technical scheme being provided by the embodiment of the invention described above can find out, the embodiment of the present invention becomes XML form by terminal by the data encapsulation of needs transmission, and generates XML file, according to described XML file assembling HTTP packet, and sends to other terminal.Make to have between the terminal of different pieces of information interface and can effectively carry out transfer of data, do not need specially the interface of terminal to be changed.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Between a kind of different terminals that Fig. 1 provides for the embodiment of the present invention one, transmit the principle schematic of the method for data;
Between a kind of different terminals that Fig. 2 provides for the embodiment of the present invention two, transmit the concrete process chart of the method for data;
The concrete structure figure of a kind of terminal that Fig. 3 provides for the embodiment of the present invention two.
Embodiment
For ease of the understanding to the embodiment of the present invention, be further explained explanation below in conjunction with accompanying drawing as an example of several specific embodiments example, and each embodiment does not form the restriction to the embodiment of the present invention.
Embodiment mono-
Between a kind of different terminals that this embodiment provides, transmit data method principle schematic as shown in Figure 1, concrete handling process as shown in Figure 2, comprises following treatment step:
The data encapsulation of needs transmission is become XML(Extensible MarkupLanguage, extend markup language by step 21, first terminal) form, and generate XML file.
Described XML file comprises multiple parameter names and each parameter value, and as shown in Figure 1, described XML file comprises parameter 1,2,3, and corresponding value is respectively parameter z1, parameter z2 and parameter z3.
Then, the data encapsulation of needs transmission is become XML form by the second terminal, and generate XML file, and described the second terminal is according to described XML file assembling HTTP packet, described the second terminal by cordless communication network by described HTTP Packet Generation to first terminal.
The data transmission method of this embodiment can be applied to the vehicle purchase tax self-aided terminal in above-mentioned 4S shop, makes user by effectively carrying out transfer of data between vehicle purchase tax self-aided terminal and the terminal of vehicle purchase tax collection system.
Embodiment bis-
This embodiment provides a kind of terminal, and its concrete structure as shown in Figure 3, comprises following module:
Data are submitted module 32 to, for the XML file assembling HTTP packet generating according to described data encapsulation module, by cordless communication network, described HTTP Packet Generation are arrived to other terminal.
Further, described terminal can also comprise:
The detailed process and the preceding method embodiment that transmit data with the device of the embodiment of the present invention are similar, repeat no more herein.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
One of ordinary skill in the art will appreciate that: the module in the equipment in embodiment can be described and be distributed in the equipment of embodiment according to embodiment, also can carry out respective change and be arranged in the one or more equipment that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into multiple submodules.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random AccessMemory, RAM) etc.
In sum, the embodiment of the present invention becomes XML form by terminal by the data encapsulation of needs transmission, and generates XML file, according to described XML file assembling HTTP packet, and sends to other terminal.Make to have between the terminal of different pieces of information interface and can effectively carry out transfer of data, do not need specially the interface of terminal to be changed.
The embodiment of the present invention can be avoided docking system effectively because vehicle purchase tax self-service terminal system carries out the cost that interface exploitation brings, and also reduces independent development interface debugging, and can extend the useful life of docking system.
The above; only for preferably embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with in technical scope that those skilled in the art disclose in the present invention; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (6)
1. a method of transmitting data between different terminals, is characterized in that, comprising:
The data encapsulation of needs transmission is become expandable mark language XML form by first terminal, and generate XML file, and described first terminal is according to described XML file assembling HTML (Hypertext Markup Language) HTTP packet;
Described first terminal by cordless communication network by described HTTP Packet Generation to the second terminal.
2. the method for transmitting data between different terminals according to claim 1, is characterized in that, described XML file comprises multiple parameter names and each parameter value.
3. the method for transmitting data between different terminals according to claim 1 and 2, is characterized in that, described method also comprises:
Described the second terminal receives after described HTTP packet, and described HTTP packet is resolved, and obtains described XML file, and described XML file is carried out to decapsulation, obtains the described data that need transmission.
4. the method for transmitting data between different terminals according to claim 3, is characterized in that, described method also comprises:
The data encapsulation of needs transmission is become XML form by the second terminal, and generate XML file, and described the second terminal is according to described XML file assembling HTTP packet;
Described the second terminal by cordless communication network by described HTTP Packet Generation to first terminal.
5. a terminal, is characterized in that, comprising:
Data encapsulation module, for the data encapsulation of needs transmission is become to XML form, and generates XML file;
Data are submitted module to, for the XML file assembling HTTP packet generating according to described data encapsulation module, by cordless communication network, described HTTP Packet Generation are arrived to other terminal.
6. terminal according to claim 5, is characterized in that, described terminal also comprises:
Data resolution module, for receiving after the HTTP packet of other terminal transmission, resolves described HTTP packet, obtains described XML file, and described XML file is carried out to decapsulation, obtains the data of transmission.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210460447.8A CN103812916A (en) | 2012-11-15 | 2012-11-15 | Method and device for transmitting data between different terminals |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210460447.8A CN103812916A (en) | 2012-11-15 | 2012-11-15 | Method and device for transmitting data between different terminals |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103812916A true CN103812916A (en) | 2014-05-21 |
Family
ID=50709114
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210460447.8A Pending CN103812916A (en) | 2012-11-15 | 2012-11-15 | Method and device for transmitting data between different terminals |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103812916A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030195871A1 (en) * | 2002-04-12 | 2003-10-16 | Cai-Yang Luo | General platform and method for querying of intellectual property information |
CN101087442A (en) * | 2006-11-24 | 2007-12-12 | 华为技术有限公司 | Method and system for terminal and content share |
CN101119327A (en) * | 2006-08-04 | 2008-02-06 | 陆悦 | Instant chatting implementation system and method thereof |
CN101557426A (en) * | 2009-05-07 | 2009-10-14 | 中兴通讯股份有限公司 | Web service-based and uniformly managed interface message processor, web service component and method thereof |
US20110208857A1 (en) * | 2010-02-03 | 2011-08-25 | Odyssey Software, Inc. | Method, system, and computer readable medium for gathering usage statistics |
-
2012
- 2012-11-15 CN CN201210460447.8A patent/CN103812916A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030195871A1 (en) * | 2002-04-12 | 2003-10-16 | Cai-Yang Luo | General platform and method for querying of intellectual property information |
CN101119327A (en) * | 2006-08-04 | 2008-02-06 | 陆悦 | Instant chatting implementation system and method thereof |
CN101087442A (en) * | 2006-11-24 | 2007-12-12 | 华为技术有限公司 | Method and system for terminal and content share |
CN101557426A (en) * | 2009-05-07 | 2009-10-14 | 中兴通讯股份有限公司 | Web service-based and uniformly managed interface message processor, web service component and method thereof |
US20110208857A1 (en) * | 2010-02-03 | 2011-08-25 | Odyssey Software, Inc. | Method, system, and computer readable medium for gathering usage statistics |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103763182B (en) | A kind of implementation method of customer service request based on wechat public platform | |
CA2806725C (en) | Integrating payment aggregators with e-commerce platform | |
CN103650546A (en) | Method and apparatus for handling incoming status messages | |
CN104081360A (en) | Tracking data usage under a schematized data plan | |
JP2007520803A (en) | Investment database application | |
CN105556865A (en) | Wireless technology bridging system | |
CN108040060A (en) | The method and device of inter-network lock communication | |
CN102208923A (en) | Application-type service management method of near filed communication intelligent card and system thereof | |
CN108648128A (en) | Vehicular rescue processing method, system, equipment and storage medium | |
CN103793818B (en) | More smart card payment systems, method, Mobile payment terminal and credible platform | |
CN107067559A (en) | A kind of method and apparatus for realizing charging pile interconnection charging | |
CN109087151A (en) | A kind of block catenary system based on General integral | |
CN103703741A (en) | Method for disseminating application distribution, terminal and server | |
CN108805379A (en) | Support that multi-mode is honoured an agreement the system and method for flow | |
CN105528655A (en) | Ticket buying method and system | |
CN110347645A (en) | A kind of electronic document deposits card method and device | |
KR101614217B1 (en) | Wireless vibration pager for payment small sum based on NFC, NFC management server, and method for small sum payment using the same | |
CN107203877A (en) | The method and apparatus for closely realizing business between account | |
CN103646015B (en) | Transmission, the method and system for receiving and transmitting XML message | |
CN103812916A (en) | Method and device for transmitting data between different terminals | |
CN102088690B (en) | Method, device and system for acquiring user using service information | |
CN102298559B (en) | Handheld terminal and with computer method for information interaction between and system | |
CN116385181A (en) | Business transaction method, system, storage medium and electronic equipment | |
CN105577792A (en) | Method and device for displaying payment product | |
CN109285001A (en) | The equipment of payable transport cost, unit equipment, system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20140521 |