WO2008003257A1 - Procédé, système et dispositif de conversion d'information dans une interface de gestion de transactions - Google Patents

Procédé, système et dispositif de conversion d'information dans une interface de gestion de transactions Download PDF

Info

Publication number
WO2008003257A1
WO2008003257A1 PCT/CN2007/070188 CN2007070188W WO2008003257A1 WO 2008003257 A1 WO2008003257 A1 WO 2008003257A1 CN 2007070188 W CN2007070188 W CN 2007070188W WO 2008003257 A1 WO2008003257 A1 WO 2008003257A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter
request message
response message
message frame
service management
Prior art date
Application number
PCT/CN2007/070188
Other languages
English (en)
French (fr)
Inventor
Bin Zheng
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2008003257A1 publication Critical patent/WO2008003257A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging 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]

Definitions

  • the invention relates to an interface technology in network management, in particular to a method for converting information of a simple object access protocol (SOAP) service management interface, a information conversion system of a SOAP service management interface, and a SOAP service management interface device.
  • SOAP simple object access protocol
  • the Web service interface With the diversification of business management, the Web service interface is becoming a common standard interface for network element management because of its advantages such as cross-platform, ubiquitous, and cross-firewall. Among them, the Web service interface with SOAP of ⁇ 5, that is, the SOAP service management interface is widely used in the network element interface.
  • the messages sent and received by the network management device are based on the expression of extensible markup language (XML), and the information that the network element device can recognize is based on the binary expression, in order to enable the two to communicate, in the network management device.
  • a SOAP service management interface is configured between the network element device and the network element device, and the request message message sent by the network element device to the network element device is converted into a request message frame that can be identified by the network element device, and the response message frame sent by the network element device to the network management device is configured. Converted into a response message that the network management device can recognize.
  • SOAP messages sent and received by network management devices are often in document/text encapsulation format.
  • This message format only contains parameter names and parameter values. Does not include a parameter type.
  • the current common practice is: First, write the Web Services Description Language (WSDL) interface file; Then, the WSDL interface file uses the code generation tool to generate the code of the SOAP business management interface. The generated code is generated for each command The method call, execute the corresponding code is to execute the corresponding command, to convert the received message and / or message frame.
  • WSDL Web Services Description Language
  • FIG. 1 shows a process of converting information of a SOAP service management interface in the prior art.
  • the process includes:
  • Steps 101-103 The network management device sends a SOAP request message to the SOAP service management interface, and the SOAP service management interface performs a corresponding code according to the SOAP request message sent by the network management device, and converts the SOAP request message into a request message frame that the network element device can identify. And sending the request message frame to the network element device;
  • Each SOAP request message sent by the network management device has a corresponding method call in the SOAP service management interface.
  • the SOAP service management interface invokes the corresponding method according to the command name carried in the request message, that is, the method name, and the corresponding code is executed.
  • the parameter value carried in the SOAP request message is converted into a binary parameter value recognizable by the network element device, and the framing is performed, so that the conversion of the request message is implemented.
  • Steps 104-106 After receiving the request message frame, the network element device sends a response message frame to the SOAP service management interface, and the SOAP service management interface executes the corresponding code according to the response message frame sent by the network element device. Parsing into a SOAP response message and sending it to the network management device;
  • the response message frame sent by the network element device also has a corresponding method call in the SOAP service management interface, and the SOAP service management interface executes the corresponding code according to the method name of the response message frame, so that the response message frame can be implemented to the SOAP response message. Conversion.
  • the inventors of the present invention have found that the above-mentioned processing manner is performed by solidifying each command sent by the network management device and the network element device into a code in the SOAP service management interface.
  • the WSDL interface file must be modified with the upgrade of the NE device.
  • the SOAP service management interface has to regenerate the code according to the modified WSDL and do the linkage upgrade.
  • the SOAP service management interface can be patched to form a new method call to adapt to the new interface commands brought by the NE device upgrade.
  • the inventor of the present invention finds that when the network element device is upgraded, the processing of the current SOAP service management interface is complicated, the operation is troublesome, and the burden caused by the upgrade of the network element device is heavier. Summary of the invention
  • Embodiments of the present invention provide a SOAP service management interface conversion information method, a SOAP service management interface information conversion system, and a SOAP service management interface.
  • the SOAP service management interface when the network element device is upgraded, the SOAP service management interface does not need to be upgraded, and the processing is simple.
  • an adaptation file including a parameter name and a parameter type corresponding relationship is set in the SOAP service management interface, and is used for A generic code that converts information.
  • a method for converting information by a SOAP service management interface comprising:
  • the general code converts the request message into a request message frame, and sends the request message frame to the network element device; receives a response message frame returned by the network element device, and converts the response message frame into a response by using the universal code And sending the response message to the network management device.
  • An information conversion system based on the Simple Object Access Protocol SOAP service management interface including:
  • a network management device configured to send a request message and receive response information
  • a SOAP service management interface in which an adaptation file corresponding to a parameter name and a parameter type is set, and a general code for converting information;
  • the SOAP service management interface is configured to receive a request message sent by the network management device, and according to the Included in the request message Parameter name, querying the parameter type corresponding to the parameter name in the adaptation file, and converting the request message into a request message frame by using a universal code according to the parameter type, and sending the request message frame;
  • the SOAP service management interface And configured to receive the response message frame, and convert the response message frame into a response message by using a universal code, and send the response message to the network management device;
  • the network element device is configured to generate a response message frame after receiving the request message frame sent by the SOAP service management interface, and send the response message frame to the SOAP service management interface.
  • a simple object access protocol SOAP service management interface including:
  • a storage unit for storing an adaptation file that sets a correspondence between the parameter name and the parameter type and a general code for converting the information
  • a receiving unit which receives a request message sent by the network management device and a response message frame sent by the network element device;
  • a request message conversion unit which queries a parameter type corresponding to the parameter name in an adaptation file in the storage unit according to a parameter name included in the request message received by the receiving unit, and utilizes the parameter in the storage unit according to the parameter type
  • a generic code converts the request message into a request message frame
  • a response message frame conversion unit configured to convert the response message frame received by the receiving unit to a response message sending unit for transmitting the request message according to a general code in the storage unit Frame and the response message.
  • the method and system for converting information of the SOAP service management interface and the SOAP service management interface provided by the embodiments of the present invention can simplify the processing of the SOAP service management interface conversion information, and can also reduce the burden caused by the upgrade of the network element device. , with greater versatility.
  • FIG. 1 is a flow chart of a process of converting information of a SOAP service management interface in the prior art.
  • Figure 2 is a flow chart showing the process of converting information by the SOAP service management interface in Embodiment 1 of the present invention.
  • FIG. 3 is a structural diagram of a SOAP Service Management Interface Translation Information System in accordance with an embodiment of the present invention.
  • FIG. 4 is a structural diagram of a SOAP service management interface in accordance with an embodiment of the present invention. Mode for carrying out the invention
  • the SOAP service management interface provides information conversion method and system.
  • the SOAP service management interface provides an adaptation file for describing a parameter type in a message and a general code for converting information, so the SOAP service management interface can According to the parameter type of the adaptation file, the common code is used for information conversion.
  • the WSDL is not needed to upgrade the SOAP service management interface, and the SOAP service management interface is not required to be verified and tested, so the processing is relatively simple. At the same time, it can also reduce the burden of upgrading the network element equipment.
  • the SOAP service management interface in the embodiment of the present invention does not need to be modified, and only needs to provide an adaptation file of the new network element device, and the SOAP service management interface can adapt to the new network element interface. Command, therefore, the versatility of the SOAP service management interface.
  • the SOAP service management interface is configured to convert the SOAP request message sent by the network management device into a request message frame and send it to the network element device, and convert the response message frame sent by the network element device into a SOAP response message and send the message to the network management device.
  • Each SOAP request message sent by the network management device All of the parameters may be included. Since the format of the request message is the encapsulation style of the document/text, the request message includes only the parameter name and parameter value of each parameter, excluding the parameter type; and the information that the network element device can recognize is binary. Formatted, so in order to convert the parameter values in the request message sent by the network management device into the binary parameter values that the network element device can recognize, it is necessary to know the parameter type.
  • the adaptation file of the network element device is provided to the SOAP service management interface,
  • the parameter type information of each parameter in the SOAP request message is described, that is, the adaptation file reflects the correspondence between the parameter name and the parameter type.
  • Table 1 exemplifies this correspondence by only two parameters.
  • the adaptation file reflects this correspondence in the form of XML representation.
  • the SOAP service management interface further includes a general code for converting a parameter value of a predetermined type in the request message into a parameter value in a binary format, and composing the request.
  • Message frame In order to convert the response message frame sent by the network element device into a response message described by XML, the universal code is further used to convert a response message frame of a predetermined format into a response message.
  • the process includes:
  • Step 201 The network management device sends a SOAP request message to the SOAP service management interface.
  • the SOAP request message includes one or more parameters, and each parameter includes a parameter name and a parameter value.
  • each parameter is exemplified by simple data. A parameter of type, not a parameter of a composite data type.
  • a parameter of a simple data type refers to a parameter that includes only one parameter value; a composite data type
  • the parameter refers to a parameter that includes more than two simple data types.
  • a parameter of a composite data type the parameter name is Result, indicating the result, including two parameters of a simple data type, the parameter names are ResultCode and ResultDesc, respectively representing the result code and the result description, wherein the parameter value of the result code is 100000001
  • the result value of the result description is Operation Succeed.
  • Steps 202-203 After receiving the SOAP request message, the SOAP service management interface sequentially reads the parameter name of each parameter in the request message, and queries the parameter file corresponding to each parameter name in the adaptation file, and uses the general parameter according to the parameter type.
  • the code converts the parameter value of the text format in the SOAP request message into a parameter value in a binary format that the network element device can recognize, and forms a request message frame, and sends the message frame to the network element device;
  • the parameter value can be converted into a parameter value in a binary format that the network element device can recognize.
  • the code of the SOAP service management interface here is not a method call generated for each message command, but a general code, and the parameter values belonging to the same parameter type can be based on
  • the parameter type converts the parameter value in text format into a parameter value in a binary format that the network element device can recognize.
  • the response message frame in a fixed format can also be converted into a response message in a fixed format.
  • Each parameter in the SOAP request message is a simple data type parameter with a single parameter type, so conversion can be achieved with relatively simple general purpose code.
  • the parameters in the SOAP request message are exemplified as simple data types.
  • each parameter in the SOAP request message is not limited to a simple data type, as long as the parameter type corresponding to each parameter is suitable.
  • the configuration file has a description, then the SOAP service management interface can find the parameter type according to the parameter name, and execute the general code to implement the conversion, but the composite data type also conforms to certain rules, for example, the parameter combination of the fixed simple data type. Only, the general code of the SOAP business management interface can be Now converted.
  • the request message frame sent by the SOAP service management interface to the network element device includes a parameter name, a parameter value, and a parameter type.
  • Steps 204-206 After receiving the request message frame, the network element device performs processing according to the request message frame, generates a response message frame and sends the response message frame to the SOAP service management interface, and the SOAP service management interface converts the received response message frame to generate The SOAP response message is sent to the network management device.
  • the SOAP response message sent by the SOAP service management interface to the network management device is also based on the XML expression. Since the result of the query class request is a tabular structure, the SOAP response message is required to be defined as a tabular structure, and each column in the table is The parameters are all simple data types. In order to correspond to the converted SOAP response message, the response message frame here needs to support the table structure, and each column parameter in the table carries the parameter name, the parameter value and the parameter type. Therefore, the SOAP service management interface is performed by using the general code. There is no need to read the adaptation file during the conversion process, and only need to execute the general code to convert according to the format of the response message.
  • response message If the response message is non-query, it does not include the data of the specific query. It can only include the result code and the result description. If it is a query class, it is a tabular structure. Each column parameter in the table is a simple data type.
  • the method for processing the SOAP service management interface and the method for converting the information of the SOAP service management interface are very convenient in the process of upgrading the network element device, because only the changes brought by the upgrade of the network element device are written into the adaptation file and provided to the
  • the SOAP service management interface can be adapted to the NE device upgrade without any changes.
  • the NE device upgrade may have modified the parameters, or it may provide new parameters, but either In this case, only the modified or added parameter type is written in the adaptation file and provided to the SOAP service management interface, and the SOAP service management interface can convert the request message into the request message frame according to the parameter type, thereby implementing the upgrade of the network element device.
  • the SOAP service management interface can be converted without upgrading. Therefore, the operation is simple, the burden of upgrading the NE device is reduced, and the versatility of the SOAP service management interface is also enhanced.
  • Another embodiment of the present invention proposes an information conversion system of a SOAP service management interface. The present embodiment will be described in detail below with reference to FIG.
  • FIG. 3 is a structural diagram of a SOAP service management interface conversion information system according to Embodiment 2 of the present invention.
  • the system includes: a network management device 31, a SOAP service management interface 30, and a network element device 32, wherein the SOAP service management interface 30 is provided with an adaptation file corresponding to the parameter name and the parameter type, and a general code for converting the information, which queries the parameter type corresponding to the parameter name according to the corresponding parameter name, and uses the general code to perform information according to the parameter type. Conversion.
  • the network management device 31 is configured to send a request message 331 and receive response information 334.
  • the SOAP service management interface 30 is provided with an adaptation file corresponding to the parameter name and the parameter type and a general code for converting the information, and is configured to receive the request message 331 sent by the network management device, and according to the request message
  • the parameter name included in 331 is queried in the adaptation file for the parameter type corresponding to the parameter name, and according to the parameter type, the request message 331 is converted into the request message frame 332 by using the general code, and the request message frame 332 is sent.
  • the SOAP service management interface 30 is also configured to receive a response message frame 333, and the generic code converts the response message frame 333 into a response message 334 and sends the response message 334 to the network management device 31.
  • the SOAP service management interface 30 converts the parameter values of the text format in the request message 331 into parameter values in a binary format by using a general code, and constitutes a request message frame 332.
  • the SOAP service management interface 30 The response message frame 333 is converted to a response message 334 using a generic code in accordance with the format of the response message 334.
  • the network element device 32 is configured to generate a response message frame 333 after receiving the request message frame 332 sent by the SOAP service management interface, and send the response message frame 333 to the SOAP service management interface 30.
  • the network management device 31 sends a request message 331 to the SOAP service management interface 30.
  • the SOAP service management interface 30 converts the request message 331, the request message frame 332 is sent to the network element device 33; the network element device 32 receives After the request message frame 332, the response message frame 333 is sent to the SOAP service management interface 30.
  • the SOAP service management interface 30 converts the response message frame 333, the response message 334 is sent to the network management device 31.
  • Another embodiment of the present invention provides a SOAP service management interface, which is the SOAP service management interface 30 in Embodiment 2.
  • the SOAP service management interface is described in detail below with reference to FIG.
  • FIG. 4 is a structural diagram of a SOAP service management interface 30 according to Embodiment 2 of the present invention.
  • the SOAP service management interface 30 includes: a storage unit 305 that stores an adaptation file set with a correspondence between a parameter name and a parameter type, and a general code for converting the information, and the adaptation file and The general code is provided to the response message frame conversion unit 304 and the request message conversion unit 303; the receiving unit 301 is configured to receive the request message sent by the network management device and the response message frame sent by the network element device; and the request message conversion unit 303 is configured to receive and receive The request message sent by the unit 301 queries the parameter type corresponding to the parameter name in the adaptation file provided by the storage unit 305 according to the parameter name included in the request message, and uses the general code provided by the storage unit 305 according to the parameter type.
  • the request message is converted into a request message frame; the response message frame conversion unit 304 is configured to receive the response message frame sent by the receiving unit 301, according to the location provided by the storage unit 305.
  • the general code converts the response message frame into a response message; the transmitting unit 302 is configured to send the request message frame produced by the request message conversion unit 303 and the response message generated by the response message frame conversion unit 304.
  • the request message conversion unit 303 is configured to: convert the parameter value of the text format in the request message into a parameter value in a binary format according to the parameter type, and form a request message frame; the response message frame conversion Unit 304 is configured to: convert the response message frame into a response message using a generic code in accordance with the format of the response message.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Description

