CN103812916A - Method and device for transmitting data between different terminals - Google Patents

Method and device for transmitting data between different terminals Download PDF

Info

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
Application number
CN201210460447.8A
Other languages
Chinese (zh)
Inventor
连俊
魏齐
陈懿
尹春天
贾希强
张玉魁
杜英垒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201210460447.8A priority Critical patent/CN103812916A/en
Publication of CN103812916A publication Critical patent/CN103812916A/en
Pending legal-status Critical Current

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

Between different terminals, transmit the method and apparatus of data
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.
Step 22, described first terminal are according to described XML file assembling HTTP(HyperTextTransfer Protocol, HTML (Hypertext Markup Language)) packet, by cordless communication network by described HTTP Packet Generation to the second terminal.
Step 23, described the second terminal receive after described HTTP packet, and described HTTP packet is resolved, and obtain described XML file, and described XML file is carried out to decapsulation, obtain the described data that need transmission.
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 encapsulation module 31, for the data encapsulation of needs transmission is become to XML form, and generates XML file;
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:
Data resolution module 33, 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.
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.
CN201210460447.8A 2012-11-15 2012-11-15 Method and device for transmitting data between different terminals Pending CN103812916A (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
CN104506644B (en) A kind of method, apparatus and mobile terminal for carrying out network data access
CN102208923B (en) Application-type service management method of near filed communication intelligent card and system thereof
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
EP2631859A1 (en) Integrating payment aggregators with e-commerce platform
CN103703741B (en) application program distribution method, terminal and server
CN108648128A (en) Vehicular rescue processing method, system, equipment and storage medium
CN104572077A (en) Database service processing method and business system
CN107067559A (en) A kind of method and apparatus for realizing charging pile interconnection charging
CN103052049B (en) Adjust the method for user's access service, Apparatus and system
CN107808206A (en) It is a kind of to pay out processing method, server and passenger terminal with car order
CN109087151A (en) A kind of block catenary system based on General integral
CN108805379A (en) Support that multi-mode is honoured an agreement the system and method for flow
CN102893560A (en) Method and network device for transmitting data stream
CN105554722A (en) Package recommendation method and device
CN105205947A (en) Non-contact IC card recharging 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
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

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