WO2010127531A1 - 基于web service的装置、web service组件及方法 - Google Patents

基于web service的装置、web service组件及方法 Download PDF

Info

Publication number
WO2010127531A1
WO2010127531A1 PCT/CN2009/074218 CN2009074218W WO2010127531A1 WO 2010127531 A1 WO2010127531 A1 WO 2010127531A1 CN 2009074218 W CN2009074218 W CN 2009074218W WO 2010127531 A1 WO2010127531 A1 WO 2010127531A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
web service
message
xml
http
Prior art date
Application number
PCT/CN2009/074218
Other languages
English (en)
French (fr)
Inventor
崔保昌
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP09844283.3A priority Critical patent/EP2429150A4/en
Priority to BRPI0924618A priority patent/BRPI0924618A2/pt
Publication of WO2010127531A1 publication Critical patent/WO2010127531A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Definitions

  • WEB SERVICE device WEB SERVICE component and method
  • the invention relates to the application of computer communication technology, in particular to a device, a web service component and a method in a web service manner.
  • Web Service technology refers to an Interface that can use XML (Extensible Markup Language) messages and access it through the network. This Interface describes a set of accessible operations, and then asks the service provider higher.
  • DCS Distributed Control System
  • SOAP Simple Object Access Protocol, Simple Object Access Protocol, provides a kind of Web services and other The mechanism for communication between applications
  • the technical problem to be solved by the present invention is to provide a Web Service-based device, a Web Service component and a method, to uniformly manage an interface, and realize rapid fault location.
  • the present invention provides a Web Service-based device, which may also be referred to as a unified management interface machine, which includes a hypertext transfer protocol HTTP module and an integrated management interface IMP (Connected to each other). ) module, where
  • the HTTP module is configured to send and receive an Extensible Markup Language (XML) message between the Web Service device and the Web Service peer device based on the HTTP protocol;
  • XML Extensible Markup Language
  • the IMP module is configured to implement unified management of the XML message of the Web Service device, construct an XML message sent to the peer device of the Web Service, and parse an XML message sent by the peer device of the Web Service;
  • the Web Service-based device is disposed on the Web Service device side to implement a unified management interface.
  • the IMP module is configured with a unified management configuration file, and constructs or parses an extensible markup language XML message according to the unified management configuration file,
  • the unified management configuration file is defined in an XML file format and is obtained by parsing an XML language file that describes the Web service information, that is, a WSDL file.
  • the HTTP module includes a simple object access protocol SOAP sub-module and an extensible markup language XML sub-module, where the SOAP sub-module is used to encapsulate a message based on a SOAP protocol and implement data communication based on an HTTP protocol;
  • the IMP module is configured to invoke the XML sub-module to implement a parsing function of the message.
  • the HTTP module includes a Simple Object Access Protocol (SOAP) sub-module, where the SOAP sub-module is configured to encapsulate a message based on a SOAP protocol and implement data communication based on an HTTP protocol;
  • SOAP Simple Object Access Protocol
  • the IMP module includes an XML sub-module, wherein the XML sub-module operates independently and is configured to implement message construction and parsing functions.
  • the present invention further provides a Web Service-based device, which may also be referred to as a unified management interface machine, and the device includes a hypertext transfer protocol HTTP module and a unified management interface IMP module that are connected to each other and operate independently.
  • a Web Service-based device which may also be referred to as a unified management interface machine, and the device includes a hypertext transfer protocol HTTP module and a unified management interface IMP module that are connected to each other and operate independently.
  • the HTTP module is configured to receive the message sent by the peer device and forward the message to the IMP module, and is further configured to receive the message processed by the IMP module, and forward the message to the peer device;
  • Managing a configuration file the IMP module is configured to receive a message sent by the local device, and construct an extensible markup language XML message according to the unified management configuration file and forward the message to the HTTP module; and further configured to receive the HTTP module to forward And parsing the message sent by the HTTP module according to the unified management configuration file;
  • the unified management configuration file is an XML format file defined according to an XML language file describing a web service information, that is, a WSDL file;
  • the HTTP module includes a simple object access protocol SOAP sub-module and an extensible markup language XML sub-module, where the SOAP sub-module is used to encapsulate a message based on a SOAP protocol and implement data communication based on an HTTP protocol;
  • the IMP module is configured to invoke the XML sub-module to implement a parsing function of the message.
  • the present invention further provides a Web Service component, where the Web Service component includes a Web Service device and a Web Service-based device (also referred to as a unified management interface machine), wherein the Web Service-based device
  • the device also referred to as a unified management interface device
  • the HTTP module is configured to receive the message sent by the web service peer device and forward the message to the IMP module, and further configured to receive the message processed by the IMP module, and forward the message to the peer device of the Web service;
  • the IMP module is configured with a unified management configuration file, and the IMP module is configured to receive a message sent by the web service device, and construct an extensible markup language XML message according to the unified management configuration file and forward the message to the HTTP module; And being configured to receive the message forwarded by the HTTP module, and parse the message sent by the HTTP module according to the unified management configuration file;
  • the unified management configuration file is defined according to an XML language file that describes the Web service information, that is, a WSDL file. XML format file.
  • the HTTP module includes a simple object access protocol SOAP sub-module and an extensible markup language XML sub-module, where the SOAP sub-module is used to encapsulate a message based on a SOAP protocol and implement data communication based on an HTTP protocol;
  • the IMP module is configured to invoke the XML sub-module to complete the parsing function of the message.
  • the web service device is a service provider or a service requester.
  • the present invention further provides a method for implementing a Web Service, the method comprising:
  • the IMP module constructs an XML message according to the configured unified management configuration file obtained from the WSDL file and sends it to the Hypertext Transfer Protocol HTTP module.
  • the HTTP module sends the received XML message of the IMP module to the peer device according to the HTTP protocol and performs the simple object access protocol SOAP encapsulation;
  • the HTTP module receives an XML message sent by the peer device according to the HTTP protocol, and forwards the XML message to the IMP module;
  • the IMP module parses the XML message sent by the peer device forwarded by the HTTP module according to the unified management configuration file.
  • the Web Service-based device also referred to as a unified management interface machine
  • the Web Service component and method of the present invention can solve the software security well and the tester finds it by reasonably dividing the module function.
  • the critical location of the problem can be quickly located to resolve the problem in time.
  • the invention realizes the construction and parsing of the XML message according to the set unified configuration file, and does not need to redevelop the communication and parsing module in the subsequent Web Service services with different functional requirements of the same system, and the programmer only needs to modify the XML file format when encountering such problems.
  • Unified configuration files do not require the development of associated modules, greatly improving program efficiency, reducing development costs, enhancing system stability, scalability, and stability.
  • Figure 1 Flow chart of the interface message based on Web Service.
  • FIG. 2 is a Web Service-based device (also referred to as a unified management interface machine) of the present invention.
  • Schematic diagram of module structure. 3 is a flow chart of a method of implementing a Web Service of the present invention.
  • a Web Service system using the Web Service-based device of the present invention includes a service requester, a service provider, and a service middleware, and can perform operations such as sending, searching, and binding, wherein
  • Service Requester Used to discover Web services, then call these services to create an application, then the application is described by the Service Description Language, and its description information is sent through the middleware. For specific applications, it can be implemented by OSP (Open Service Platform) in Figure 3.
  • OSP Open Service Platform
  • Service Provider Provides a service port and maintains a registry to keep the service available. For specific applications, it can be implemented by DCS (Data Center for Short Message Service).
  • DCS Data Center for Short Message Service
  • the service middleware that is, the Web Service-based device of the present invention (also referred to as a unified management interface machine): is an intermediary of a service provider and a service requester, and requests/receives a relay/relay of a message/response message.
  • Service middleware can be implemented on the service provider side and/or on the service requester side.
  • the device on the service middleware implementation side is called the local device.
  • the service provider on the service provider side is the service provider
  • the service requester is the peer device.
  • the Web Service-based device also referred to as a unified management interface machine
  • the Web Service-based device includes an HTTP module (ie, a hypertext transfer protocol module) and an IMP module that are connected to each other and operate independently, and details. as follows:
  • the HTTP module is configured to send and receive messages between the local device and the peer device based on the HTTP protocol, and encapsulates a connected simple object access protocol submodule (SOAP submodule for short) and an extensible markup language submodule (referred to as an XML submodule). , among them,
  • the SOAP sub-module is used for high-speed switching of data packets for processing data communication between network communications and SOAP encapsulation of interactive messages based on the SOAP protocol, and is also used for encrypting data packets, and using a proprietary encryption protocol to restore encrypted data packets into Parsable XML file format message body,
  • the HTTP module can normally receive the XML message body that sends the Web Service mode, and the XML message body of the Web Service mode is transmitted and received through the remote access interface provided by the HTTP module.
  • the specific function of the SOAP sub-module is as follows: it is used to receive the message sent by the peer end and forwarded to the IMP module; and is also used for SOAP encapsulation of the message processed by the IMP module and sent to the peer end;
  • the XML submodule is used to parse the XML message body received by the SOAP module;
  • Integrate management port (IM) module set unified management configuration file, is a design structure for centralized and centralized management of messages, mainly realizes the separation of application programs and network communication modules (referred to as HTTP modules), and separately develops and solves System stability and scalability;
  • the specific functions of the IMP module are implemented in: receiving a message sent by the HTTP module, and calling the XML sub-module to parse the specific content of the message according to the unified management configuration file and sending the content to the local device; Receiving a message sent by the local device, and constructing an XML message according to the message content and the unified management configuration file, and sending the message to the HTTP module;
  • the unified management configuration file is a file that is parsed into a WSDL file and defined in an XML file format.
  • the flexibility, simplicity, and ease of use of XML are the preferred targets for handling system compatibility issues.
  • the service provider determines whether the message is delivered through the middleware.
  • the lookup operation is done by the service requester and the middleware.
  • the service requester describes the type of service they are looking for, and the service middleware publishes the result that best matches the request.
  • Binding The binding operation takes place between the service requester and the service provider. After proper negotiation between the parties, the requester can access and invoke the services provided by the provider.
  • WSDL Web Services Description Language
  • Web Services Description Language is an XML language that describes the Web Service monthly service information, and provides a unified method for describing Web Service services to other programs. It mainly describes the information content and defines the description of the Web service interface specification. standard format.
  • the present invention also provides a web service component, which includes a web service device and a web service-based device (also referred to as a unified management interface machine), and the device includes interconnected and independently runs a hypertext transfer protocol.
  • the HTTP module and the unified management interface IMP module, the Web Service device is connected to the IMP module, and the module structure of the unified management interface device is as described above.
  • the web service device is a service provider or a service requester, and correspondingly, the web service peer device is a service requester or a service provider.
  • the following is an example of implementing the unified management interface device of the present invention on the service provider side:
  • the following describes the Web Service process of the Web Service mode by using the OSP as a service requester and the DCS as a service provider.
  • the Web The complete message process of the service mode includes: DCS module, IMP module, HTTP module, OSP (Open service platform service open platform).
  • the process of Web service mode includes the following steps:
  • Step 1 The OSP as a service requester sends a service request message to the service provider DCS system in a Web Service manner, that is, the Web Service-based device (also referred to as a unified management interface machine) of the present invention sends the service request message and constructs it in XML manner.
  • a Web Service manner that is, the Web Service-based device (also referred to as a unified management interface machine) of the present invention sends the service request message and constructs it in XML manner.
  • Step 2 The Web Service-based device starts the HTTP module to receive the request message sent by the service requester, and forwards the message to the IMP module of the service middleware in an XML structure manner;
  • Step 3 The IMP module of the service middleware receives the message constructed in XML, and calls the XML sub-module to parse the specific message content according to the set unified management configuration file, and forwards it to the message function implementation module service provider DCS;
  • Step 4 The service provider DCS receives the detailed message content parameters parsed by the IMP module of the service middleware, performs corresponding function setting according to the parameters, and returns the processing result and response message of the IMP request function message;
  • Step 5 After receiving the response result of the service provider DCS module to the service requester OSP function request message, the IMP module transmits the XML response message to the service middleware according to the content of the response message and the set unified management configuration file.
  • HTTP module
  • Step 6 After the HTTP module of the service middleware receives the response message constructed by the IMP in XML, the SOAP sub-module encapsulates the message and returns the message to the service requester OSP response message in a Web Service manner.
  • the Web Service-based device also referred to as a unified management interface machine
  • the Web Service-based device utilizes the Web service-based IMP architecture combined with HTTP and XML technologies for DCS (Data Center for Short Message Service, SMS Service Data Center)
  • DCS Data Center for Short Message Service, SMS Service Data Center
  • the data processing interface machine is standardized and designed to improve the maintainability and versatility of the DCS interface system.
  • the decoding work is implemented by the XML module, and the communication and decoding modules have a clear division of labor and are closely related and are co-packaged in a stand-alone HTTP module.
  • the unified management interface machine and the Web service component and method of the invention can solve the software security well by the reasonable division of the module function, and the test personnel can quickly locate the key location of the problem when the fault is found, and solve the problem in time, and the developer is safe to the program. Controllability.
  • the present invention provides a simple and practical solution for Web Service function development.
  • HTTP protocol + XML protocol + IMP application you can develop Web Service functions, realize the controllability of developers to program security risks, because HTTP protocol and XML protocol are common communication protocols, learning and easy to understand, and this The invention grasps this feature and practically combines the two protocols to realize the Web Service function.
  • the HTTP module only encapsulates the Simple Object Access Protocol SOAP sub-module, but
  • the IMP module encapsulates an XML sub-module that operates independently to implement the construction and parsing functions of the message, but such corresponding changes and modifications are intended to fall within the scope of the appended claims.
  • the device based on the Web Service, the Web Service component and the method can properly solve the software security and the tester finds it by reasonably dividing the module function.
  • the critical location of the problem can be quickly located to resolve the problem in time.
  • the invention realizes the construction and parsing of the XML message according to the set unified configuration file, and does not need to redevelop the communication and parsing module in the subsequent Web Service services with different functional requirements of the same system, the programmer only needs to modify the XML file format when encountering such problems.
  • Unified configuration files do not require the development of associated modules, greatly improving program efficiency, reducing development costs, and enhancing system stability and scalability.
  • the invention can be realized without changing the architecture of the original network, and has the advantages of flexibility, compatibility and stability.