业务管理接口转换信息的方法、 系统及其设备
技术领域
本发明涉及网络管理中的接口技术 , 尤其涉及一种简单对象访问协 议( SOAP )业务管理接口转换信息的方法和 SOAP业务管理接口的信 息转换系统以及一种 SOAP业务管理接口设备。 发明背景
随着业务管理多样化的发展, Web服务接口因为其跨平台、^ i吾言、 跨防火墙等优点正在成为网元管理通用的标准接口。 其中, 以 SOAP为 ^5出的 Web服务接口,即 SOAP业务管理接口在网元接口中的应用非常 广泛。
通常情况下,网管设备发送和接收的消息基于扩展标记语言( XML, extensible Markup Language ) 的表达方式, 而网元设备可以识别的信息 基于二进制的表达形式, 为了使二者可以通信, 在网管设备和网元设备 之间设置有 SOAP业务管理接口, 用于将网管设备发送给网元设备的请 求消息转换成网元设备可以识别的请求消息帧, 将网元设备发送给网管 设备的响应消息帧转换成网管设备可以识别的响应消息。
为了符合 Web服务互操作性( WS-I )规范, 也为了提高 SOAP消 息的兼容性,网管设备发送和接收的 SOAP消息常常采用文档 /文字封装 格式, 这种消息格式只包含参数名和参数值, 不包含参数类型。 对于这 种 SOAP业务管理接口, 当前通用的做法是: 首先, 编写 Web服务描述 语言( WSDL )接口文件; 然后, WSDL接口文件利用代码生成工 具生成 SOAP业务管理接口的代码。 所生成的代码是对每条命令所生成 的方法调用, 执行相应的代码就是执行相应的命令, 对接收到的消息和 /或消息帧做转换处理。
具体参见图 1, 图 1示出现有技术中 SOAP业务管理接口转换信息 的过程。 该过程包括:
步骤 101-103、 网管设备发送 SOAP请求消息至 SOAP业务管理接 口, SOAP业务管理接口根据网管设备发送的 SOAP请求消息执行相应 的代码, 将 SOAP请求消息转换成网元设备可以识别的请求消息帧, 并 将请求消息帧发送给网元设备;
网管设备发送的每条 SOAP请求消息在 SOAP业务管理接口中都有 相应的方法调用, SOAP业务管理接口根据请求消息中携带的命令名称, 也就是方法名称, 调用对应的方法执行相应的代码, 将 SOAP请求消息 中携带的参数值转换成网元设备可以识别的二进制参数值 , 并进行组 帧, 于是就实现了对请求消息的转换。
步骤 104-106、 网元设备收到请求消息帧后, 经过处理产生响应消 息帧发送至 SOAP业务管理接口, SOAP业务管理接口根据网元设备发 送的响应消息帧,执行相应的代码将响应消息帧解析成 SOAP响应消息, 发送至网管设备;
类似地, 网元设备发送的响应消息帧在 SOAP业务管理接口中也有 相应的方法调用, SOAP业务管理接口根据响应消息帧的方法名称执行 相应的代码, 就可以实现从响应消息帧到 SOAP响应消息的转换。
在实现本发明的过程中, 本发明的发明人发现, 上述的这种处理方 式是在 SOAP业务管理接口中将网管设备和网元设备发送的每条命令都 固化成代码来执行的。 在网元设备升级时, WSDL接口文件必然随着网 元设备的升级而进行修改, SOAP 业务管理接口不得不按照修改的 WSDL重新生成代码, 做联动升级。修改的 WSDL重新生成代码时, 需 要进行验证和测试, 最后才可以为 SOAP业务管理接口打补丁, 形成新 的方法调用, 以适应网元设备升级所带来的新的接口命令。 因此, 在实 现本发明的过程中, 本发明的发明人发现在网元设备升级时, 当前的 SOAP业务管理接口的处理比较复杂, 操作麻烦, 网元设备升级所带来 的负担较重。 发明内容
本发明的实施例提供了一种 SOAP业务管理接口转换信息的方法和 SOAP业务管理接口的信息转换系统以及一种 SOAP业务管理接口。 本发明的实施例在网元设备升级时, SOAP业务管理接口可以不必随之 升级, 处理简单; 具体地, 在 SOAP业务管理接口中设置包含参数名与 参数类型对应关系的适配文件和用于转换信息的通用代码。
一种 SOAP业务管理接口转换信息的方法, 其包括:
根据从网管设备接收的请求消息中包含的参数名,在设置有参数 名与参数类型对应关系的适配文件中查询参数名对应的参数类型; 根据查询得到的参数类型,利用用于转换信息的通用代码将所述 请求消息转换成请求消息帧,并将所述请求消息帧发送给网元设备; 接收网元设备返回的响应消息帧 , 利用所述通用代码将所述响应 消息帧转换成响应消息, 并将所述响应消息发送给所述网管设备。
一种基于简单对象访问协议 SOAP 业务管理接口的信息转换系 统, 包括:
网管设备, 用于发送请求消息和接收响应信息;
SOAP业务管理接口 , 在其中设置有参数名与参数类型对应关系 的适配文件和用于转换信息的通用代码;该 SOAP业务管理接口配置 为接收所述网管设备发送的请求消息,并根据所述请求消息中包含的 参数名, 在所述适配文件中查询参数名对应的参数类型, 并根据参数 类型, 利用通用代码将所述请求消息转换成请求消息帧, 并发送该请 求消息帧; 所述 SOAP业务管理接口还配置为接收响应消息帧, 并利 用通用代码将所述响应消息帧转换成响应消息,并向所述网管设备发 送所述响应消息;
网元设备, 其配置为在收到所述 SOAP业务管理接口发送的请求 消息帧后, 生成响应消息帧, 并向所述 SOAP业务管理接口发送所述 响应消息帧。
一种简单对象访问协议 SOAP业务管理接口, 包括:
存储单元,其用于保存设置参数名与参数类型对应关系的适配文 件和用于转换信息的通用代码;
接收单元,其接收网管设备发送的请求消息和网元设备发送的响 应消息帧;
请求消息转换单元,其根据接收单元接收的请求消息中包含的参 数名, 在所述存储单元中的适配文件中查询参数名对应的参数类型, 并根据参数类型,利用所述存储单元中的通用代码将所述请求消息转 换为请求消息帧;
响应消息帧转换单元, 其用于将所述接收单元接收的响应消息 帧,根据所述存储单元中的通用代码将所述响应消息帧转换成响应消 发送单元, 其用于发送所述请求消息帧和所述响应消息。
因此, 本发明实施例所提供的 SOAP业务管理接口转换信息的方法 和系统和 SOAP业务管理接口, 可以使 SOAP业务管理接口转换信息的 处理简单, 同时也可以减轻网元设备升级所带来的负担, 具有更强的通 用性。 附图简要说明
图 1是现有技术中 SOAP业务管理接口转换信息过程的流程图。 图 2是根据本发明的实施例 1中 SOAP业务管理接口转换信息过程 的流程图。
图 3是根据本发明的实施例 中 SOAP业务管理接口转换信息系统 的结构图。
图 4是根据本发明的实施例 中 SOAP业务管理接口的结构图。 实施本发明的方式
本发明的实施例提供的 SOAP 业务管理接口转换信息的方法和系 统, 由于 SOAP业务管理接口提供有用于描述消息中参数类型的适配文 件和用于转换信息的通用代码, 所以 SOAP业务管理接口可以根据适配 文件的参数类型利用通用代码进行信息的转换, 在网元设备升级时, 不 需要利用 WSDL来升级 SOAP业务管理接口,也不需要对 SOAP业务管 理接口进行验证和测试 , 所以处理相对简单, 同时也可以减轻网元设备 升级所带来的负担。
同时, 在网元设备升级时, 本发明实施例中的 SOAP业务管理接口 不需要做任何改动, 只需要提供新的网元设备的适配文件, SOAP业务 管理接口就可以适应新的网元接口命令 , 因此, SOAP业务管理接口的 通用性强。
为使本发明的特征和优点更加清楚明白, 下面参照附图对本发明的 实施例作进一步的描述。
SOAP业务管理接口主要负责将网管设备发送的 SOAP请求消息转 换成请求消息帧发送给网元设备 , 将网元设备发送的响应消息帧转换成 SOAP响应消息发送给网管设备。 网管设备发送的每条 SOAP请求消息 都可以包括一个以上的参数,由于请求消息的格式为文档 /文本的封装样 式,所以请求消息只包括每个参数的参数名和参数值,不包括参数类型; 而网元设备可以识别的信息是二进制格式的, 所以为了可以将网管设备 发送的请求消息中的参数值转换成网元设备可以识别的二进制参数值 需要知道参数类型, 这里, 提供网元设备的适配文件给 SOAP业务管理 接口,用于描述 SOAP请求消息中每个参数的参数类型信息,也就是说, 适配文件反映参数名和参数类型的对应关系 ,这种对应关系可参见表 1。 表 1仅以两个参数举例示出这种对应关系, 具体实现时, 适配文件是以 XML的表达方式反映这种对应关系的。
Figure imgf000008_0001
表 1
另外, 为了将用 XML描述的参数值转换成二进制格式的参数值, SOAP业务管理接口中还包括通用代码 , 用于将请求消息中预定类型的 参数值转换成二进制格式的参数值, 并组成请求消息帧; 为了将网元设 备发送的响应消息帧转换成用 XML描述的响应消息, 通用代码还用于 将预定格式的响应消息帧转换成响应消息。
具体地, 参见图 2, 描述根据本发明的 SOAP业务管理接口转换信 息的过程, 该过程包括:
步骤 201: 网管设备向 SOAP业务管理接口发送 SOAP请求消息; 其中, SOAP请求消息包括一个以上的参数, 每个参数都包括参数 名和参数值, 在本实施例中, 每个参数都举例为简单数据类型的参数, 而不是复合数据类型的参数。
简单数据类型的参数是指只包括一个参数值的参数; 复合数据类型 的参数是指参数包括两个以上简单数据类型的参数。 例如, 一个复合数 据类型的参数, 参数名为 Result, 表示结果, 包括两个简单数据类型的 参数, 参数名分别为 ResultCode和 ResultDesc, 分别表示结果码和结果 描述, 其中结果码的参数值是 100000001, 结果描述的参数值是操作成 功 ( Operation Succeed )。
步骤 202-203: SOAP业务管理接口收到 SOAP请求消息后,依次读 取请求消息中每个参数的参数名 , 并在适配文件中查询每个参数名对应 的参数类型, 根据参数类型利用通用代码将 SOAP请求消息中的文本格 式的参数值转换成网元设备可以识别的二进制格式的参数值 , 组成请求 消息帧, 发送给网元设备;
这里, 在获得参数类型的情况下执行通用代码就可以将参数值转换 成网元设备可以识别的二进制格式的参数值。 与现有技术中根据 WSDL 接口文件所生成的代码不同 , 这里 SOAP业务管理接口的代码不是针对 每条消息命令生成的方法调用, 而是通用的代码, 对于属于同一参数类 型的参数值都可以根据参数类型将文本格式的参数值转换成网元设备 可以识别的二进制格式的参数值, 对于固定格式的响应消息帧也同样可 以转换成固定格式的响应消息。 SOAP请求消息中每个参数都是简单数 据类型的参数, 具有单一的参数类型, 因此, 用相对简单的通用代码就 可以实现转换。
在本发明的实施例中, 将 SOAP请求消息中的参数举例为简单数据 类型, 实际应用中, SOAP请求消息中的每个参数不局限于简单数据类 型, 只要每个参数对应的参数类型在适配文件中有描述, 那么 SOAP业 务管理接口就可以根据参数名找到参数类型, 执行通用代码实现转换, 只不过复合数据类型也要符合一定的规则, 例如, 是由固定的简单数据 类型的参数组合而成, 只有这样 SOAP业务管理接口的通用代码才能实 现转换。
SOAP业务管理接口发送给网元设备的请求消息帧包括参数名、 参 数值和参数类型。
步骤 204-206: 网元设备收到请求消息帧后, 根据请求消息帧做出 处理, 生成响应消息帧发送给 SOAP业务管理接口, SOAP业务管理接 口对所收到的响应消息帧进行转换, 生成 SOAP响应消息发送给网管设 备。
SOAP 业务管理接口发送给网管设备的 SOAP 响应消息也是基于 XML表达方式的, 由于查询类请求的结果是一种表状结构, 这样也就 需要 SOAP响应消息定义为表状结构, 并且表中每列参数都是简单数据 类型。 为了与转换后的 SOAP响应消息相对应, 这里的响应消息帧需要 支持表状结构, 并且表中每列参数都携带参数名、 参数值和参数类型, 于是, SOAP业务管理接口在利用通用代码进行转换的过程中无需读取 适配文件, 只需要按照响应消息的格式执行通用代码进行转换即可。
响应消息如果是非查询类的, 不包括具体查询的数据, 可以只包括 结果码和结果描述; 如果是查询类的, 则是表状结构, 表中每列参数都 是简单数据类型。
以上参考图 2, 描述了根据本发明的 SOAP业务管理接口转换信息 的过程, 其中, 只要提供网元设备的适配文件, SOAP业务管理接口就 可以根据适配文件中描述的参数类型进行信 , ¾的转换。
这种处理 SOAP业务管理接口的方法和 SOAP业务管理接口转换信 息的方法在网元设备升级过程中非常方便 , 因为只需要将网元设备升级 所带来的变化编写进适配文件, 并提供给 SOAP业务管理接口, 那么 SOAP业务管理接口无需做任何变化就可以适应网元设备升级。 网元设 备升级可能是修改了参数, 也可能是提供了新的参数, 但是无论是哪种 情况,只需要将修改或增加的参数类型编写在适配文件中 ,提供给 SOAP 业务管理接口, SOAP业务管理接口就可以根据参数类型将请求消息转 换为请求消息帧, 从而实现网元设备升级而 SOAP业务管理接口不升级 就可以进行转换的目的, 因此, 操作简单, 降低了网元设备升级带来的 负担, 并且 SOAP业务管理接口的通用性也得到增强。
本发明的另一实施例提出了一种 SOAP业务管理接口的信息转换 系统。 以下结合图 3对本实施例进行伴细说明。
如图 3所示是根据本发明的实施例 2中 , SOAP业务管理接口转换 信息系统的结构图, 该系统包括: 网管设备 31、 SOAP业务管理接口 30和网元设备 32,其中 SOAP业务管理接口 30中设置有参数名与参 数类型对应关系的适配文件和用于转换信息的通用代码,其根据相应 的参数名查询该参数名对应的参数类型, 并根据参数类型, 利用通用 代码进行信息的转换。
该实施例中, 网管设备 31 用于发送请求消息 331 , 和接收响应 信息 334。
SOAP业务管理接口 30中设置有参数名与参数类型对应关系的 适配文件和用于转换信息的通用代码,并且其被配置为接收所述网管 设备发送的请求消息 331 ,并根据所述请求消息 331中包含的参数名 , 在所述适配文件中查询参数名对应的参数类型, 并根据参数类型, 利 用通用代码将所述请求消息 331转换成请求消息帧 332, 并发送该请 求消息帧 332; SOAP业务管理接口 30还配置为接收响应消息帧 333, 并通用代码将所述响应消息帧 333转换成响应消息 334, 并向所述网 管设备 31发送所述响应消息 334。 其中 SOAP业务管理接口 30利用 通用代码将所述请求消息 331 中的文本格式的参数值转换成二进制 格式的参数值, 并组成请求消息帧 332。 其中 SOAP业务管理接口 30 按照所述响应消息 334的格式, 利用通用代码将所述响应消息帧 333 转换成响应消息 334。
网元设备 32被配置为在收到所述 SOAP业务管理接口发送的请 求消息帧 332后, 生成响应消息帧 333, 并向所述 SOAP业务管理接 口 30发送所述响应消息帧 333。
如图 3所示, 网管设备 31向 SOAP业务管理接口 30发送请求消 息 331 ; SOAP业务管理接口 30转化所述请求消息 331后, 向网元设 备 33发送请求消息帧 332; 网元设备 32在接收所述请求消息帧 332 后, 向 SOAP业务管理接口 30发送响应消息帧 333; SOAP业务管理 接口 30转化所述响应消息帧 333后, 向网管设备 31发送响应消息 334。
本发明的另一实施例提供了一种 SOAP业务管理接口, 其为实施例 2中 SOAP业务管理接口 30。 以下结合图 4对该 SOAP业务管理接口进 行伴细说明。
如图 4所示为根据本发明的实施例 2中 SOAP业务管理接口 30的 结构图。 在该实施例中, SOAP业务管理接口 30包括: 存储单元 305, 其保存设置有参数名与参数类型的对应关系的适配文件和用于转换 信息的通用代码,并将所述适配文件和通用代码提供给响应消息帧转 换单元 304和请求消息转换单元 303; 接收单元 301用于接收网管设 备发送的请求消息和网元设备发送的响应消息帧;请求消息转换单元 303 , 其用于接收接收单元 301发送来的请求消息, 根据所述请求消 息中包含的参数名在存储单元 305 提供的适配文件中查询参数名对 应的参数类型,并根据参数类型利用存储单元 305提供的通用代码将 所述请求消息转换为请求消息帧; 响应消息帧转换单元 304, 其用于 接收接收单元 301发送来的响应消息帧,根据存储单元 305提供的所 述通用代码将所述响应消息帧转换成响应消息; 发送单元 302, 其用 于发送请求消息转换单元 303 生产的请求消息帧和响应消息帧转换 单元 304生成的响应消息。 其中请求消息转换单元 303配置为: 根据 参数类型,利用所述通用代码将所述请求消息中的文本格式的参数值 转换成二进制格式的参数值, 并组成请求消息帧; 所述响应消息帧转 换单元 304配置为: 按照所述响应消息的格式, 利用通用代码将所述 响应消息帧转换成响应消息。
从上述系统和装置的实施例可以看出,由于使用了保存有参数名 与参数类型对应关系的适配文件和用于转换信息的通用代码, 使得 SOAP业务管理接口转换信息的处理更简单, 同时也可以减轻网元设备 升级所带来的负担, 具有更强的通用性。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的 保护范围。

