CN101621516A - Interactive method for enterprise service bus and external Web service - Google Patents
Interactive method for enterprise service bus and external Web service Download PDFInfo
- Publication number
- CN101621516A CN101621516A CN 200910100968 CN200910100968A CN101621516A CN 101621516 A CN101621516 A CN 101621516A CN 200910100968 CN200910100968 CN 200910100968 CN 200910100968 A CN200910100968 A CN 200910100968A CN 101621516 A CN101621516 A CN 101621516A
- Authority
- CN
- China
- Prior art keywords
- web service
- message
- external web
- esb
- service
- 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
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000002452 interceptive effect Effects 0.000 title abstract 2
- 239000003795 chemical substances by application Substances 0.000 claims description 23
- 239000000344 soap Substances 0.000 claims description 23
- 230000007246 mechanism Effects 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 230000008901 benefit Effects 0.000 abstract description 4
- 238000004891 communication Methods 0.000 abstract description 2
- 238000012360 testing method Methods 0.000 abstract description 2
- 238000005516 engineering process Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005111 flow chemistry technique Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to an interactive method for an enterprise service bus and an external Web service, enabling inner components of the enterprise service bus to simply call the external Web service with high efficiency. In the method, a message format of inner communication of the enterprise service bus and a message format of the called Web service are mutually converted through an agent component. The invention has the advantages that when a container of the enterprise service bus is in a same virtual machine with the external Web service, a method for calling the Web service with simpleness and high efficiency by bypassing an HTTP layer is provided. According to a test, compared with the traditional method, the performance of the method is improved by more than three times; the external Web service is completely transparent relative to an inner caller, and the inner caller calls the external Web service just as calling inner service so as to totally accord with the requirements of the enterprise service bus on the transparency; and the method provides safety and transaction support.
Description
Technical field
The present invention relates to the exchange method of a kind of ESB and external web service, make the ESB intraware can call the external web service simply efficiently.
Background technology
ESB is to construct the essential elements that SOA (Service OrientedArchitecture, Service-Oriented Architecture Based) is the enterprise information system on basis as the connection maincenter of application system.The definition of ESB can simply be interpreted as: realize and support one group of architecture of SOA by middleware Technology, support service, message and mutual based on incident in the isomerous environment, and have suitable service class and manageability.Realize the quick access of application system by ESB, and by more senior incident, flow processing ability, can be good at enterprise information system and practical business are coordinated, under the condition that guarantees original investment, realize more flexible and quick enterprise information system transformation.
In today of network develop rapidly, each is organized and all is faced with a same challenge: the environment of creating isomorphism when balance core competence and existing application program.IT needs one simply, with the inter-application communication mode of platform independence.Produced Web service under this demand, it is the general name of the service that can obtain from Internet of a class, and its uses standard XML messaging system, and is not subjected to the constraint of any operating system and programming language.In the past few years, three kinds of major techniques as global standards: SOAP has appearred, WSDL and UDDI, and they have constituted the core of Web service technology.Web service has the advantage that improves professional adaptability, reduces IT cost and raising business intelligence.
Because each company is to service feature, forward pre-event management to from simple monitoring gradually, they need see relevant market, client and rival's real-time information, and this just makes that becoming alternately of ESB internal resource and external web service is very important.Generally speaking, the bus intraware is by the service of HTTP layer visit external web, and it is low to call efficient.
Summary of the invention
In order to address the above problem, the invention provides the exchange method of a kind of advantages of simplicity and high efficiency ESB and external web service.
The exchange method of a kind of ESB and external web service, this method is changed the message format of intercommunicating message format of ESB and called Web service mutually by Agent components.
Further, described method is that the bus internal consumers earlier is sent to Agent components to message, is sent to the external web ISP after by Agent components message being converted to soap message again.
When ESB container and external web service were in the same virtual machine, soap message was via a direct called Web service of Agent components of being the J2EE engine.
When ESB container and external web service are in the different virtual machine, intraware is sent to an Agent components that is HTTP to request message earlier, be sent to the Web service that is in the different virtual machine again by this assembly structure soap message, and through the HTTP layer.
Further, described Agent components is a kind of of ESB intraware, is deployed in the ESB container, has end points synchronization map mechanism and message conversion mechanism.
Below the present invention is described further:
In order to solve the inconsistent problem of message format of intercommunicating message format of ESB and called Web service, the present invention has designed a kind of Agent components, and its major function is that above-mentioned two kinds of message formats are changed mutually.Had after the Agent components, the bus internal consumers is not directly called the external web service, but earlier message is sent to Agent components, is sent to the external web ISP after by Agent components message being converted to soap message again.
The ESB intraware calls the external web service can be divided into following two kinds of situations:
■ is when ESB container and external web service are in the same virtual machine, and the transmission of soap message does not need the layer by HTTP, but via a direct called Web service of Agent components of being the J2EE engine.By this optimisation strategy, can significantly improve the efficient of calling the external web service.
■ is when ESB container and external web service are in the different virtual machine, intraware is sent to an Agent components that is HTTP to request message earlier, be sent to the Web service that is in the different virtual machine again by this assembly structure soap message, and through the HTTP layer.
Agent components is a kind of of ESB intraware, is deployed in the ESB container, and it mainly is the home agent as external web service, and it is easy as calling internal services to make intraware call the external web service.
The function of Agent components can be described as:
■ end points synchronization map mechanism starts the synchronous polling thread and monitors the external web service status, creates the end points mapping table, makes the external web service at the ESB internal container corresponding inner terminal agency be arranged.
■ message conversion mechanism, what the ESB intercommunication was used is the message of standard, and called Web service must send soap message, therefore, Agent components must be able to be supported the mutual conversion of two kinds of message formats.
The invention has the advantages that:
1, when ESB container and external web service are in the same virtual machine, provide a kind of HTTP of walking around layer the simple method of called Web service efficiently, according to test, this method improves more than three times than the conventional method performance;
2, the external web service is fully transparent for intrinsic call person, and intrinsic call person calls the external web service as calling internal services, and this meets the requirement of ESB for the transparency fully;
3, provide safety, affairs support.
Description of drawings
The interchange graph (being in the same virtual machine) of Fig. 1 ESB intraware and external web service
The interchange graph (being in the different virtual machine) of Fig. 2 ESB intraware and external web service
The synchronization map figure of Fig. 3 ESB inner terminal and Web service end points
The transition diagram of Fig. 4 message and soap message
Embodiment
Below in conjunction with accompanying drawing and example the present invention is described in detail:
Fig. 1 has described the process that ESB internal consumers component call is in the external web service of same virtual machine, and step is as follows:
1) when consumer's assembly will call the external web service that is in same virtual machine, the structure message was set inner terminal, and is sent this message to the J2EE engine in message.
2) the J2EE engine receives after the message, the corresponding Web service end points of the inner terminal of in the end points map listing, searching and receiving, construct soap message head and message body respectively according to the standardization message in this Web service end points and the message then, and this soap message directly is sent to the Web service supplier who is in same virtual machine.
3) the Web service supplier resolves the soap message that receives, and carries out service accordingly, calls unusually if having message to return or Web service occurs, replys message and can successively be back to caller along transmit path.
Fig. 2 has described the process that ESB internal consumers component call is in the external web service of different virtual machine, and step is as follows:
1) when consumer's assembly will call the external web service that is in different virtual machine, consumer's assembly structure standardization message is set inner terminal, and message is sent to the HTTP assembly.
2) the HTTP assembly receives after the message, the corresponding Web service end points of the inner terminal of in the end points map listing, searching and receiving, construct soap message head and message body respectively according to the standardization message in this Web service end points and the message then, and this message is sent to Internet.
3) Internet is forwarded to the Web service supplier who is in different virtual machine with soap message, carries out service accordingly, calls unusually if having message to return or Web service occurs, replys message and can be back to caller through the HTTP layer along transmit path.
Fig. 3 has described the synchronization map process of ESB inner terminal and Web service end points, and step is as follows:
1) when acting on behalf of the assembly startup, start the synchronous polling thread simultaneously, Web service tabulation on the scanning Web service container, registration and Web service end points be the bus internal services one to one.
2) after Agent components started, the journey that can burst at the seams was monitored the service on the Web service container, after new Web service is disposed, registered corresponding bus internal services end points; Similarly, after original Web service is passivated, nullify the internal services end points corresponding, keep the consistency in the end points mapping table with this Web service.
3) after acting on behalf of assembly and stopping, the bus container is nullified all inner terminals relevant with the external web service, makes the end points mapping table for empty.
Fig. 4 has described message and the mutual transformational relation of soap message:
1) service endpoints in the message, supplier ID, consumer ID are corresponding with the soap message head.
■ ISP end point structure is: the then corresponding soap message head of NameSpace+ISP's title+ISP's end points is:
<header><to mustUnderstand="true">" NameSpace ISP's title ISP's end points "</To></Header> |
■ service consumer end point structure is: the then corresponding soap message head of NameSpace+service consumer title+service consumer end points is:
<header><from mustUnderstand="true">" NameSpace the service consumer title the service consumer end points "</From></Header> |
2) the standardization message in the message is corresponding with the soap message body.
The soap message body structure is:
<body>< |
Claims (5)
1. the exchange method of ESB and external web service, it is characterized in that: this method is changed the message format of intercommunicating message format of ESB and called Web service mutually by Agent components.
2. the exchange method of a kind of ESB according to claim 1 and external web service, it is characterized in that: described method is that the bus internal consumers earlier is sent to Agent components to message, is sent to the external web ISP after by Agent components message being converted to soap message again.
3. the exchange method of a kind of ESB according to claim 1 and 2 and external web service, it is characterized in that: when ESB container and external web service were in the same virtual machine, soap message was via a direct called Web service of Agent components of being the J2EE engine.
4. the exchange method of a kind of ESB according to claim 1 and 2 and external web service, it is characterized in that: when ESB container and external web service are in the different virtual machine, intraware is sent to an Agent components that is HTTP to request message earlier, be sent to the Web service that is in the different virtual machine again by this assembly structure soap message, and through the HTTP layer.
5. the exchange method of a kind of ESB according to claim 1 and 2 and external web service, it is characterized in that: described Agent components is a kind of of ESB intraware, be deployed in the ESB container, have end points synchronization map mechanism and message conversion mechanism.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910100968 CN101621516B (en) | 2009-08-10 | 2009-08-10 | Interactive method for enterprise service bus and external Web service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910100968 CN101621516B (en) | 2009-08-10 | 2009-08-10 | Interactive method for enterprise service bus and external Web service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101621516A true CN101621516A (en) | 2010-01-06 |
CN101621516B CN101621516B (en) | 2012-12-05 |
Family
ID=41514560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910100968 Active CN101621516B (en) | 2009-08-10 | 2009-08-10 | Interactive method for enterprise service bus and external Web service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101621516B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102158548A (en) * | 2011-03-02 | 2011-08-17 | 山东中创软件工程股份有限公司 | Method for accessing external services into enterprise service bus |
CN103020210A (en) * | 2012-12-07 | 2013-04-03 | 深圳市远行科技有限公司 | Method and device for integrating Oracle service bus (OSB) and business activity monitoring (BAM) |
CN103944956A (en) * | 2014-03-10 | 2014-07-23 | 浙江大学 | Web service agent method |
CN105959192A (en) * | 2015-12-28 | 2016-09-21 | 中国银联股份有限公司 | Service migration method and device between service buses |
CN109451014A (en) * | 2018-11-02 | 2019-03-08 | 科大国创软件股份有限公司 | A kind of WebService agency plant and its transparent proxy method |
CN113973105A (en) * | 2021-10-18 | 2022-01-25 | 湖南大学 | System and method for simplifying SOAP message on service bus |
WO2023044929A1 (en) * | 2021-09-27 | 2023-03-30 | 西门子股份公司 | Method and system for providing service associated with information system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101339520B (en) * | 2007-12-04 | 2011-01-26 | 浙江大学 | Method for accessing EJB into enterprise service bus |
CN101299753B (en) * | 2008-06-17 | 2012-12-05 | 浙江大学 | Web service security control mechanism based on proxy server |
-
2009
- 2009-08-10 CN CN 200910100968 patent/CN101621516B/en active Active
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102158548A (en) * | 2011-03-02 | 2011-08-17 | 山东中创软件工程股份有限公司 | Method for accessing external services into enterprise service bus |
CN103020210A (en) * | 2012-12-07 | 2013-04-03 | 深圳市远行科技有限公司 | Method and device for integrating Oracle service bus (OSB) and business activity monitoring (BAM) |
CN103020210B (en) * | 2012-12-07 | 2016-06-29 | 深圳市远行科技有限公司 | A kind of oracle enterprise service bus and BAM integrated approach and device |
CN103944956A (en) * | 2014-03-10 | 2014-07-23 | 浙江大学 | Web service agent method |
CN103944956B (en) * | 2014-03-10 | 2017-06-20 | 浙江大学 | Web service broker method |
CN105959192A (en) * | 2015-12-28 | 2016-09-21 | 中国银联股份有限公司 | Service migration method and device between service buses |
CN105959192B (en) * | 2015-12-28 | 2019-01-01 | 中国银联股份有限公司 | The method and apparatus of services migrating between a kind of service bus |
CN109451014A (en) * | 2018-11-02 | 2019-03-08 | 科大国创软件股份有限公司 | A kind of WebService agency plant and its transparent proxy method |
CN109451014B (en) * | 2018-11-02 | 2021-02-05 | 科大国创软件股份有限公司 | WebService agent system and transparent agent method thereof |
WO2023044929A1 (en) * | 2021-09-27 | 2023-03-30 | 西门子股份公司 | Method and system for providing service associated with information system |
CN113973105A (en) * | 2021-10-18 | 2022-01-25 | 湖南大学 | System and method for simplifying SOAP message on service bus |
Also Published As
Publication number | Publication date |
---|---|
CN101621516B (en) | 2012-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101621516B (en) | Interactive method for enterprise service bus and external Web service | |
US7600048B2 (en) | Web services processing using MAPI compliant mail applications | |
CN101184056A (en) | Distributed enterprise service bus message switching method | |
CN101923485B (en) | JACA remote invocation method in CORBA (Common Object Request Breaker Architecture) system | |
CN1867898A (en) | Method and apparatus for processing service requests in a service-oriented architecture | |
CN103957188B (en) | A kind of enterprises service of symmetrical two-way decoupling describes method and service dispatch system | |
CN104717647B (en) | Professional ability method for authenticating, equipment and system | |
CN101651698A (en) | Transmission method for publish/subscribe system based on NIO and IO | |
CN101339520B (en) | Method for accessing EJB into enterprise service bus | |
CN112256246A (en) | Micro-service integration framework for supporting cross-language calling in power system | |
CN102025651B (en) | Event-driven method applied to enterprise service bus | |
CN102750181A (en) | Web service processing engine system and method | |
CN103595695A (en) | Method and system for providing services by service bus | |
CN103944956B (en) | Web service broker method | |
CN101557354A (en) | Method for sending picture by client service personnel on line | |
US20090138561A1 (en) | System and method for service oriented email client application | |
CN107819831B (en) | Metaq and mns-based universal message system | |
CN103473127B (en) | A kind of method and system by JSP technical limit spacing cross-system variables | |
CN107145535A (en) | Instant communicating method and device and server | |
CA2703289C (en) | Message adaptation system for system integration | |
CN100502412C (en) | Method for computer positioning of dynamic IP dial-up network | |
TWI376127B (en) | A dependable web service invocation framework with asynchronous communication | |
CN111158657B (en) | Data integration processing method | |
CN108076107B (en) | Service sinking processing system and middleware | |
Parastatidis et al. | The soap service description language |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20100106 Assignee: Enjoyor Co., Ltd. Assignor: Zhejiang University Contract record no.: 2013330000105 Denomination of invention: Interactive method for enterprise service bus and external Web service Granted publication date: 20121205 License type: Common License Record date: 20130425 |
|
LICC | Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model |