CN101442524A - Method for data communication with national electric network marketing system server - Google Patents

Method for data communication with national electric network marketing system server Download PDF

Info

Publication number
CN101442524A
CN101442524A CNA2008101479605A CN200810147960A CN101442524A CN 101442524 A CN101442524 A CN 101442524A CN A2008101479605 A CNA2008101479605 A CN A2008101479605A CN 200810147960 A CN200810147960 A CN 200810147960A CN 101442524 A CN101442524 A CN 101442524A
Authority
CN
China
Prior art keywords
data
client
server
marketing system
system server
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
CNA2008101479605A
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.)
Chengdu Keluzhou Electronics Co Ltd
Original Assignee
Chengdu Keluzhou Electronics Co Ltd
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 Chengdu Keluzhou Electronics Co Ltd filed Critical Chengdu Keluzhou Electronics Co Ltd
Priority to CNA2008101479605A priority Critical patent/CN101442524A/en
Publication of CN101442524A publication Critical patent/CN101442524A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method for performing data communication with a national power network marketing system server, and relates to a data interface method. The invention aims to solve the problems of large code amount and necessity of performing verification for various times when the prior art performs data communication with a WebService server. A client encapsulates upstream data and unseals downstream data according to an SOAP protocol, and automatically encapsulates data which comprises user ID information to a Header part of the upstream data first before transmitting the data, wherein encapsulation of the upstream data by the client refers to conversion of data requiring upstream transmission into an XML format according to a predetermined file structure of the WebService server; the predetermined file structure is taken as an object and stored into a memory of the client by the mode of a memory node; and conversion of the upstream data into the XML format refers to filling of the data requiring upstream transmission into the corresponding memory node.

Description