Claims

权利要求书
1、一种简单对象访问协议 SOAP业务管理接口转换信息的方法, 包括:
根据从网管设备接收的请求消息中包含的参数名,在设置有参数 名与参数类型对应关系的适配文件中查询参数名对应的参数类型; 根据查询得到的参数类型,利用用于转换信息的通用代码将所述 请求消息转换成请求消息帧,并将所述请求消息帧发送给网元设备; 接收网元设备返回的响应消息帧 ,利用所述通用代码将所述响应 消息帧转换成响应消息, 并将所述响应消息发送给所述网管设备。
2、 根据权利要求 1所述的方法, 其特征在于, 所述利用通用代 码将所述请求消息转换成请求消息帧包括:
利用通用代码将所述请求消息中的文本格式的参数值转换成二 进制格式的参数值, 并组成包括有参数名、 参数值和参数类型的请求 消息帧。
3、 根据权利要求 1所述的方法, 其特征在于, 所述响应消息帧 支持表状结构, 表中的每列都包括参数名、 参数值和参数类型。
4、 根据权利要求 1所述的方法, 其特征在于, 所述响应消息支 持表状结构, 表中每列的参数都是简单数据类型。
5、 根据权利要求 1所述的方法, 其特征在于, 所述利用所述通 用代码将所述响应消息帧转换成响应消息包括:
所述 SOAP业务管理接口按照所述响应消息的格式,利用通用代 码将所述响应消息帧转换成响应消息。
6、 一种基于简单对象访问协议 SOAP业务管理接口的信息转换 系统, 包括:
网管设备, 用于发送请求消息和接收响应信息; SOAP业务管理接口 , 在其中设置有参数名与参数类型对应关系 的适配文件和用于转换信息的通用代码;该 SOAP业务管理接口配置 为接收所述网管设备发送的请求消息,并根据所述请求消息中包含的 参数名, 在所述适配文件中查询参数名对应的参数类型, 并根据参数 类型, 利用通用代码将所述请求消息转换成请求消息帧, 并发送该请 求消息帧; 所述 SOAP业务管理接口还配置为接收响应消息帧, 并利 用通用代码将所述响应消息帧转换成响应消息,并向所述网管设备发 送所述响应消息;
网元设备,其配置为在收到所述 SOAP业务管理接口发送的请求 消息帧后, 生成响应消息帧, 并向所述 SOAP业务管理接口发送所述 响应消息帧。
7、根据权利要求 6所述的信息转换系统,其特征在于,所述 SOAP 业务管理接口配置为:利用通用代码将所述请求消息中的文本格式的 参数值转换成二进制格式的参数值, 并组成包括有参数名、 参数值和 参数类型的请求消息帧。
8、根据权利要求 6所述的信息转换系统,其特征在于,所述 SOAP 业务管理接口配置为: 按照所述响应消息的格式, 利用通用代码将所 述响应消息帧转换成响应消息。
9、 一种简单对象访问协议 SOAP业务管理接口, 包括: 存储单元,其用于保存设置参数名与参数类型对应关系的适配文 件和用于转换信息的通用代码;
接收单元,其接收网管设备发送的请求消息和网元设备发送的响 应消息帧;
请求消息转换单元,其根据接收单元接收的请求消息中包含的参 数名, 在所述存储单元中的适配文件中查询参数名对应的参数类型, 并根据参数类型,利用所述存储单元中的通用代码将所述请求消息转 换为请求消息帧;
响应消息帧转换单元, 其用于将所述接收单元接收的响应消息 帧 , 所述存储单元中的通用代码将所述响应消息帧转换成响应消 发送单元, 其用于发送所述请求消息帧和所述响应消息。
10、 根据权利要 9所述的业务管理接口, 其特征在于, 所述请求 消息转换单元配置为:
根据参数类型,利用所述通用代码将所述请求消息中的文本格式 的参数值转换成二进制格式的参数值, 并组成包括有参数名、 参数值 和参数类型的请求消息帧。
11、 根据权利要 9所述的业务管理接口, 其特征在于, 所述响应 消息帧转换单元配置为:
按照所述响应消息的格式,利用通用代码将所述响应消息帧转换 成响应消息。
PCT/CN2007/070188 2006-06-28 2007-06-26 Procédé, système et dispositif de conversion d'information dans une interface de gestion de transactions WO2008003257A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610094825.X 2006-06-28
CNA200610094825XA CN1996878A (zh) 2006-06-28 2006-06-28 一种简单对象访问协议业务管理接口转换信息的方法

