CN113973105A - System and method for simplifying SOAP message on service bus - Google Patents
System and method for simplifying SOAP message on service bus Download PDFInfo
- Publication number
- CN113973105A CN113973105A CN202111209140.6A CN202111209140A CN113973105A CN 113973105 A CN113973105 A CN 113973105A CN 202111209140 A CN202111209140 A CN 202111209140A CN 113973105 A CN113973105 A CN 113973105A
- Authority
- CN
- China
- Prior art keywords
- message
- service bus
- rsoap
- soap
- webservice
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
Abstract
A system and method for simplifying SOAP message on service bus includes client end connected to service end through service bus, service end deployed with Webservice and agent program connected to service bus, agent program for receiving RSOAP request and analyzing RSOAP message, packaging analyzed message into SOAP message and transmitting it to WebService. A method of simplifying SOAP messages over a service bus is also included. The invention can obviously reduce the data volume of Webservice message transmission, improve the processing efficiency of the service bus of the industrial robot and reduce the response time of the service bus of the industrial robot.
Description
Technical Field
The invention relates to the field of industrial robot middleware, in particular to a system and a method for simplifying SOAP messages on a service bus.
Background
At present, part of enterprises adopt a service bus mode to carry out unified management on robot services, so that distributed heterogeneous resources are integrated, system coupling is reduced, and distributed cooperation of robots is realized. In the existing robot service bus, robot services are generally distributed in the form of Webservice. The WebService technology can enable different applications running on different machines to exchange data or be integrated with each other without additional and special third-party software or hardware.
Referring to fig. 1, a WebService publishing method of an existing robot service is to register WebService to a bus, initiate a SOAP request to the bus by a client, receive the SOAP request by the bus, forward the SOAP request to a server WebService, receive the request by the WebService, and call a corresponding function according to the content of the SOAP message. WebService adopts SOAP protocol as the protocol of message transmission, and SOAP protocol is a protocol based on HTTP protocol, and the content is XML format, and it consumes a large amount of resources, has partial redundant information, and the real-time function is weak, and the practicability is not strong for the industrial robot field.
Most of the existing SOAP message simplification schemes are compression for encoding body data of SOAP messages, and do not simplify and compress header fields of an HTTP protocol, and still have a large redundant data volume. How to further simplify the messages of the SOAP protocol on the industrial robot service bus is an urgent problem to be solved.
Disclosure of Invention
The technical problem to be solved by the present invention is to overcome the defects of the background art, and provide a system and a method for simplifying the SOAP message on the service bus, which can significantly reduce the data volume of the Webservice message transmission, improve the processing efficiency of the service bus of the industrial robot, and reduce the response time of the service bus of the industrial robot.
The technical scheme adopted by the invention for solving the technical problem is that the system for simplifying the SOAP message on the service bus comprises a client, the service bus and a server, wherein the client is connected with the server through the service bus, the server is provided with a Webservice, the server is also provided with an agent, the Webservice is connected with the agent, the agent is connected with the service bus, and the agent is used for receiving an RSOAP request, analyzing an RSOAP message, packaging the analyzed message into the SOAP message and forwarding the SOAP message to the Webservice.
Further, the RSOAP message refers to a message obtained by simplifying a request header and a request body of the SOAP message.
A method of simplifying SOAP messages over a service bus, comprising the steps of:
step (1), deploying WebService at a service end, and monitoring a SOAP request;
step (2), deploying an agent program at a service end, and monitoring an RSOAP request;
step (3), registering the agent program and WebService to the service bus;
step (4), the client side initiates an RSOAP request to the service bus;
step (5), after receiving the RSOAP request, the service bus forwards the RSOAP request to a service-side agent program;
step (6), the server-side agent program receives the RSOAP request, analyzes the RSOAP message, encapsulates the analyzed message into an SOAP message, and forwards the encapsulated SOAP message to the server-side WebService;
and (7) the server WebService receives the SOAP message, analyzes the SAOP message, calls a function corresponding to the SAOP message according to the analyzed content, and executes corresponding function logic.
Further, in the step (1), the monitoring port of the WebService monitors the SOAP request.
Further, in step (2), the listening port of the agent listens for an RSOAP request.
Further, in the step (3), the agent program is registered to the service bus according to the IP address and the monitoring port of the agent program, and the WebService is registered to the service bus according to the IP address and the monitoring port of the WebService.
Further, in step (4), the client sends an RSOAP request to the service bus in the form of an RSOAP protocol message.
Further, in step (5), the RSOAP request is forwarded to the server agent according to the registered agent IP address and the monitoring port.
Further, in the step (6), the encapsulated SOAP message is forwarded to the WebService through the monitoring port of the WebService.
Further, in step (6), the RSOAP message refers to a message obtained by simplifying the request header and the request body of the SOAP message.
Compared with the prior art, the invention has the following advantages:
the invention adopts the simplified RSOAP protocol to transmit messages when the client requests the bus and the bus requests the server. And deploying an agent program at the server, wherein the agent program is responsible for receiving the RSOAP request, analyzing the RSOAP message, packaging the analyzed message into a SOAP message and forwarding the SOAP message to the WebService. The method can obviously reduce the data volume of Webservice message transmission (the data volume after test simplification is only 20% -30% of the original data volume), improve the processing efficiency of the service bus of the industrial robot, and reduce the response time of the service bus of the industrial robot. Secondly, the invention does not change the traditional Webservice development mode, and for developers, only one agent program needs to be deployed at the service end of the Webservice, so that the development is simple.
Drawings
Fig. 1 is a flowchart of a conventional request Webservice.
Fig. 2 is a schematic structural diagram of a system for simplifying SOAP messages on a service bus according to an embodiment of the present invention.
FIG. 3 is a flowchart of a Webservice of a method for simplifying SOAP messages over a service bus according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and specific embodiments.
Aiming at the field of industrial robots, the invention designs a simplified SOAP protocol (Robot-SOAP protocol, RSOAP protocol for short), which not only simplifies body data of the original SOAP protocol, but also removes protocol header information in the original SOAP protocol, and greatly simplifies data volume of the original SOAP message. The RSOAP message referred to hereinafter is a simplified message body transmitted by using RSOAP protocol, that is, a message obtained by simplifying a request header and a request body of a SOAP message. In the RSOAP protocol, the method and the parameter information of the Webservice are not defined in an XML mode, but are transmitted in a very simple mode. By simplifying the request header and the request body, the data volume of the original SOAP message can be effectively compressed, the network transmission delay is reduced, and the service processing efficiency is improved.
Referring to fig. 2, the system for simplifying the SOAP message on the service bus in this embodiment includes a client, a service bus, and a server, where the client is connected to the server through the service bus, the server is deployed with a Webservice and an agent, the Webservice is connected to the agent, and the agent is connected to the service bus.
The client calls the client that has registered the Webservice service on the service bus. The service bus is a service bus for managing Webservice, and supports the receiving and parsing of RSOAP messages. The agent program is used for receiving the RSOAP request, analyzing the RSOAP message, packaging the analyzed message into SOAP message and transmitting the SOAP message to WebService.
Referring to fig. 3, the method for simplifying SOAP messages on a service bus according to the embodiment includes the following steps:
step (1), deploying WebService at a service end, wherein the WebService monitoring port monitors a SOAP request, and the WebService comprises a plurality of functions responding to the SOAP request;
step (2), deploying an agent program at the service end, and monitoring the RSOAP request by an agent program monitoring port;
registering an agent program and WebService with a service bus, specifically registering the agent program with the service bus according to an agent program IP address and a monitoring port, and registering the WebService with the service bus according to the WebService IP address and the monitoring port;
step (4), the client initiates an RSOAP request to the service bus, and specifically sends the RSOAP request to the service bus according to the designed RSOAP protocol message form;
step (5), after receiving the RSOAP request, the service bus forwards the RSOAP request to the service-side agent program, and specifically forwards the RSOAP request to the service-side agent program according to the registered agent program IP address and the monitoring port;
step (6), the server-side agent program receives the RSOAP request, analyzes the RSOAP message, encapsulates the analyzed message into an SOAP message, and forwards the encapsulated SOAP message to the server-side WebService through the WebService monitoring port;
and (7) the server WebService receives the SOAP message, analyzes the SAOP message, calls a function corresponding to the SAOP message according to the analyzed content, and executes corresponding function logic.
The server-side agent program is a server side of RSOAP protocol information, and can receive and analyze the RSOAP information, repackage the RSOAP information into SOAP information after analysis, and finally forward the SOAP information to the server-side Webservices. When the agent is started, two parameters are required to be specified, one is port (namely, the port number of the agent in operation cannot conflict with other programs), and the other is bindaddressor (namely, the service address of the agent is required, and the service address is a local address, such as http://127.0.0.1: 7001/Carry). After the server-side agent is started, the agent listens to the designated port and receives messages from the port.
The agent program runs as follows:
the method comprises the following steps: starting an agent program, and appointing a port and a service address needing agent;
step two: the agent receives the simplified RSOAP message;
step three: and analyzing the RSOAP message. Analyzing the RSOAP message according to the definition of the message in the RSOAP protocol, and repackaging the message into a SOAP message;
step four: and forwarding the encapsulated SOAP message to local Webservice.
In this way, the messages transmitted in the network are simplified RSOAP messages, greatly compressing the amount of data transmitted. And the SOAP message transmission is locally repackaged at the server side, the network transmission is not involved, and the transmission speed is high.
In order to compare the data volumes of the original SOAP protocol and the simplified RSOAP protocol, the following is a sample. In the sample, a carry method of the issued Webservice needs to be called, and only one parameter of the carry method is the stock number.
The following is a sample SOAP message:
a request head:
a request body:
the following is a sample of a simplified RSOAP message:
a request body:
rsoap://www.hnu.edu.cn:8001carry
stockNumber=1
as can be seen from the above example, the SOAP message includes a request header and a request body, the request body is defined by XML, and redundant information exists in the open tag and the closed tag. In the simplified RSOAP message, however, the request header is removed and a portion of the data volume is compressed. Meanwhile, the simplified RSOAP message also adopts a very simple mode to transmit the name and the parameter information of the method, and the open label and the closed label are removed. In terms of the amount of data to be transmitted, the original SOAP message data amount is 47, the simplified RSOAP message data amount is 527, and the simplification proportion reaches 90%.
When the client requests the bus, the simplified RSOAP protocol is used, and when the bus requests the agent program, the simplified RSOAP protocol is also used, so that the simplified protocol is used in the network transmission, and the information quantity transmitted by the network is compressed. The proxy program forwards the service Webservice to use the SOAP message, but the transmission is carried out locally and does not involve network transmission. The invention can obviously reduce the data volume of Webservice message transmission, improve the processing efficiency of the service bus of the industrial robot and reduce the response time of the service bus of the industrial robot.
Various modifications and variations of the present invention may be made by those skilled in the art, and they are also within the scope of the present invention provided they are within the scope of the claims of the present invention and their equivalents.
What is not described in detail in the specification is prior art that is well known to those skilled in the art.
Claims (10)
1. A system for simplifying SOAP messages on a service bus comprises a client, the service bus and a server, wherein the client is connected with the server through the service bus, and the server is deployed with Webservice, and is characterized in that: the server is also provided with an agent program, the Webservice is connected with the agent program, the agent program is connected with the service bus, and the agent program is used for receiving the RSOAP request, analyzing the RSOAP message, packaging the analyzed message into a SOAP message and transmitting the SOAP message to the Webservice.
2. The method for simplifying SOAP messages over a service bus as recited in claim 1, wherein: the RSOAP message refers to a message obtained by simplifying a request header and a request body of the SOAP message.
3. A method for simplifying SOAP messages on a service bus, comprising the steps of:
step (1), deploying WebService at a service end, and monitoring a SOAP request;
step (2), deploying an agent program at a service end, and monitoring an RSOAP request;
step (3), registering the agent program and WebService to the service bus;
step (4), the client side initiates an RSOAP request to the service bus;
step (5), after receiving the RSOAP request, the service bus forwards the RSOAP request to a service-side agent program;
step (6), the server-side agent program receives the RSOAP request, analyzes the RSOAP message, encapsulates the analyzed message into an SOAP message, and forwards the encapsulated SOAP message to the server-side WebService;
and (7) the server WebService receives the SOAP message, analyzes the SAOP message, calls a function corresponding to the SAOP message according to the analyzed content, and executes corresponding function logic.
4. The method for simplifying SOAP messages over a service bus as recited in claim 1, wherein: in the step (1), the monitoring port of the WebService monitors the SOAP request.
5. The method for simplifying SOAP messages over a service bus as recited in claim 1, wherein: in the step (2), the monitoring port of the agent program monitors RSOAP requests.
6. The method for simplifying SOAP messages over a service bus as recited in claim 1, wherein: and (3) registering the agent program to the service bus according to the IP address and the monitoring port of the agent program, and registering WebService to the service bus according to the IP address and the monitoring port of the WebService.
7. The method for simplifying SOAP messages over a service bus as recited in claim 1, wherein: in step (4), the client sends an RSOAP request to the service bus in the form of an RSOAP protocol message.
8. The method for simplifying SOAP messages over a service bus as recited in claim 6, wherein: and (5) forwarding the RSOAP request to the server-side agent program according to the registered agent program IP address and the monitoring port.
9. The method for simplifying SOAP messages over a service bus as recited in claim 1, wherein: and (6) forwarding the encapsulated SOAP message to a server WebService through a monitoring port of the WebService.
10. The method for simplifying SOAP messages over a service bus as recited in claim 1, wherein: in step (6), the RSOAP message refers to a message obtained by simplifying a request header and a request body of the SOAP message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111209140.6A CN113973105B (en) | 2021-10-18 | 2021-10-18 | System and method for simplifying SOAP message on service bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111209140.6A CN113973105B (en) | 2021-10-18 | 2021-10-18 | System and method for simplifying SOAP message on service bus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113973105A true CN113973105A (en) | 2022-01-25 |
CN113973105B CN113973105B (en) | 2023-06-16 |
Family
ID=79587558
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111209140.6A Active CN113973105B (en) | 2021-10-18 | 2021-10-18 | System and method for simplifying SOAP message on service bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113973105B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115037807A (en) * | 2022-06-10 | 2022-09-09 | 湖南大学 | Method and system for integrating DDS (direct digital synthesis) protocol on industrial robot service bus |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621516A (en) * | 2009-08-10 | 2010-01-06 | 浙江大学 | Interactive method for enterprise service bus and external Web service |
CN102111437A (en) * | 2010-12-30 | 2011-06-29 | 浪潮集团山东通用软件有限公司 | Simple object access protocol (SOAP) extension-based WEB service transmission compression method |
US20110238851A1 (en) * | 2010-03-26 | 2011-09-29 | Linkage Technology Group Co., Ltd. | Soap Client Protocol Encapsulation Based on TCP |
CN103595695A (en) * | 2012-08-15 | 2014-02-19 | 深圳中兴网信科技有限公司 | Method and system for providing services by service bus |
CN107026887A (en) * | 2016-02-02 | 2017-08-08 | 上海交通大学 | Snap information interaction mechanism and network transfer method in a kind of multimedia system |
CN108829467A (en) * | 2018-04-28 | 2018-11-16 | 广东蜂助手网络技术股份有限公司 | Third-party platform docks implementation method, device, equipment and storage medium |
CN109451014A (en) * | 2018-11-02 | 2019-03-08 | 科大国创软件股份有限公司 | A kind of WebService agency plant and its transparent proxy method |
-
2021
- 2021-10-18 CN CN202111209140.6A patent/CN113973105B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621516A (en) * | 2009-08-10 | 2010-01-06 | 浙江大学 | Interactive method for enterprise service bus and external Web service |
US20110238851A1 (en) * | 2010-03-26 | 2011-09-29 | Linkage Technology Group Co., Ltd. | Soap Client Protocol Encapsulation Based on TCP |
CN102111437A (en) * | 2010-12-30 | 2011-06-29 | 浪潮集团山东通用软件有限公司 | Simple object access protocol (SOAP) extension-based WEB service transmission compression method |
CN103595695A (en) * | 2012-08-15 | 2014-02-19 | 深圳中兴网信科技有限公司 | Method and system for providing services by service bus |
CN107026887A (en) * | 2016-02-02 | 2017-08-08 | 上海交通大学 | Snap information interaction mechanism and network transfer method in a kind of multimedia system |
CN108829467A (en) * | 2018-04-28 | 2018-11-16 | 广东蜂助手网络技术股份有限公司 | Third-party platform docks implementation method, device, equipment and storage medium |
CN109451014A (en) * | 2018-11-02 | 2019-03-08 | 科大国创软件股份有限公司 | A kind of WebService agency plant and its transparent proxy method |
Non-Patent Citations (1)
Title |
---|
边耐政,赵东旭: "基于JMeter 的Web Service自动化测试集成框架", 《计算机应用与软件》, vol. 33, no. 5, pages 8 - 16 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115037807A (en) * | 2022-06-10 | 2022-09-09 | 湖南大学 | Method and system for integrating DDS (direct digital synthesis) protocol on industrial robot service bus |
CN115037807B (en) * | 2022-06-10 | 2023-08-18 | 湖南大学 | Method and system for integrating DDS protocol on industrial robot service bus |
Also Published As
Publication number | Publication date |
---|---|
CN113973105B (en) | 2023-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112769938B (en) | Kubernets cloud side communication system and method based on QUIC | |
CN111580995B (en) | Synchronous communication method and system of distributed cloud platform and Internet of things intelligent terminal based on MQTT asynchronous communication scene | |
CN110022289B (en) | Data transmission method, device and system | |
CN105681462B (en) | It is a kind of based on message routing group system and data communication in shifting method | |
CN111835786A (en) | System for data acquisition and equipment control of multi-protocol equipment and implementation method | |
CN110413418B (en) | Cache synchronization device and method, cache synchronization system and electronic equipment | |
CN111294235B (en) | Data processing method, device, gateway and readable storage medium | |
CN114449459B (en) | Message transmission method and platform function application function | |
CN111726414B (en) | Vehicle reporting data processing method and vehicle data reporting system | |
WO2023221452A1 (en) | Packet processing system and method, device, and storage medium | |
CN113973105B (en) | System and method for simplifying SOAP message on service bus | |
CN114422617B (en) | Message processing method, system and computer readable storage medium | |
CN110071839B (en) | CORBA communication device supporting digital signal processor | |
CN112714170B (en) | General ground software framework system capable of configuring communication protocol and application | |
CN107517247B (en) | System and method for converting socket interface into http interface applied to financial industry | |
CN112817539A (en) | Industrial data storage method and system, electronic device and storage medium | |
CN112804303A (en) | Service providing method, device, system, transfer platform and storage medium | |
CN107819831B (en) | Metaq and mns-based universal message system | |
CN116471342A (en) | Multi-protocol access system and method for multi-Internet of things equipment | |
CN113992644A (en) | Internet of things gateway system based on non-service technology and data processing method thereof | |
US11258883B2 (en) | Generic communication layer | |
CN112769741B (en) | Message communication method and electronic equipment | |
CN111935135B (en) | AMQP protocol proxy method based on CMSP | |
CN113364757B (en) | Method for realizing ORB (object relational B) by FPGA (field programmable Gate array) | |
CN113852651B (en) | FANUC proxy service realization system and method based on edge gateway |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |