This invention relates to the field of automatic transformation of messages. In particular, the invention relates to automatic transformation of messages between service versions.
Service-oriented architecture (SOA) is a software architecture based on discrete, independent units of software providing application functionality as services to other applications. This provides flexibility and resilience in providing the functions of the services. SOA may include web services provided over standard Internet protocols.
When a new version of a service is introduced into a system there is typically a middleware development task required to allow continued support of original clients that were designed to create and send messages to earlier versions of the service. This development task is normally based around the idea of transforming the structure and contents of messages from original clients to match the structure and contents required by the new service.
To enable the development of this transformation, the developer must understand:
If this information is not available or is only partially known to the developer, the transformation created may not correctly transform messages for the new service when it is executed.
Therefore, there is a need in the art to address the development task and to enable the development of the transformation of messages.
According to a first aspect of the present invention there is provided a method for automatic transformation of messages between service versions, comprising: collecting message data of messages sent to two or more versions of a service; identifying message data as relating to a version of a service; inferring relationships between structure and content of messages sent to different versions of a service; and creating message transformation rules based on the inferred relationships.
According to a second aspect of the present invention there is provided a system for automatic transformation of messages between service versions, comprising: a message collecting component for collecting message data of messages sent to two or more versions of a service; a service identifying component for identifying message data as relating to a version of a service; a message data interrogating component for inferring relationships between structure and content of messages sent to different versions of a service; and a transformation rule generator for creating message transformation rules based on the inferred relationships.
According to a third aspect of the present invention there is provided a computer program product for automatic transformation of messages between service versions, the computer program product comprising a computer-readable storage medium having computer-readable program code embodied therewith, the computer-readable program code configured to: collect message data of messages sent to two or more versions of a service; identify message data as relating to a version of a service; infer relationships between structure and content of messages sent to different versions of a service; and create message transformation rules based on the inferred relationships.
The subject matter regarded as the invention is particularly pointed out and distinctly claimed in the concluding portion of the specification. The invention, both as to organization and method of operation, together with objects, features, and advantages thereof, may best be understood by reference to the following detailed description when read with the accompanying drawings.
Preferred embodiments of the present invention will now be described, by way of example only, with reference to the following drawings in which:
It will be appreciated that for simplicity and clarity of illustration, elements shown in the figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements for clarity. Further, where considered appropriate, reference numbers may be repeated among the figures to indicate corresponding or analogous features.
In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be understood by those skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, and components have not been described in detail so as not to obscure the present invention.
The described method and system automate the process of transformation development between versions of services and execution via analysis of sets of messages that are monitored using a proxy system. By collecting and analyzing data on large numbers of messages being sent to both an original service and a new version of a service, inferences can be made about how the structures and content of the two different message versions are related.
When sufficient message data is collected, the proxy system can be switched over to automatically transform the structure and contents of a message destined for the original service into the structure and contents that are required for the new service version. The transformed message can then be sent on to the new service. This allows the original service to be phased out, while still supporting original clients and without requiring the development of a transformation.
Referring to
The service may be upgraded to a second service version 122, for example, accessing the same resource 123. The second service version 122 may receive messages 132 from a second client version 112 of a different format to the messages 131 from the first client version 111.
In the illustrated scenario, the message 131 from the first client version 111 has fields A, B, C and the message 132 from the second client version 112 has an additional field D. Data collection and analysis relating to the messages 131, 132 and the versions of the service 121, 122 they are sent to is used to generate an automated message transformation for messages 131 of an older version of a service 121 to a message format according to a newer version of the service 122.
The described method may be split into different phases: a data collection phase; a transformation phase; and a background service version matching phase.
Referring to
Original and new service versions may receive 201 messages from their respective clients. The message traffic may be monitored 202 to allow discovery of the services and versions of the services available. For example, network traffic may be monitored to allow discovery of services available on the network.
A proxy system may invisibly collect 203 the message data in a historical message database. The message data may be identified 204 as relating to a service version as catalogued with associated meta-data and examples of instance data. In one embodiment, the message data may be identified as relating to a service version based on the uniform resource locator (URL) of the service that the message is being dispatched to, for example, http://myserver/myservice/version1 and http://myserver/myservice/version2.
An analytics engine may interrogate 205 the collected message data to infer relationships between the different messages destined for different versions of a service.
Based on the inferred relationships, a set of transformation rules may be created 206 and stored. A transformation rule or set of transformation rules may transform a message format for an earlier version of a service to a message format for a later version of the service.
For example, messages for an updated service version may have additional data fields compared to messages for the earlier service version and the content for the additional fields may be deduced based on the contents of other fields that exist in messages for the earlier service version.
The described method includes the ability to generate portType level transformations and is not limited to service messages using the same portType providing a dynamic, adaptable system.
Referring to
The proxy system receives 301 both new and original messages. A service version to which a message is originally being sent is identified 302. This may be carried out in a similar manner to step 204 in
A message for an earlier service version is identified 303 and transformed using the generated transformation rules into a message for the later, updated service version.
The transformed message now has the structure and content required by the later, updated service version and is sent 304 on to be processed by the later, updated service version.
Messages are no longer received 305 by the earlier service version, which can be phased out.
Messages from clients for the updated service versions may continue to be collected 306 and analyzed to help improve the transformation rules.
Additional processing may be provided for error handling. If the transformation rules do not correctly transform a message and an error is raised by the system or the updated service version, the system may go back to the message collection, relationship infernal and rules generation phase, as the transformation rules may not be complete. The earlier service version may not be fully phased out until any error correction has been carried out.
Referring to
The described method may monitor 401 the message traffic, to allow the discovery of the services and versions available in the system or network. The service versions may be catalogued 402 with associated meta-data and examples of instance data. This may also mean attempting to collect a Web Service Definition Language (WSDL) file.
On discovery of a new service version, a process of comparison 403 with existing service versions may start in the background using the cataloged meta-data and examples of instance data. The aim being to find a match for the new service version with one or more earlier version(s) of the same service.
A service message comparison is illustrated below:
If a match is found, the method may flag 404 the identification of a match of a new service version to an earlier service version to an administrator of the system and/or may automatically construct 405 a service version conversion gateway.
Referring to
Additional versions of a service may be supported as well as additional services having multiple versions. However, for simplicity of illustration two service versions are shown.
In the described system, a proxy system 530 is provided which may also be referred to as a gateway system.
In a data collection phase shown in
The described system may also include an analytics engine 550 which may interrogate 503 the collected message data in the historical message data store 540 to generate 504 transformation rules 560.
In a transformation phase shown in
Messages 532 from the second client version 512 may continue to be collected by the proxy system 530 and sent 573 to the historical message data store 540 for analysis 574 by the analytics engine 550 which may update 575 the transformation rules 560.
Referring to
The proxy system 530 may include a message collection component 533 for collecting message data in the data collection phase. The collected message data may be sent by the message collection component 533 to a historical message data store 540.
A message data interrogating component 551 of the analytics engine 550 may interrogate the collected message data to infer relationships between different messages destined for different versions of a service. A transformation rule generator 552 may generate transformation rules 560 based on the inferred relationships.
The proxy system 530 may include components used in the transformation phase of: a message intercepting component 534 for intercepting a message, a service identifying component 535 to identify the service version to which the message relates, and a transformation rule applying component 536 for applying the transformation rules 560 to the intercepted message.
The proxy system 530 may include further components for use in the service version matching phase of: a service monitoring component 537 for monitoring messages to discover service versions available. This may work in conjunction with a service discovery component 553 of the analytics engine 550. The service discovery component 553 may use a service catalogue component 554 to catalogue the service versions. A service version matching component 555 may be provided to match a newly monitored service version to earlier service versions.
Referring to
The memory elements may include system memory 602 in the form of read only memory (ROM) 604 and random access memory (RAM) 605. A basic input/output system (BIOS) 606 may be stored in ROM 604. Software 607 may be stored in RAM 605 including system software 608, which includes operating system software 609, and software applications 610.
The system 600 may also include a primary storage means 611 such as a magnetic hard disk drive and secondary storage means 612 such as a magnetic disc drive and an optical disc drive. The drives and their associated computer-readable media provide non-volatile storage of computer-executable instructions, data structures, program modules and other data for the system 600. Software applications may be stored on the primary and secondary storage means 611, 612 as well as the system memory 602.
The computing system 600 may operate in a networked environment using logical connections to one or more remote computers via a network adapter 616.
Input/output devices 613 may be coupled to the system either directly or through intervening I/O controllers. A user may enter commands and information into the system 600 through input devices such as a keyboard, pointing device, or other input devices (for example, microphone, joy stick, game pad, satellite dish, scanner, or the like). Output devices may include speakers, printers, etc. A display device 614 is also connected to system bus 603 via an interface, such as video adapter 615.
Thereby as discussed above, the present disclosure provides a method for automatic transformation of messages between service versions, which includes collecting message data of messages sent to two or more versions of a service. The method further includes identifying message data as relating to a version of a service. The method further includes inferring relationships between structure and content of messages sent to different versions of a service, and creating message transformation rules based on the inferred relationships.
The method may include monitoring message traffic to discover available service versions to which messages are sent.
The method may further include cataloging a service version with associated meta-data and/or instance data.
Creating message transformation rules may create transformation rules for transforming a message format for an earlier version of a service to a message format for a later version of the service.
The method may further include: receiving a message for a version of a service; identifying if the message is for an earlier version of a service for which there is a later version of the service; transforming the message using transformation rules for transforming a message format for the earlier version of the service to a message format for the later version of the service; forwarding the transformed message to the later version of the service. The method may include phasing out an earlier version of a service when all messages received for an earlier version of a service are transformed into messages for a later version of the service.
The method may additionally include: identifying a new service version based on monitored message traffic; comparing the new service version with known service versions to match to an earlier version of the service. The method may include flagging a match to an earlier version of the service to an administrator. The method may also include constructing a service version gateway for the matched earlier version of the service.
The present disclosure also provides a system for automatic transformation of messages between service versions, which includes a message collecting component for collecting message data of messages sent to two or more versions of a service. The system further includes a service identifying component for identifying message data as relating to a version of a service. The system further includes a message data interrogating component for inferring relationships between structure and content of messages sent to different versions of a service, and a transformation rule generator for creating message transformation rules based on the inferred relationships.
The system may include a service monitoring component for monitoring message traffic to discover available service versions to which messages are sent.
The system may further include a service catalogue component for cataloging a service version with associated meta-data and/or instance data.
The transformation rule generator for creating message transformation rules may create transformation rules for transforming a message format for an earlier version of a service to a message format for a later version of the service.
The system may further include: a message intercepting component for receiving a message for a version of a service; a service identifying component for identifying if the message is for an earlier version of a service for which there is a later version of the service; a transformation rule applying component for transforming the message using transformation rules for transforming a message format for the earlier version of the service to a message format for the later version of the service and forwarding the transformed message to the later version of the service.
The system may additionally include: a service discovery component for identifying a new service version based on monitored message traffic; a service version matching component for comparing the new service version with known service versions to match to an earlier version of the service.
The present disclosure also provides a computer program product for automatic transformation of messages between service versions, wherein the computer program product comprises a computer-readable storage medium having computer-readable program code embodied therewith. The computer-readable program code is configured to: collect message data of messages sent to two or more versions of a service; identify message data as relating to a version of a service; infer relationships between structure and content of messages sent to different versions of a service; and create message transformation rules based on the inferred relationships.
In one embodiment the present disclosure provides a method substantially as described with reference to the figures.
In one embodiment the present disclosure provides a system substantially as described with reference to the figures.
The described aspects and embodiments of the present disclosure provide the advantage of automating the process of transformation between service versions allowing an older version to be gradually phased out.
The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the āCā programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
Improvements and modifications can be made to the foregoing without departing from the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
1410560.5 | Jun 2014 | GB | national |