Landscapes

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

Description

基干 WEB SERVICE的装置、 WEB SERVICE组件及方法 技术领域
本发明涉及计算机通信技术的应用,尤其^ ^于网络服务( Web Service ) 方式的装置、 Web Service组件及方法。 背景技术
随着短消息增值业务的蓬勃发展, 企业竟争也曰趋激烈, 国内主要运营 商都在积极扩大市场占有份额, 成熟的计算机通信技术不断得到运用, Web Service技术在这种背景下产生发展使用, Web Service技术指一个能够使用 XML ( Extensible Markup Language, 可扩展标记语言) 消息并通过网络来访 问的 Interface (接口) , 这个 Interface描述了一组可访问的操作, 这时就向 服务商提出更高的要求,开发出一套基于 Web Service方式的 DCS( Distributed Control System,分散控制系统 )系统迫在眉睫,常用做法^ ^于 SOAP( Simple Object Access Protocol , 简单对象访问协议, 提供一种在 Web服务与其它应 用程序之间进行通信的机制 )开源工具进行 Web Service应用程序的开发。
优点: 釆用 SOAP开源工具进行 Web service开发时, 应用程序的开发比 较轻松, 所有关于 SOAP协议的编解码工作都由 SOAP完成, 应用程序只需 要关注相关的业务处理即可。
缺点: 故障的定位和解决比较困难, 如果问题出现在应用程序中, 解决 起来相对容易, 但当问题出现在 SOAP的开源代码中时, 定位故障就显得相 对困难。 如果需要解决此问题, 需要深入研究 SOAP的代码, 工作量较大。 且不同的系统需求, 需要开发不同的应用接口, 增加开发周期, 安全性, 稳 定性下降。
因此如何提供一种方法, 用于提高 DCS系统的扩展性, 通用性并为外部 系统提供灵活统一管理的访问接口是目前急待解决的问题。 发明内容 本发明要解决的技术问题是提供一种基于 Web Service 的装置、 Web Service组件及方法, 以统一管理接口, 实现故障快速定位。
为解决上述技术问题,本发明提供一种基于 Web Service的装置,也可称 为统一管理接口机,其包括相互连接且分别独立运行的超文本传输协议 HTTP 模块及统一管理接口 IMP ( Integrate manage port )模块, 其中,
所述 HTTP模块设置为基于 HTTP协议收发 Web Service设备与 Web Service对端设备之间的可扩展标记语言 XML消息;
所述 IMP模块设置为实现对所述 Web Service设备的 XML消息的统一管 理, 构建发送给所述 Web Service对端设备的 XML消息以及解析所述 Web Service对端设备发送的 XML消息;
其中所述基于 Web Service的装置设置于 Web Service设备侧, 从而实现 统一管理接口。
进一步地, 所述 IMP模块设置有统一管理配置文件, 并根据所述统一管 理配置文件构建或解析可扩展标记语言 XML消息,
所述统一管理配置文件以 XML文件格式定义, 是解析描述 Web服务信 息的 XML语言文件即 WSDL文件后获得的。
进一步地, 所述 HTTP模块包括简单对象访问协议 SOAP子模块及可扩 展标记语言 XML子模块, 其中, 所述 SOAP子模块用于基于 SOAP协议封 装消息及基于 HTTP协议实现数据通信;
所述 IMP模块设置为调用所述 XML子模块以实现消息的解析功能。 进一步地, 所述 HTTP模块包括简单对象访问协议 SOAP子模块, 其中, 所述 SOAP子模块设置为基于 SOAP协议封装消息及基于 HTTP协议实现数 据通信;
所述 IMP模块包括 XML子模块,其中所述 XML子模块独立运行,且设 置为实现消息的构造及解析功能。
为解决上述技术问题,本发明还提供一种基于 Web Service的装置,也可 以称为统一管理接口机, 所述装置包括相互连接且分别独立运行的超文本传 输协议 HTTP模块及统一管理接口 IMP模块, 其中, 所述 HTTP模块设置为接收对端设备发送的消息并转发给所述 IMP模 块, 还设置为接收所述 IMP模块处理后的消息, 并转发给所述对端设备; 所述 IMP模块设置有统一管理配置文件,所述 IMP模块设置为接收本端 设备发送的消息, 并根据所述统一管理配置文件构建可扩展标记语言 XML 消息以及转发给所述 HTTP模块; 还设置为接收所述 HTTP模块转发的消息, 并根据所述统一管理配置文件解析所述 HTTP模块发送的消息;
所述统一管理配置文件是根据描述 Web服务信息的 XML语言文件即 WSDL文件定义的 XML格式文件;
从而实现统一管理接口。
进一步地, 所述 HTTP模块包括简单对象访问协议 SOAP子模块及可扩 展标记语言 XML子模块, 其中, 所述 SOAP子模块用于基于 SOAP协议封 装消息及基于 HTTP协议实现数据通信;
所述 IMP模块设置为调用所述 XML子模块以实现消息的解析功能。 为解决上述技术问题, 本发明还提供一种 Web Service组件, 所述 Web Service组件包括 Web Service设备及基于 Web Service的装置(也可称为统一 管理接口机) , 其中, 所述基于 Web Service的装置(也可称为统一管理接口机 )包括相互连接 且分别独立运行超文本传输协议 HTTP模块及统一管理接口 IMP模块, 所述 Web Service设备与所述 IMP模块相连接, 其中,
所述 HTTP模块设置为接收 Web Service对端设备发送的消息并转发给所 述 IMP模块,还设置为接收所述 IMP模块处理后的消息,并转发给所述 Web Service对端设备;
所述 IMP模块设置有统一管理配置文件,所述 IMP模块设置为接收所述 Web Service设备发送的消息, 并根据所述统一管理配置文件构建可扩展标记 语言 XML消息以及转发给所述 HTTP模块;还设置为接收所述 HTTP模块转 发的消息, 并根据所述统一管理配置文件解析所述 HTTP模块发送的消息; 所述统一管理配置文件是根据描述 Web服务信息的 XML语言文件即 WSDL文件定义的 XML格式文件。 进一步地, 所述 HTTP模块包括简单对象访问协议 SOAP子模块及可扩 展标记语言 XML子模块, 其中, 所述 SOAP子模块用于基于 SOAP协议封 装消息及基于 HTTP协议实现数据通信;
所述 IMP模块设置为调用所述 XML子模块以完成消息的解析功能。 进一步地, 所述 Web Service设备是服务提供者或服务请求者。
为解决上述技术问题,本发明还提供一种实现 Web Service的方法, 所述 方法包括:
统一管理接口 IMP模块根据所配置的根据 WSDL文件获取的统一管理配 置文件来构建 XML消息, 发送给超文本传输协议 HTTP模块;
所述 HTTP模块将接收到的所述 IMP模块构建的所述 XML消息进行简 单对象访问协议 SOAP封装后基于 HTTP协议发送给对端设备;
所述 HTTP模块基于 HTTP协议接收对端设备发送的 XML消息并转发给 所述 IMP模块; 以及,
所述 IMP模块根据统一管理配置文件解析所述 HTTP模块转发的所述对 端设备发送的 XML消息。
相较于现有技术,本发明的基于 Web Service的装置(也可称为统一管理 接口机) 、 Web Service组件及方法, 通过合理划分模块功能, 可以很好地解 决软件安全且测试人员在发现故障时可以迅速定位问题的关键所在地及时解 决故障。本发明根据设置的统一配置文件实现 XML消息的构建和解析,在后 续相同系统不同功能需求的 Web Service服务当中无需再次开发通讯与解析 模块,程序员遇到此类问题只需修改 XML文件格式的统一配置文件无需开发 相关联模块, 极大提高程序使用效率, 降低开发成本, 增强系统稳定性, 扩 以及稳定性极强。 附图概述
图 1基于 Web Service 方式的接口消息流程图。
图 2是本发明的基于 Web Service的装置 (也可称为统一管理接口机)的 模块结构示意图。 图 3是本发明的实现 Web Service的方法的流程图。
本发明的较佳实施方式
如图 1所示, 使用本发明的基于 Web Service的装置的 Web Service系统 包括服务请求者、 服务提供者及服务中间件, 可实现下发、 查找、 绑定等操 作, 其中,
服务请求者: 用于发现 Web服务, 然后调用这些服务以创建应用程序, 其次应用程序通过服务描述语言进行描述, 其描述信息通过中间件发送。 具 体应用时, 可由图 3中的 OSP ( Open service platform, 业务开放平台) 实现。
服务提供者: 提供服务端口及维护注册表使服务始终保持可用状态。 具 体应用时, 可由 DCS ( Data Center for Short Message Service, 短信业务数据 中心) 实现。
服务中间件,也即本发明的基于 Web Service的装置(也可称为统一管理 接口机) : 是服务提供者与服务请求者的中介, 请求消息 /响应消息的接收 / 转发中继站。 服务中间件可以在服务提供者侧及 /或服务请求者侧实现。 为对端, 服务中间件实现侧的设备称为本端侧设备, 例如: 以服务提供者侧 的服务中间件为例, 服务提供者为本端侧设备, 服务请求者为对端侧设备。
如图 2所示,本发明所说的基于 Web Service的装置(也可以称为统一管 理接口机) 包括相互连接且分别独立运行的 HTTP模块(即超文本传输协议 模块)及 IMP模块, 详细信息如下:
HTTP模块用于基于 HTTP协议收发本端设备与对端设备之间的消息,封 装有相连接的简单对象访问协议子模块(简称 SOAP子模块)及可扩展标记 语言子模块 (简称 XML子模块) , 其中,
SOAP子模块用于处理网络通讯之间数据通信的数据包的高速交换及基 于 SOAP协议对交互消息进行 SOAP封装, 还用于对数据包加密, 以及利用 专有的加密协议将加密数据包还原成可解析的 XML 文件格式消息体, 使 HTTP模块可以正常接收发送 Web Service方式的 XML消息体, Web Service 方式的 XML消息体发送接收则通过 HTTP模块提供的远程访问接口得以实 现;
SOAP子模块的具体功能体现在:用于接收对端发送的消息并转发给 IMP 模块; 还用于将 IMP模块处理后的消息进行 SOAP封装后发送给对端;
XML子模块用于解析 SOAP模块接收的 XML消息体;
统一管理接口 ( Integrate manage port, IMP )模块, 设置统一管理配置文 件, 是一种消息统一集中管理的设计架构, 主要实现应用程序与网络通讯模 块(指 HTTP模块) 的分离, 进行单独开发, 解决系统稳定性与扩展性; IMP模块的具体功能体现在: 用于接收 HTTP模块发送的消息, 以及根 据统一管理配置文件调用 XML子模块解析该消息的具体内容并发送给本端 设备; 还用于接收本端设备发送的消息, 以及根据消息内容及统一管理配置 文件构造 XML消息发送给所述 HTTP模块;
统一管理配置文件, 是将 WSDL文件解析后以 XML文件格式定义的文 件, XML的灵活性、 简单性及易用性是处理系统兼容性问题的首选目标。
下发: 服务提供者通过中间件确定消息是否下发。
查找: 查找操作由服务请求者和中间件共同完成。 服务请求者描述他们 正在寻找的服务类型, 而服务中间件发布与请求最匹配的结果。
绑定: 绑定操作发生在服务请求者和服务提供者之间。 双方经过适当的 商讨之后, 请求者就可以访问和调用提供者所提供的服务。
WSDL ( Web Services Description Language )是 4 述 Web Service月良务信 息的 XML语言,且提供了一种向其它程序描述 Web Service服务的统一方法; 其主要描述信息内容, 定义了描述 Web服务接口规范的标准格式。
本发明还提供一种所述 Web Service组件, Web Service组件包括 Web Service设备及基于 Web Service的装置 (也可以称为统一管理接口机) , 所 述装置包括相互连接且分别独立运行超文本传输协议 HTTP模块及统一管理 接口 IMP模块, 所述 Web Service设备与所述 IMP模块相连接, 所说的统一 管理接口机的模块结构如上所述。 所述 Web Service设备是服务提供者或服务请求者,相应地, Web Service 对端设备是服务请求者或服务提供者。
以下以服务提供者侧实现本发明统一管理接口机为例进行说明: 以下以 OSP作为服务请求者、 DCS作为服务提供者对 Web Service方式 的 Web Service过程进行说明, 如图 3所示, 该 Web Service 方式完整消息流 程包括: DCS模块、 IMP模块、 HTTP模块、 OSP ( Open service platform业 务开放平台) , Web Service方式的过程包括以下步骤:
步骤 1 : OSP作为服务请求者以 Web Service方式向服务提供者 DCS系 统对外提供的服务端口即本发明基于 Web Service的装置(也可称为统一管理 接口机)发送业务请求消息且以 XML方式构建消息内容;
步骤 2: 基于 Web Service的装置启动 HTTP模块接收服务请求者发送的 请求消息, 并以 XML结构方式将消息转发到服务中间件的 IMP模块;
步骤 3: 服务中间件的 IMP模块接收到以 XML构造的消息, 根据设置 的统一管理配置文件调用 XML子模块解析具体消息内容,转发到消息功能具 体实施模块服务提供者 DCS;
步骤 4:服务提供者 DCS接收到服务中间件的 IMP模块解析后详细的消 息内容参数, 根据参数进行相应的功能设置, 并返回 IMP请求功能消息的处 理结果及响应消息;
步骤 5:服务中间件之一 IMP模块接收到服务提供者 DCS模块对服务请 求者 OSP功能请求消息的响应结果后, 根据响应消息内容及设置的统一管理 配置文件构造 XML响应消息发送到服务中间件的 HTTP模块;
步骤 6:服务中间件的 HTTP模块接收到 IMP以 XML方式构造的响应消 息后, SOAP子模块进行封装, 将消息以 Web Service 方式返回服务请求者 OSP响应消息。
当服务请求者 OSP收到响应消息并做响应处理后, 至此一个完整 Web
Service 方式的请求 /响应功能得以完整结束。
本发明基于 Web Service的装置(也可称为统一管理接口机), 利用基于 Web Service方式的 IMP架构结合 HTTP与 XML技术对 DCS( Data Center for Short Message Service, 短信业务数据中心)数据处理接口机进行规范统一规 划设计, 从而提高 DCS接口机系统的可维护性和通用性。
因为接收 /发送消息由 SOAP子模块封装 SOAP消息并根据 HTTP协议实 现,解码工作由 XML模块实现,通讯与解码模块二者既有明确分工又同时保 持密切联系且共同封装在一个独立运行的 HTTP模块中。 本发明统一管理接 口机、 Web Service组件及方法, 通过合理划分模块功能, 可以很好地解决软 件安全且测试人员在发现故障时可以迅速定位问题的关键所在地及时解决故 障,及开发人员对程序安全的可控性。 由于运营商基于 Web Service方式的基 础上实现不同功能,在后续相同系统不同功能需求的 Web Service服务当中无 需再次开发通讯与解析模块,程序员遇到此类问题只需修改 XML文件格式的 统一配置文件无需开发相关联模块, 将极大提高程序员的编程时间及编程质 量, 同时极大提高程序使用效率, 降低开发成本, 增强系统稳定性及扩展性。 性极强。
总之, 本发明为 Web Service 功能开发提供了一套简单实用解决方案,
HTTP协议 +XML协议 +IMP应用程序, 就可以进行 Web Service功能开发, 实现开发人员对程序安全隐患的可控性,因为 HTTP协议及 XML协议都是通 信常用协议, 学习运用简单易懂, 而本发明就抓住此特点实用这两种协议有 机组合利用开发实现 Web Service功能。
以上所述仅为本发明的优选实施方式和系统框架, 并不构成对本发明保 护范围的限定。 在不违背本发明精神及其实质的情况下, 本领域技术人员当 可根据本发明做出各种相应的改变和变形, 例如, 所述 HTTP模块仅封装简 单对象访问协议 SOAP子模块, 而由 IMP模块封装 XML子模块, 所述 XML 子模块独立运行, 用于实现消息的构造及解析功能, 但这些相应的改变和变 形都应属于本发明所附的权利要求的保护范围。
工业实用性
相较于现有技术, 本发明基于 Web Service的装置、 Web Service组件及 方法, 通过合理划分模块功能, 可以很好地解决软件安全且测试人员在发现 故障时可以迅速定位问题的关键所在地及时解决故障。 本发明根据设置的统 一配置文件实现 XML 消息的构建和解析, 在后续相同系统不同功能需求的 Web Service服务当中无需再次开发通讯与解析模块,程序员遇到此类问题只 需修改 XML文件格式的统一配置文件无需开发相关联模块,极大提高程序使 用效率, 降低开发成本, 增强系统稳定性, 扩展性。 本发明在不改变原有网 络的架构的前提下得以实现, 灵活性, 兼容性, 稳定性极强。

Claims

权 利 要 求 书
1、 一种基于网络服务 Web Service的装置, 其包括相互连接且分别独立 运行的超文本传输协议 HTTP模块及统一管理接口 IMP模块, 其中,
所述 HTTP模块设置为基于 HTTP协议收发 Web Service设备与 Web Service对端设备之间的可扩展标记语言 XML消息;
所述 IMP模块设置为实现对所述 Web Service设备的 XML消息的统一管 理, 构建发送给所述 Web Service对端设备的 XML消息以及解析所述 Web Service对端设备发送的 XML消息;
其中所述基于 Web Service的装置设置于 Web Service设备侧, 从而实现 统一管理接口。
2、 如权利要求 1所述的装置, 其中,
所述 IMP模块设置有统一管理配置文件,
所述 XML消息是根据所述统一管理配置文件构建或解析的,
所述统一管理配置文件以 XML文件格式定义, 是解析描述 Web Service 的服务信息的 XML语言文件即 WSDL文件后获得的。
3、 如权利要求 2所述的装置, 其中,
所述 HTTP模块包括简单对象访问协议 SOAP子模块及可扩展标记语言 XML子模块, 其中, 所述 SOAP子模块设置为基于 SOAP协议封装消息及基 于 HTTP协议实现数据通信;
所述 IMP模块设置为调用所述 XML子模块以实现消息的解析功能。
4、 如权利要求 2所述的装置, 其中,
所述 HTTP模块包括简单对象访问协议 SOAP子模块,其中,所述 SOAP 子模块设置为基于 SOAP协议封装消息及基于 HTTP协议实现数据通信; 所述 IMP模块包括 XML子模块,所述 XML子模块独立运行,且设置为 实现消息的构造及解析功能。
5、 一种基于 Web Service的装置, 其包括相互连接且分别独立运行的超 文本传输协议 HTTP模块及统一管理接口 IMP模块, 其中, 所述 HTTP模块设置为接收对端设备发送的消息并转发给所述 IMP模 块, 还设置为接收所述 IMP模块处理后的消息, 并转发给所述对端设备; 所述 IMP模块设置有统一管理配置文件,所述 IMP模块设置为接收本端 设备发送的消息, 并根据所述统一管理配置文件构建可扩展标记语言 XML 消息以及转发给所述 HTTP模块; 还设置为接收所述 HTTP模块转发的消息, 并根据所述统一管理配置文件解析所述 HTTP模块发送的消息;
所述统一管理配置文件是根据描述 Web服务信息的 XML语言文件即 WSDL文件定义的 XML格式文件;
从而实现统一管理接口。
6、 如权利要求 5所述的装置, 其中,
所述 HTTP模块包括简单对象访问协议 SOAP子模块及可扩展标记语言 XML子模块, 其中, 所述 SOAP子模块设置为基于 SOAP协议封装消息及基 于 HTTP协议实现数据通信;
所述 IMP模块设置为调用所述 XML子模块以实现消息的解析功能。
7、 一种 Web Service组件, 所述 Web Service组件包括 Web Service设备 及基于 Web Service的装置, 其中,
所述基于 Web Service的装置包括相互连接且分别独立运行超文本传输 协议 HTTP模块及统一管理接口 IMP模块,所述 Web Service设备与所述 IMP 模块相连接, 其中,
所述 HTTP模块设置为接收 Web Service对端设备发送的消息并转发给所 述 IMP模块,还设置为接收所述 IMP模块处理后的消息,并转发给所述 Web Service对端设备;
所述 IMP模块设置有统一管理配置文件,所述 IMP模块设置为接收所述 Web Service设备发送的消息, 并根据所述统一管理配置文件构建可扩展标记 语言 XML消息以及转发给所述 HTTP模块;还设置为接收所述 HTTP模块转 发的消息, 并根据所述统一管理配置文件解析所述 HTTP模块发送的消息; 所述统一管理配置文件是根据描述 Web服务信息的 XML语言文件即 WSDL文件定义的 XML格式文件。
8、 如权利要求 7所述的 Web Service组件, 其中,
所述 HTTP模块包括简单对象访问协议 SOAP子模块及可扩展标记语言 XML子模块, 其中, 所述 SOAP子模块设置为基于 SOAP协议封装消息及基 于 HTTP协议实现数据通信;
所述 IMP模块设置为调用所述 XML子模块以完成消息的解析功能。
9、 如权利要求 7或 8所述的 Web Service组件, 其中, 所述 Web Service 设备是服务提供者或服务请求者。
10、 一种实现 Web Service的方法, 所述方法包括:
统一管理接口 IMP模块根据所配置的根据 WSDL文件获取的统一管理配 置文件来构建 XML消息, 发送给超文本传输协议 HTTP模块;
所述 HTTP模块将接收到的所述 IMP模块构建的所述 XML消息进行简 单对象访问协议 SOAP封装后基于 HTTP协议发送给对端设备; 所述 HTTP 模块基于 HTTP协议接收对端设备发送的 XML消息并转发给所述 IMP模块; 以及,
所述 IMP模块根据统一管理配置文件解析所述 HTTP模块转发的所述对 端设备发送的 XML消息。
PCT/CN2009/074218 2009-05-07 2009-09-25 基于web service的装置、web service组件及方法 WO2010127531A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP09844283.3A EP2429150A4 (en) 2009-05-07 2009-09-25 APPARATUS, WEB SERVICE COMPONENT AND METHOD BASED ON WEB SERVICE
BRPI0924618A BRPI0924618A2 (pt) 2009-05-07 2009-09-25 aparelho, componente de servico da web e método com base em serviço da web

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910138373.4 2009-05-07
CN 200910138373 CN101557426A (zh) 2009-05-07 2009-05-07 基于Web Service的统一管理接口机、Web Service组件及方法

Publications (1)

Publication Number Publication Date
WO2010127531A1 true WO2010127531A1 (zh) 2010-11-11

Family

ID=41175368

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/074218 WO2010127531A1 (zh) 2009-05-07 2009-09-25 基于web service的装置、web service组件及方法

Country Status (4)

Country Link
EP (1) EP2429150A4 (zh)
CN (1) CN101557426A (zh)
BR (1) BRPI0924618A2 (zh)
WO (1) WO2010127531A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775775A (zh) * 2017-01-24 2017-05-31 深圳市启仑智能科技有限公司 一种基于OpenResty的高性能MVC框架

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467412B (zh) * 2010-11-16 2015-04-22 金蝶软件(中国)有限公司 一种处理操作请求的方法、装置及业务系统
CN102546322A (zh) * 2010-12-31 2012-07-04 青岛海尔软件有限公司 数字家庭的Web服务系统
CN102419704A (zh) * 2011-09-26 2012-04-18 深圳中兴网信科技有限公司 一种松耦合分布式系统的开发方法及系统
CN102436239A (zh) * 2011-11-07 2012-05-02 深圳市领步科技有限公司 基于Web service的电压监测系统及实现方法
CN103812916A (zh) * 2012-11-15 2014-05-21 航天信息股份有限公司 不同终端之间传输数据的方法和装置
CN103561113B (zh) * 2013-11-18 2019-01-29 金蝶软件(中国)有限公司 Web Service接口的生成方法及装置
CN103997539B (zh) * 2014-06-06 2017-04-05 北京航空航天大学 基于web服务的雷达运行状态采集分发系统及其方法
CN105791346B (zh) * 2014-12-22 2020-07-14 中兴通讯股份有限公司 实现soap接口的跨平台解决方法及服务、网络设备
CN104506896B (zh) * 2015-01-16 2018-10-16 三星电子(中国)研发中心 智能电视的操作处理方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1302134A (zh) * 1999-12-30 2001-07-04 国际商业机器公司 可接插式服务发送平台
EP1450512A1 (en) * 2003-02-21 2004-08-25 Alcatel Method and apparatus for generating a web-based graphical user interface without additional development
CN101246564A (zh) * 2007-12-21 2008-08-20 浪潮电子信息产业股份有限公司 一种基于Web Service和以XML为资产定义的资产管理系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8719562B2 (en) * 2002-10-25 2014-05-06 William M. Randle Secure service network and user gateway
US7487513B1 (en) * 2003-12-30 2009-02-03 Sap Ag Web service archive

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1302134A (zh) * 1999-12-30 2001-07-04 国际商业机器公司 可接插式服务发送平台
EP1450512A1 (en) * 2003-02-21 2004-08-25 Alcatel Method and apparatus for generating a web-based graphical user interface without additional development
CN101246564A (zh) * 2007-12-21 2008-08-20 浪潮电子信息产业股份有限公司 一种基于Web Service和以XML为资产定义的资产管理系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775775A (zh) * 2017-01-24 2017-05-31 深圳市启仑智能科技有限公司 一种基于OpenResty的高性能MVC框架