Publications (1)

Publication Number Publication Date
WO2008003257A1 true WO2008003257A1 (fr) 2008-01-10

Family

ID=38251826

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/070188 WO2008003257A1 (fr) 2006-06-28 2007-06-26 Procédé, système et dispositif de conversion d'information dans une interface de gestion de transactions

Country Status (2)

Country Link
CN (1) CN1996878A (zh)
WO (1) WO2008003257A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434311A (zh) * 2021-06-28 2021-09-24 平安科技(深圳)有限公司 业务数据交互方法、装置、设备及存储介质
CN115242829A (zh) * 2022-06-14 2022-10-25 交控科技股份有限公司 Its消息流传输方法、装置、设备以及存储介质
CN115373655A (zh) * 2022-10-25 2022-11-22 中国人民解放军国防科技大学 一种基于标准化模板的信息协议代码自动生成方法

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277301B (zh) * 2008-04-24 2012-04-25 华为技术有限公司 分布式系统的接口调用方法、装置和系统
CN101459669A (zh) * 2008-12-29 2009-06-17 成都市华为赛门铁克科技有限公司 一种网络文件系统的访问方法和装置
CN101515929B (zh) * 2009-03-24 2012-07-04 成都市华为赛门铁克科技有限公司 消息格式转换方法和网络设备及代理装置
CN102497437B (zh) * 2011-12-16 2015-02-18 北京邮电大学 一种实现负载均衡的方法、设备及系统
CN103428019A (zh) * 2012-05-24 2013-12-04 中兴通讯股份有限公司 一种网络服务消息的管理方法和系统
CN104320402B (zh) * 2014-10-31 2017-11-10 北京思特奇信息技术股份有限公司 一种基于二进制算法的服务接口访问控制方法及系统
CN105791346B (zh) * 2014-12-22 2020-07-14 中兴通讯股份有限公司 实现soap接口的跨平台解决方法及服务、网络设备
CN112579421A (zh) * 2019-09-27 2021-03-30 北大方正集团有限公司 接口测试方法、系统及计算机可读存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005022411A1 (en) * 2003-09-01 2005-03-10 Koninklijke Philips Electronics N.V. Interface for transcoding system
CN1725754A (zh) * 2004-07-22 2006-01-25 华为技术有限公司 一种网元接口协议适配方法与装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005022411A1 (en) * 2003-09-01 2005-03-10 Koninklijke Philips Electronics N.V. Interface for transcoding system
CN1725754A (zh) * 2004-07-22 2006-01-25 华为技术有限公司 一种网元接口协议适配方法与装置

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434311A (zh) * 2021-06-28 2021-09-24 平安科技(深圳)有限公司 业务数据交互方法、装置、设备及存储介质
CN115242829A (zh) * 2022-06-14 2022-10-25 交控科技股份有限公司 Its消息流传输方法、装置、设备以及存储介质
CN115242829B (zh) * 2022-06-14 2023-09-29 交控科技股份有限公司 Its消息流传输方法、装置、设备以及存储介质
CN115373655A (zh) * 2022-10-25 2022-11-22 中国人民解放军国防科技大学 一种基于标准化模板的信息协议代码自动生成方法
CN115373655B (zh) * 2022-10-25 2023-02-07 中国人民解放军国防科技大学 一种基于标准化模板的信息协议代码自动生成方法

Also Published As

Publication number Publication date
CN1996878A (zh) 2007-07-11

Similar Documents

Publication Publication Date Title
WO2008003257A1 (fr) Procédé, système et dispositif de conversion d'information dans une interface de gestion de transactions
US9491245B2 (en) System and method for network management using extensible markup language
DK2914022T3 (en) Device management method, middleware and machine-to-machine communication platform, device and system
US7571447B2 (en) Loose coupling of web services
TWI431978B (zh) Methods, devices and systems for obtaining resources
JP2008532119A5 (zh)
WO2015035816A1 (zh) 一种nginx服务器配置维护方法及系统
CN111046100B (zh) 一种关系型数据库到非关系型数据库的同步方法和系统
WO2018176244A1 (zh) 数据采集方法、装置和动环网管系统
WO2018018607A1 (zh) 一种基于报文协议识别的传输协议固定转换方法及装置
WO2011015089A1 (zh) 一种自适应编码/解码方法和装置
WO2022141287A1 (zh) 数据管理和查询方法、装置、服务网格系统、计算设备
JP2011507074A5 (zh)
CN115136256A (zh) 信息处理方法、装置、计算设备、介质和计算机程序
US20110282889A1 (en) Method and Device for Distributed Configuration of Telematics Services in Motor Vehicle Systems
JP2003141002A (ja) Url長変換システム及びそのプログラム
WO2010105521A1 (zh) 邮件处理方法及设备
JP2009265718A (ja) ネットワーク管理情報の差分データのみを送信するネットワーク装置、サーバ、プログラム及び方法
CN101621540A (zh) 基于bpel引擎组合企业服务总线内部服务的方法
WO2007022696A1 (fr) Procédé et appareil de gestion de réseau destiné à la mise en œuvre de relation héritée de hiérarchie de service d’informations dans l’interface de gestion de réseau
CN111723036B (zh) 数据处理方法、相关设备及计算机存储介质
KR101270746B1 (ko) 웹 서비스 중개 장치 및 방법
KR100679033B1 (ko) 이동 통신 단말기용 웹 페이지를 제공하는 장치 및 방법
CN100384144C (zh) 一种组合设备及其管理维护方法
JP5548433B2 (ja) Webサービス基盤システム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07721801

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: RU

122 Ep: pct application non-entry in european phase

Ref document number: 07721801

Country of ref document: EP

Kind code of ref document: A1