Business object and xml message mutual conversion method and system

A business object and mutual conversion technology, applied in semi-structured data mapping/conversion, special data processing applications, instruments, etc., can solve the difficult to meet the requirements of productization, heavy development workload, and large differences between interfaces and other issues, to achieve high execution efficiency and reliability, reduce workload, and maintain good results

Inactive Publication Date: 2015-12-09
北京思特奇信息技术股份有限公司
View PDF4 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Due to the different levels of XML message nodes interacted between systems, the interfaces are very different. The traditional method is to generate d...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Business object and xml message mutual conversion method and system
  • Business object and xml message mutual conversion method and system
  • Business object and xml message mutual conversion method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0074] 1) Data model

[0075]

[0076]

[0077] Table 1 Dynamic message generation configuration table (TD_S_INTERFACE_NODE)

[0078] Remarks: As a client message configuration table, it records the XML message node attribute format, attribute relationship and mapping relationship with BO.

[0079]

[0080]

[0081] Table 2 Message node configuration table (TD_S_INTERFACE_NODE_CONFIG)

[0082] Remark: store the corresponding relationship between the internal nodes stored in the attribute table and the XML message nodes.

[0083]

[0084] Table 3 Message node attribute value conversion table (TD_S_INTERFACE_NODE_VAL_CVT)

[0085] Remarks: storage requires the conversion relationship between the attribute value in the system and the node value in the XML message

[0086]

[0087] Table 4 Dynamic message verification configuration table (TD_S_INTERFACE_NODE_VALIDATE)

[0088] Remarks: Store the node constraints in the message specification to verify the mess...

specific Embodiment

[0110] Convert XML messages to business objects:

[0111] 1) Configure the excel data according to the interface specification between systems.

[0112] 2) Import the database.

[0113] 3) Call XmlParseUtil.parse(xml string, interface name, message header, BO), and the output is a business object.

[0114] Convert business objects to XML messages:

[0115] 1) Configure the excel data according to the interface specification between systems.

[0116] 2) Import the database.

[0117] 3) Call IintfNodeConfMng.getInterfaceXml(interface name, root node code, interfaceNodeBo), and the output is an xml string.

[0118] Notice:

[0119] 1) Please generate and configure dto, dao and configuration according to your own system.

[0120] 2) The place where the ExtendAttr class is judged in the code is a special processing method for storing special attributes BO, which can be extended according to its own needs.

[0121] 3) InterfaceNodeBo is the BO corresponding to the interface, ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a business object and xml message mutual conversion method and system. The method specifically comprises the following steps of: step 1: establishing a message node mapping table, and introducing message node and business object mapping information into the mapping table; step 2: receiving a reading request for reading the message node and business object mapping information into a buffer; step 3: performing format verification on a message node and a business object; and step 4: the system, according to a mapping relationship, converting the XML message into the business object; or the system, according to the mapping relationship, converting the business object into XML message data. The business object and xml message mutual conversion method adopts java programming, so that the code execution efficiency and reliability are relatively high and the program portability is good; and configuration is simple and flexible, mutual conversions between XML messages in different formats and business objects with different structures are supported, and the maintainability is good.

Description

technical field [0001] The invention relates to a method and system for mutual conversion between business objects and XML messages. Background technique [0002] Due to the different levels of XML message nodes interacted between systems, the interfaces are very different. The traditional method is to generate different interface codes, which will cause a lot of development work and difficult maintenance problems. It is difficult to meet the requirements of productization. [0003] The interface data is configured using excel documents, which is easy and convenient to operate; various formats of interface messages can be supported. [0004] The code is realized by java language, which has high efficiency and good program portability. [0005] The cache adopts Ehcache technology, with simple configuration and clear structure. [0006] Business Object (BO): The whole English is: BusinessObject, which is a simple real-world software abstraction. It is extracted from the bu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
CPCG06F16/84
Inventor 张翠哲
Owner 北京思特奇信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products