Also Published As

Publication number Publication date
EP2429150A4 (en) 2013-12-11
EP2429150A1 (en) 2012-03-14
BRPI0924618A2 (pt) 2018-07-24
CN101557426A (zh) 2009-10-14

Similar Documents

Publication Publication Date Title
WO2010127531A1 (zh) 基于web service的装置、web service组件及方法
AU2010244906B2 (en) Method and System for Provisioning Terminal Parameters and Terminal Management Apparatus
US9083648B2 (en) Method and system for performing remote network management on a voice home gateway terminal
EP1355231A2 (en) Processing data files using plug-ins
WO2017162089A1 (zh) 网络服务的业务配置方法和装置
WO2010130165A1 (zh) 一种基于互联网的开放式电信业务生成系统及方法
CN113556359B (zh) 一种通讯协议转换方法、设备、系统及网关设备
WO2012122767A1 (zh) 一种云计算的实现方法、系统及终端
CN109840155A (zh) 一种实现远程过程调用的方法及装置
CN113067737B (zh) 一种时间敏感网络配置管理系统及方法
WO2013170818A2 (zh) 错误码转换方法、系统、PPPoE服务器及移动终端
CN101997721B (zh) 一种电信网络管理系统、方法及相应的装置
CN113747375A (zh) 一种5g消息中的第三方应用用户敏感信息一键获取系统及方法
WO2013056571A1 (zh) 信令跟踪的处理方法及装置
WO2024103943A1 (zh) 一种业务处理方法、装置、存储介质及设备
WO2008052389A1 (fr) Procédé et système de réalisation d'interfaces universelles dans le système de gestion de réseau
CN117176633A (zh) 一种总线跨设备通信方法、装置、设备及存储介质
US11929933B2 (en) Ephemeral data stream routing service
WO2012174948A1 (zh) 一种物联网能力的实现方法及系统
CN113794715B (zh) 一种虚拟点对点网络数据发送方法及其系统
CN113055253B (zh) 一种家庭网关快速开通的方法、装置、设备以及存储介质
CN103475506A (zh) 多设备管理控制方法和系统
CN101631303A (zh) 一种监听处理方法及其装置和系统
CN112165529A (zh) 一种低成本跨网络数据交换的方法、装置、设备和介质
CN114978591B (zh) 一种基于安全防护的场域网数据交互系统及方法

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: 09844283

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2009844283