Carry out the method for data communication with the national grid marketing system server
Technical field
The present invention relates to a kind of data interface method, particularly a kind of WebService server data interface of marketing system of and the SG186 of State Grid Corporation of China project carries out the method for data communication.
Background technology
The server of the marketing system of the SG186 of State Grid Corporation of China project provides WebService data-interface and client to communicate with exchanges data to transmit.
At present client is mainly by http protocol or use TCP/IP, udp protocol to be attached thereto to simulate by the mode of character string that the mode of corresponding data division handles again.This mode need repeatedly to send the checking request and verify that transmission course relatively bothers, and owing to the data structure that adopts character string, its size of code is big in the transfer of data of criticizing.
Summary of the invention
The objective of the invention is to solve prior art and WebService server and carry out the problem that the size of code that data communication exists is big, need multiple authentication, provide a kind of WebService server that utilizes soap protocol and State Grid Corporation of China to carry out the method for data communication, have fast, data reliable, the compatible stronger advantage of complete sum more.
Purpose of the present invention can realize by following technical proposals:
Carry out the method for data communication with the national grid marketing system server, described server is the WebService server, client is according to soap protocol encapsulation upstream data and seal off downlink data, will include earlier the Header part of the data encapsulation of subscriber authentication information to upstream data before uploading data automatically.
Described client encapsulation upstream data is meant, it is the XML form that the file structure of making an appointment according to the WebService server will need the data conversion of uplink.
Described file structure of making an appointment with the form of memory node as object storage in the internal memory of client, upstream data is converted into the XML form is meant that the data that will need uplink are filled into corresponding memory node.
Described client is sealed off downlink data and is meant that the file structure of making an appointment according to the WebService server is the form of client by the XML format conversion with the downlink data that receives.
Described file structure of making an appointment with the form of memory node as object storage in the internal memory of client, be that the form of client is meant in the memory node of downlink data by correspondence of the XML form that will receive and extracts the form that is converted into client with downlink data by the XML format conversion.
In the described method, the request server connectivity verification by after upstream data is encapsulated as the XML form.
The upstream data of the described XML of being encapsulated as form comprises SOAP:Envelope, SOAP:Header and SOAP:Body three parts, Header partly comprises necessary data statement and the request subscriber authentication information in the WebService transmission, and Body partly comprises the data content that needs uplink.
The data of described automatic encapsulation subscriber authentication information are meant that the interface document that client call is predetermined is finished the automatic filling of Header certain customers authentication information data after user end to server request connection is passed through.
The data procedures of described automatic encapsulation subscriber authentication information is, by the WriteHeader interface among the heavily loaded IHeaderHandler, in WriteHeader, generate the Header file content in conjunction with user configuration information, client is called the WriteHeader interface automatically before InvokeService, Header file content of WriteHeader generation this moment returns to client, the inner Header part of automatically the Header content being added in the data structure that needs uplink of client.
The present invention adopts said method, by one in the internal memory " file structure of making an appointment " operation being finished quick encapsulation to arbitrary data, because all operations all is to carry out in internal memory, operation to as if internal memory in object but not character string has been guaranteed the rapidity of operation; Secondly, object is from setting up the file structure that a WebService server reservation has just been determined in beginning, and the data that only need during use to transmit are filled into corresponding memory node and get final product, and have realized the encapsulation to arbitrary data, has flexibly, characteristics easily; Once more, this method not only possesses when data encapsulation fast, flexible characteristic, simultaneously also support the data that encapsulated are carried out reverse opening (when being mainly used in data downstream), guaranteed no matter to be that data uplink encapsulation or data downstream opening can both reach same effect, thereby have invertibity; For a collection of transfer of data, only need send the one-time authentication request to server, requests verification writes down authorization information automatically by the back, promptly encapsulates Soap:Header automatically, carries greatly and has shortened data transmission period, has improved operating efficiency.
As seen, adopt said method of the present invention, have the following advantages: the transmission data formatting to XML document easily and fast; Support XML data encapsulation and opening, promptly invertibity is strong, guarantees the compatibility of up-downgoing data manipulation; Simplified the preceding subscriber authentication of transfer of data, shortened the cycle of transfer of data greatly, increased work efficiency; Realized seamless combination with the SG186 marketing system of State Grid Corporation of China, avoided the border of system and interface, made data more complete, more reliable, can produce a desired effect.
Description of drawings
Fig. 1 is a schematic flow sheet of the present invention;
Fig. 2 is the principle schematic that encapsulates Header among the present invention automatically.
Embodiment
The present invention is further illustrated below in conjunction with specific embodiments and the drawings.
Carry out in the process of data communication with the WebService server of the marketing system of the SG186 of State Grid Corporation of China project, data flow is mainly divided two flow directions: uplink and downlink.Descending is that equipment/assets send in producer's equipment from the SG186 of State Grid Corporation of China marketing is used; Producer's equipment in state electricity SG186 marketing application, is gone equipment/asset item transfer of data after finishing set project on this process meaning.During both sides' data interaction is based upon and uses based on the WebService of soap protocol.
Above-mentioned producer's equipment is called client.
WebService mainly is a kind of interface that can intercom mutually, share and propose for the information that makes between original each isolated website.WebService is employed to be that Internet goes up unified, open standard, as HTTP, XML, SOAP (Simple Object Access Protocol), WSDL etc., so Web Service can be environment (Windows, Linux) the middle use of any these standards of support.Soap protocol (SimpleObject Access Protocal, Simple Object Access Protocol), it is one and is used to disperse the communications protocol based on XML with the information exchange of distributed environment lower network.
On the surface, WebService is exactly an application program, and it exposes an API that can call by Web to the external world, and method that can enough programmings is called the application program that realizes certain function by Web.
Method of the present invention as shown in Figure 1, client connects the WebService server of State Grid Corporation of China's marketing system according to soap protocol, the request server connectivity verification by after upstream data is encapsulated as the XML form that comprises SOAP:Envelope, SOAP:Header and SOAP:Body three parts automatically, Header partly comprises necessary data statement and the request subscriber authentication information in the WebService transmission, and Body partly comprises the data content that needs uplink.
Client encapsulation upstream data is meant, it is the XML form that the file structure of making an appointment according to the WebService server will need the data conversion of uplink; The file structure of making an appointment with the form of memory node as object storage in the internal memory of client, upstream data is converted into the XML form is meant that the data that will need uplink are filled into corresponding memory node.
Client is sealed off downlink data and is meant that the file structure of making an appointment according to the WebService server is the form of client by the XML format conversion with the downlink data that receives; The file structure of making an appointment be equally form with memory node as object storage in the internal memory of client, be that the form of client is meant in the memory node of downlink data by correspondence of the XML form that will receive and extracts the form that is converted into client with downlink data by the XML format conversion.
Automatically the data procedures of encapsulation subscriber authentication information as shown in Figure 2, by the WriteHeader interface among the heavily loaded IHeaderHandler, in WriteHeader, generate the Header file content in conjunction with user configuration information, client is called the WriteHeader interface automatically before InvokeService, Header file content of WriteHeader generation this moment returns to client, the inner Header part of automatically the Header content being added in the data structure that needs uplink of client.By this process, finish the automatic filling of Header certain customers authorization information, reach once connection, nonexpondable purpose.

