CN111431859A - Processing method for converting socket interface into socket interface system - Google Patents
Processing method for converting socket interface into socket interface system Download PDFInfo
- Publication number
- CN111431859A CN111431859A CN202010124679.0A CN202010124679A CN111431859A CN 111431859 A CN111431859 A CN 111431859A CN 202010124679 A CN202010124679 A CN 202010124679A CN 111431859 A CN111431859 A CN 111431859A
- Authority
- CN
- China
- Prior art keywords
- interface
- socket
- format
- message
- data
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
- H04L41/0273—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/06—Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a processing method for converting a socket interface into a socket interface system, wherein the system is provided with an input interface and an output interface, the input interface externally provides a socket access interface, the output interface is in butt joint with socket interfaces provided by other systems, the system receives incoming data through the socket access interface, converts the data into a data format required by the socket interface, then is connected with the socket interfaces provided by other systems, and transmits the data to the next system. By the mode, a large amount of cost and time can be saved for upgrading and reconstructing different interfaces of the application software.
Description
Technical Field
The invention relates to the technical field of financial software systems, in particular to a processing method for converting a socket interface into a socket interface system.
Background
socket is an abstraction layer between the application layer and the transport layer that abstracts the complex operations of the TCP/IP layer into several simple interface provisioning layer calls to implemented processes to communicate in the network. socket is designed facing to a client/server model, different socket system calls are provided aiming at a client program and a server program, and the problem of establishing communication connection between processes is skillfully solved by utilizing a client/server mode.
HTTP is an object-oriented protocol belonging to the application layer, and is suitable for distributed hypermedia information systems due to its simple, fast, and easy way. HTTP (hypertext transfer protocol) is a stateless application-layer protocol based on request and response modes, often TCP-based, connection mode, which is a standard (TCP) for client and server side requests and responses, and the client initiates an HTTP request to a specified port (default port is 80) on the server. The server on which the response is made stores the required resources.
SOAP is based on XM L language and XSD standard, which defines a set of encoding rules defining how to represent data as a message and how to transmit SOAP messages over HTTP Protocol, and consists of four parts, SOAP messages are basically unidirectional transmissions from sender to receiver, often combined to perform a pattern similar to request SOAP/reply.
Today, interfaces between financial industry software systems are becoming more and more abundant, from an initial single socket interface to the coexistence of a plurality of interfaces at present, including new interfaces developed in recent years such as soap and the like. The application of new interfaces such as the soap brings fresh blood to the financial industry, diversified solutions, wider data transmission expansion, and more stable and efficient file data interaction capacity, but with the development of new interfaces such as the soap, software systems developed by standard C language used in many financial industries are not compelling or even unable to be docked when being docked with new interfaces such as the soap, and huge waste of manpower and time is brought if the software systems are redesigned and developed due to the non-universality of the interfaces. At present, most of old system interfaces in the financial industry are socket interfaces, and the socket interfaces cannot be or are difficult to be butted.
Disclosure of Invention
The invention mainly solves the technical problem of providing a processing method for a socket interface to socket interface system, supports flexible configuration of a socket message header when a socket interface is converted into a socket interface, is internally integrated with various common socket message headers, and can perform automatic test to determine optimal message header selection.
In order to solve the technical problems, the invention adopts a technical scheme that: the system is provided with an input interface and an output interface, the input interface provides a socket access interface for the outside, the output interface is in butt joint with socket interfaces provided by other systems, the system receives incoming data through the socket access interface, converts the data into a data format required by the socket interface, then connects the socket interfaces provided by other systems and transmits the data to the next system;
the processing method of the system comprises the following steps:
step 1, starting a system;
step 2, after the system is started, establishing a service end of a socket interface, and monitoring a corresponding service port to wait for receiving data;
step 3, after receiving the uploaded data, connecting a corresponding soap interface service according to preset or analyzed data;
step 4, after the soap interface service is connected, automatically detecting the type of the soap interface, and sending several common message formats in sequence during detection, if the received corresponding format returns correctly, the format used by the opposite side can be confirmed, and the system can automatically record the corresponding message packaging format as the default format; if the message format of the soap interface provider is not successfully monitored, the system reads the manually configured message format and packages data according to the manually configured message format;
step 5, if the automatic detection in the step 4 is successful, the system automatically fills the message header and the message format of the soap interface;
step 6, if the automatic detection in the step 4 fails, reading a message header and a message format of a manually configured configuration file filling soap interface;
step 7, the system analyzes the message header and the message format according to the step 5 or the step 6, rearranges and packages the uplink message received by the socket interface according to the format and sends the uplink message to a service provider of the socket interface according to the socket interface mode;
and 8, completing the conversion and forwarding process from the whole socket interface to the socket interface.
Further, the manual configuration method in step 4 is only required to configure the corresponding message format in the corresponding configuration file, including the commonly used communication mode, communication version, and request mode.
Further, the system adopts a standard C language as a development language.
The invention has the beneficial effects that: the invention assists data exchange and message forwarding among different interfaces; powerful guarantee and technical feasibility are provided for cross-interface data communication between large-scale integrated systems.
Drawings
Fig. 1 is a flowchart of a processing method of a socket interface to socket interface system according to a preferred embodiment of the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
Referring to fig. 1, an embodiment of the present invention includes:
a processing method for converting socket interface to socket interface system, the system uses standard C language as development language, the system is equipped with input interface and output interface, the input interface provides socket access interface, the output can be connected to socket interface provided by other system, the system receives incoming data through socket access interface, converts data into data format required by socket interface, then connects to socket interface provided by other system and transmits data to next system;
the system supports multiple soap message formats and can be easily configured through a configuration file. The system can automatically detect the message type of a common soap interface provider, and can automatically configure if the detection is successful.
A processing method for converting socket interface to socket interface system includes the following steps:
step 1, starting a system;
step 2, after the system is started, establishing a service end of a socket interface, and monitoring a corresponding service port to wait for receiving data;
step 3, after receiving the uploaded data, connecting a corresponding soap interface service according to preset or analyzed data;
and 4, after the soap interface service is connected, automatically detecting the type of the soap interface, sequentially sending a plurality of common message formats during detection, if the received corresponding format is correctly returned, confirming that the format used by the opposite side is the format, and automatically recording the corresponding message packaging format by the system as a default format. And if the message format of the soap interface provider is not successfully monitored, the system reads the manually configured message format and packages the data according to the manually configured message format. The manual configuration method is to configure the corresponding message format in the corresponding configuration file, including the commonly used communication mode, communication version, request mode, etc.
Step 5, if the automatic detection in the step 4 is successful, the system automatically fills the message header and the message format of the soap interface
And 6, reading a message header and a message format of a manually configured configuration file filling soap interface if the automatic detection in the step 4 fails.
And 7, the system analyzes the message header and the message format according to the step 5 or the step 6, rearranges and packages the uplink message received by the socket interface according to the format and sends the uplink message to a service provider of the socket interface according to the socket interface mode.
And 8, completing the conversion and forwarding process from the whole socket interface to the socket interface.
The invention assists data exchange and message forwarding among different interfaces; powerful guarantee and technical feasibility are provided for cross-interface data communication between large-scale integrated systems.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (3)
1. A processing method for converting a socket interface into a socket interface system is characterized in that an input interface and an output interface are arranged on the system, the input interface provides a socket access interface to the outside, the output interface is in butt joint with socket interfaces provided by other systems, the system receives incoming data through the socket access interface, converts the data into a data format required by the socket interface, then connects the socket interfaces provided by other systems and transmits the data to the next system;
the processing method of the system comprises the following steps:
step 1, starting a system;
step 2, after the system is started, establishing a service end of a socket interface, and monitoring a corresponding service port to wait for receiving data;
step 3, after receiving the uploaded data, connecting a corresponding soap interface service according to preset or analyzed data;
step 4, after the soap interface service is connected, automatically detecting the type of the soap interface, and sending several common message formats in sequence during detection, if the received corresponding format returns correctly, the format used by the opposite side can be confirmed, and the system can automatically record the corresponding message packaging format as the default format; if the message format of the soap interface provider is not successfully monitored, the system reads the manually configured message format and packages data according to the manually configured message format;
step 5, if the automatic detection in the step 4 is successful, the system automatically fills the message header and the message format of the soap interface;
step 6, if the automatic detection in the step 4 fails, reading a message header and a message format of a manually configured configuration file filling soap interface;
step 7, the system analyzes the message header and the message format according to the step 5 or the step 6, rearranges and packages the uplink message received by the socket interface according to the format and sends the uplink message to a service provider of the socket interface according to the socket interface mode;
and 8, completing the conversion and forwarding process from the whole socket interface to the socket interface.
2. The processing method for converting the socket interface into the socket interface system according to claim 1, wherein the processing method comprises the following steps: the manual configuration method in step 4 is to configure the corresponding message format in the corresponding configuration file, including the commonly used communication mode, communication version and request mode.
3. The processing method for converting the socket interface into the socket interface system according to claim 1, wherein the processing method comprises the following steps: the system adopts a standard C language as a development language.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010124679.0A CN111431859A (en) | 2020-02-27 | 2020-02-27 | Processing method for converting socket interface into socket interface system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010124679.0A CN111431859A (en) | 2020-02-27 | 2020-02-27 | Processing method for converting socket interface into socket interface system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111431859A true CN111431859A (en) | 2020-07-17 |
Family
ID=71547209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010124679.0A Pending CN111431859A (en) | 2020-02-27 | 2020-02-27 | Processing method for converting socket interface into socket interface system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111431859A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113645303A (en) * | 2021-08-11 | 2021-11-12 | 曙光信息产业(北京)有限公司 | Data transmission method and device, computer equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107517247A (en) * | 2017-08-07 | 2017-12-26 | 浪潮金融信息技术有限公司 | A kind of socket interfaces applied to financial industry turn the system and method for http interfaces |
-
2020
- 2020-02-27 CN CN202010124679.0A patent/CN111431859A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107517247A (en) * | 2017-08-07 | 2017-12-26 | 浪潮金融信息技术有限公司 | A kind of socket interfaces applied to financial industry turn the system and method for http interfaces |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113645303A (en) * | 2021-08-11 | 2021-11-12 | 曙光信息产业(北京)有限公司 | Data transmission method and device, computer equipment and storage medium |
CN113645303B (en) * | 2021-08-11 | 2024-04-23 | 曙光信息产业(北京)有限公司 | Data transmission method, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2437456B1 (en) | Method and system for realizing concurrent access of multi-kinds of bearer protocols on machine-to-machine (m2m) platform | |
CN110493037B (en) | Network management method, device and system and computer readable storage medium | |
CN112822276B (en) | Substation control layer communication method and system, electronic equipment and storage medium | |
JP2003263334A (en) | Equipment diagnostic method, remote testing device and network equipment | |
CN112566282B (en) | Internet of things information transmission method and platform | |
CN116319953B (en) | Semiconductor device data acquisition method | |
US20080062899A1 (en) | Method for Data Transmission Between Devices in a Network | |
CN107517247B (en) | System and method for converting socket interface into http interface applied to financial industry | |
CN114025015A (en) | Message transmission method and device | |
CN112838940A (en) | Network controller framework and data processing method | |
CN117615043B (en) | Inter-service communication method and system on edge gateway | |
CN111431859A (en) | Processing method for converting socket interface into socket interface system | |
CN112954658B (en) | Business card system suitable for data exchange of communication protocol layer and data exchange method | |
JP3805197B2 (en) | Method for connecting a network element to a telecommunications system | |
CN113973105A (en) | System and method for simplifying SOAP message on service bus | |
CN111741003A (en) | Multi-protocol conversion method and system for third-party platform docking | |
US8276158B2 (en) | HTTP based bounding storage space protocol | |
KR101043167B1 (en) | Interworking System among legacy network management systems and method thereof | |
CN112153144B (en) | Method, system and storage medium for remotely debugging intelligent household equipment | |
US20040088395A1 (en) | Method for probing a server | |
CN115174340B (en) | Communication method supporting interaction of multiple protocol types and Internet of things operating system | |
JP2716028B2 (en) | Protocol converter | |
JP3296354B2 (en) | Data communication method, client, server, and recording medium recording communication program | |
CN111526087B (en) | Automatic access method for various gateways based on platform of Internet of things | |
CN118250707A (en) | Communication module testing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200717 |
|
RJ01 | Rejection of invention patent application after publication |