Country of ref document: EP

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: PI0924618

Country of ref document: BR

REG Reference to national code

Ref country code: BR

Ref legal event code: B01E

Ref document number: PI0924618

Country of ref document: BR

Free format text: IDENTIFIQUE OS SIGNATARIOS DAS PETICOES NO 020110114025 E 020110137036 E COMPROVE, CASO NECESSARIO, QUE TEM PODERES PARA ATUAR EM NOME DO DEPOSITANTE, UMA VEZ QUE BASEADO NO ARTIGO 216 DA LEI 9.279/1996 DE 14/05/1996 (LPI) "OS ATOS PREVISTOS NESTA LEI SERAO PRATICADOS PELAS PARTES OU POR SEUS PROCURADORES, DEVIDAMENTE QUALIFICADOS.". AINDA, APRESENTE A TRADUCAO SIMPLES DA FOLHA DE ROSTO DA CERTIDAO DE DEPOSITO DA PRIORIDADE CN 200910138373.4; OU DECLARACAO DE QUE OS DADOS DO PEDIDO INTERNACIONAL ESTAO FIELMENTE CONTIDOS NA PRIORIDADE REIVINDICADA, CONTENDO TODOS OS DADOS IDENTIFICADORES DESTA (TITULARES, NUMERO DE REGISTRO, DATA E TITULO), CONFORME O PARAGRAFO UNICO DO ART. 25 DA RESOLUCAO 7

Ref country code: BR

Ref legal event code: B01E

Ref document number: PI0924618

Country of ref document: BR

ENP Entry into the national phase

Ref document number: PI0924618

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20111107