Claims (9)

1, carries out the method for data communication with the national grid marketing system server, described server is the WebService server, it is characterized in that, client is according to soap protocol encapsulation upstream data and seal off downlink data, will include earlier the Header part of the data encapsulation of subscriber authentication information to upstream data before uploading data automatically.
2, carry out the method for data communication according to claim 1 with the national grid marketing system server, it is characterized in that, described client encapsulation upstream data is meant, it is the XML form that the file structure of making an appointment according to the WebService server will need the data conversion of uplink.
3, as carry out the method for data communication as described in the claim 2 with the national grid marketing system server, it is characterized in that, described file structure of making an appointment with the form of memory node as object storage in the internal memory of client, upstream data is converted into the XML form is meant that the data that will need uplink are filled into corresponding memory node.
4, carry out the method for data communication according to claim 1 with the national grid marketing system server, it is characterized in that, described client is sealed off downlink data and is meant that the file structure of making an appointment according to the WebService server is the form of client by the XML format conversion with the downlink data that receives.
5, as carry out the method for data communication as described in the claim 4 with the national grid marketing system server, it is characterized in that, described file structure of making an appointment with the form of memory node as object storage in the internal memory of client, be that the form of client is meant in the memory node of downlink data by correspondence of the XML form that will receive and extracts the form that is converted into client with downlink data by the XML format conversion.
6, as carry out the method for data communication as described in claim 2 or 3 with the national grid marketing system server, it is characterized in that, the request server connectivity verification by after upstream data is encapsulated as the XML form.
7, as carry out the method for data communication as described in the claim 6 with the national grid marketing system server, it is characterized in that, the upstream data of the described XML of being encapsulated as form comprises SOAP:Envelope, SOAP:Header and SOAP:Body three parts, Header partly comprises necessary data statement and the request subscriber authentication information in the WebService transmission, and Body partly comprises the data content that needs uplink.
8, carry out the method for data communication according to claim 1 with the national grid marketing system server, it is characterized in that, the data of described automatic encapsulation subscriber authentication information are meant after user end to server request connection is passed through, the interface document that client call is predetermined is finished the automatic filling of Header certain customers authentication information data.
9, as carry out the method for data communication as described in the claim 8 with the national grid marketing system server, it is characterized in that, the data procedures of described automatic encapsulation subscriber authentication information is, by the WriteHeader interface among the heavily loaded IHeaderHandler, in WriteHeader, generate the Header file content in conjunction with user configuration information, client is called the WriteHeader interface automatically before InvokeService, Header file content of WriteHeader generation this moment returns to client, the inner Header part of automatically the Header content being added in the data structure that needs uplink of client.
CNA2008101479605A 2008-12-23 2008-12-23 Method for data communication with national electric network marketing system server Pending CN101442524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101479605A CN101442524A (en) 2008-12-23 2008-12-23 Method for data communication with national electric network marketing system server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101479605A CN101442524A (en) 2008-12-23 2008-12-23 Method for data communication with national electric network marketing system server

Publications (1)

Publication Number Publication Date
CN101442524A true CN101442524A (en) 2009-05-27

Family

ID=40726767

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101479605A Pending CN101442524A (en) 2008-12-23 2008-12-23 Method for data communication with national electric network marketing system server

Country Status (1)

Country Link
CN (1) CN101442524A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997858A (en) * 2009-08-24 2011-03-30 华为终端有限公司 Method and device for consumer premises equipment wide area network management protocol (CWMP) conversation interaction
CN102917021A (en) * 2012-09-19 2013-02-06 深圳市融创天下科技股份有限公司 Method, system and terminal equipment for returning data on basis of Web service
CN107135014A (en) * 2017-03-23 2017-09-05 康体佳智能科技(深圳)有限公司 A kind of power line carrier data penetration transmission system and its data penetration transmission method
CN109040294A (en) * 2018-08-29 2018-12-18 广东电网有限责任公司 A kind of heterogeneous system standardization cut-in method and device for three-dimensional artificial monitoring
CN110557378A (en) * 2019-08-02 2019-12-10 西安飞机工业(集团)有限责任公司 network boundary security isolation and information one-way transmission system and transmission method
CN111198307A (en) * 2019-09-06 2020-05-26 国网冀北电力有限公司电力科学研究院 Power grid marketing analysis and decision method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997858A (en) * 2009-08-24 2011-03-30 华为终端有限公司 Method and device for consumer premises equipment wide area network management protocol (CWMP) conversation interaction
CN101997858B (en) * 2009-08-24 2013-11-06 华为终端有限公司 Method and device for consumer premises equipment wide area network management protocol (CWMP) conversation interaction
CN102917021A (en) * 2012-09-19 2013-02-06 深圳市融创天下科技股份有限公司 Method, system and terminal equipment for returning data on basis of Web service
CN107135014A (en) * 2017-03-23 2017-09-05 康体佳智能科技(深圳)有限公司 A kind of power line carrier data penetration transmission system and its data penetration transmission method
CN109040294A (en) * 2018-08-29 2018-12-18 广东电网有限责任公司 A kind of heterogeneous system standardization cut-in method and device for three-dimensional artificial monitoring
CN109040294B (en) * 2018-08-29 2021-09-17 广东电网有限责任公司 Heterogeneous system standardized access method and device for three-dimensional simulation monitoring
CN110557378A (en) * 2019-08-02 2019-12-10 西安飞机工业(集团)有限责任公司 network boundary security isolation and information one-way transmission system and transmission method
CN111198307A (en) * 2019-09-06 2020-05-26 国网冀北电力有限公司电力科学研究院 Power grid marketing analysis and decision method and system

Similar Documents

Publication Publication Date Title
CN108092884A (en) A kind of wireless access gateway system and application process
CN101442524A (en) Method for data communication with national electric network marketing system server
CN201146538Y (en) Apparatus for protocol conversion
WO2016015423A1 (en) Cost control information communication method and system based on electric system
ES2384923B1 (en) METHOD AND SYSTEM FOR MANAGING COMMUNICATIONS IN INDUSTRIAL CONTROL AND SUPERVISION SYSTEMS.
CN101141419B (en) Heterogeneous network protocol based communication method between digital household appliances
CN101867572B (en) The implementation method of wireless U disk and system
WO2013127191A1 (en) Internet of things protocol conversion system and conversion method
CN105577527A (en) Interaction method between smartwatch and wechat platform, interaction device and smartwatch
CN101521615B (en) Communication method for different networks and internetwork for smart machine
CN102629939B (en) Electric power enterprise service bus realization method and device
CN109347861B (en) Communication method of real-time dynamic monitoring system
CN111064726B (en) Method and system for realizing data conversion between GOOSE protocol and HDLC protocol
CN103532959A (en) Cross-platform network communication method
CN104243198B (en) A kind of network management and system based on network configuration protocol
CN102006192A (en) Control system and control method for digital family network equipment
CN109413094A (en) Aerospace data Transmission system based on HS-ADIX network
CN103647782A (en) Method for conversion between elevator communication protocol and elevator internet-of-things collection and communication protocol
CN105429781A (en) Network communication design method based on IEC1850/MMS
CN105744491A (en) Communication management system and method between different android devices
CN106648922A (en) Data collecting method based on XMPP
CN106657377B (en) A kind of WIA-PA/ interconnects manufacture network information service adapter and implementation method entirely
CN103701692A (en) Message forwarding method, system and server
CN106297225A (en) The remote control thereof of a kind of home controller and system
CN102480463B (en) Network interaction method and network interaction 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090527