CN101951402A - Tracking and detecting method, device and system of Web Service availability - Google Patents

Tracking and detecting method, device and system of Web Service availability Download PDF

Info

Publication number
CN101951402A
CN101951402A CN 201010284167 CN201010284167A CN101951402A CN 101951402 A CN101951402 A CN 101951402A CN 201010284167 CN201010284167 CN 201010284167 CN 201010284167 A CN201010284167 A CN 201010284167A CN 101951402 A CN101951402 A CN 101951402A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
web service
resource
address
service
connection
Prior art date
Application number
CN 201010284167
Other languages
Chinese (zh)
Other versions
CN101951402B (en )
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

Links

Abstract

The invention discloses a tracking and detecting method of Web Service availability. The method comprises the following steps: the address of a WSDL document published by Web Service is obtained; the resource connection object of the document address is created; the application resource connection object is connected with the WSDL document published by Web Service; if the connection is abnormal, the Web Service is not available; if not, the WSDL document is obtained; the Web Service address specified in the WSDL document is searched; the resource connection object of the service address is created; the application resource connection object is connected with Web Service; if the connection is abnormal, Web Service is not available; and if not, Web Service is available. By using the tracking and detecting method, device and system of Web Service availability of the embodiment of the invention, the real-time tracking and detecting of Web Service availability can be effectively realized.

Description

—种Web Service可用性跟踪检测方法、装置及系统 - Web Service Availability species tracking detecting method, apparatus and system for

技术领域 FIELD

[0001] 本申请涉及网络应用领域,特别是涉及一种基于OSGI的Web Service服务可用性跟踪检测方法、装置及系统。 [0001] The present application relates to network applications, in particular, it relates to an OSGI Web Service based tracking service availability detection method, apparatus and system.

背景技术 Background technique

[0002] Web Service是松耦合、平台无关、语言无关的分布式技术,在分布式系统中,各个分布式组件的同步很重要,当一个Web Service服务不可用时,要及时通知要使用或正在使用该服务的消费者当前服务不可用,消费者必须等待服务可用或处理服务调用失败的异常,而当服务可用时通知服务的消费者当前服务可用,消费者可以调用服务功能。 [0002] Web Service is loosely coupled, platform-independent, language-independent distributed technology, in a distributed system, the various components of the distributed synchronization is very important, when a Web Service service is not available, to promptly notify you want to use or are using the consumer services the current service is not available, consumers must wait for the service is available or abnormal processing service call fails, and when the service is available to inform consumers of the services currently available services, consumers can call the service function.

[0003] 发明人经过研究发现,现有技术中还没有完善的方法对Web Service进行有效的跟踪检测,所以提供一种有效的对Web Service进行可用性跟踪检测的方法是一个亟待解决的问题。 [0003] The inventor has found that the prior art has not improved approach to Web Service for effective tracking and detection, so provide an effective tracking of Web Service usability testing method is a serious problem.

发明内容 SUMMARY

[0004] 为解决上述技术问题,本申请实施例提供一种基于OSGI的Web Service可用性跟踪检测检测方法、装置及系统,在OSGI规范定义的计算环境下,对Web Service进行有效可用性跟踪检测。 [0004] To solve the above problems, the present embodiment provides a Web Service availability of an OSGI-based tracking and detection detecting method, apparatus and system in a computing environment OSGI specification defined Web Service for tracking the availability of effective detection.

[0005] 技术方案如下: [0005] The technical solutions are as follows:

[0006] 一种Web Service可用性跟踪检测方法,包括: [0006] A Web Service availability tracking detecting method, comprising:

[0007] ^tIX Web Service 胃白勺WSDL (Web Services Description Language, ^—ftM 来描述Web服务和说明如何与Web服务通信的XML语言)文档的地址,创建所述文档地址的资源连接对象,应用所述资源连接对象与Web Service发布的WSDL文档进行连接,若连接异常,则Web Service服务不可用,否则,获取所述WSDL文档; [0007] ^ tIX Web Service stomach white spoon WSDL (Web Services Description Language, ^ -ftM to describe Web services and explain how Web services communicate with the XML language) document addresses creating the document address resource connection object, the application the resource connection object to the published Web service WSDL document to connect, if the connection exception, the Web service service is unavailable, otherwise acquire the WSDL document;

[0008] 查找所述WSDL文档中指定的Web Service服务地址,创建所述服务地址的资源连接对象,应用所述资源连接对象与Web Service进行连接,若连接异常,则Web Service服务不可用,否则,Web Service服务可用。 [0008] to find the specified document the WSDL Web Service service address, create a resource connection object to the service address, the application of the resource connection object to connect to the Web Service, if the abnormal connection, the Web Service service is unavailable, or , Web service service is available.

[0009] 上述的方法,优选的,所述应用资源连接对象与Web Service发布的WSDL文档进行连接的过程为: Process [0009] The above-described method, preferably, the application resource connection object WSDL document published Web Service for connection to:

[0010]获取 Web Service 通过HTTP (HyperText Transfer Protocol、超文本传输协议) 协议发布的WSDL文档的地址; [0010] obtain the address of the Web Service WSDL document issued by HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol) protocol;

[0011 ] 创建所述WSDL文档地址的HTTP资源连接对象; [0011] creating the WSDL document address HTTP resource connection object;

[0012] 应用所述HTTP资源连接对象与所述WSDL文档进行连接。 [0012] Application of the HTTP resource connection object is connected to the WSDL document.

[0013] 上述的方法,优选的,所述应用资源连接对象与Web Service发布的WSDL文档进行连接的过程为: Process [0013] The above-described method, preferably, the application resource connection object WSDL document published Web Service for connection to:

[0014] 获取Web Service 通过HTTPS (Hypertext Transfer Protocol over Secure Socket Layer,以安全为目标的HTTP通道)协议发布的WSDL文档的地址;[0015] 创建所述WSDL文档地址的HTTPS资源连接对象; [0014] Gets Web Service via HTTPS (Hypertext Transfer Protocol over Secure Socket Layer, a secure HTTP targeted channel) protocol address issued WSDL document; [0015] HTTPS resources to create a connection object of the WSDL document addresses;

[0016] 应用所述HTTPS资源连接对象与所述WSDL文档进行连接。 [0016] Application of the resource HTTPS connection object to connect to the WSDL document.

[0017] 上述的方法,优选的,所述应用资源连接对象与Web Service进行连接的过程具体为: Process [0017] The above-described method, preferably, the application resource connection object to connect to the Web Service specifically:

[0018] 查找所述WSDL文档中指定的Web Service服务地址; [0018] to find the specified document the WSDL Web Service service address;

[0019] 创建所述服务地址的HTTP资源连接对象; [0019] creating the service address HTTP resource connection object;

[0020] 应用所述HTTP资源连接对象与Web Service进行连接。 [0020] Application of the HTTP resource connection object is connected to the Web Service.

[0021] 上述的方法,优选的,所述应用资源连接对象与Web Service进行连接的过程具体为: Process [0021] The above-described method, preferably, the application resource connection object to connect to the Web Service specifically:

[0022] 查找所述WSDL文档中指定的Web Service服务地址; [0022] to find the specified document the WSDL Web Service service address;

[0023] 创建所述服务地址的HTTPS资源连接对象; [0023] create the connection objects HTTPS service resource address;

[0024] 应用所述HTTPS资源连接对象与Web Service进行连接。 [0024] Application of the resource HTTPS connection object to connect to the Web Service.

[0025] 一种Web Service可用性跟踪检测装置,包括:第一地址获取单元、第一资源连接对象创建单元、第一连接单元、第二地址获取单元、第二资源连接对象创建单元和第二连接单元; [0025] A Web Service availability detection tracking means, comprising: a first address obtaining unit, a first connection object resource creating unit, a first connection unit, a second address obtaining unit, a second connection object resource creating unit and the second connection unit;

[0026] 其中:所述第一地址获取单元用于获取Web Service发布的WSDL (Web Services Description Language,是一种用来描述Web服务和说明如何与Web服务通信的XML语言) 文档的地址; [0026] wherein: said first address obtaining unit configured to obtain a Web Service published WSDL (Web Services Description Language, a description used to describe Web services and Web Services XML language and how to communicate) address of the document;

[0027] 第一资源连接对象创建单元用于根据所述第一地址获取单元获取的文档的地址, 创建所述文档地址的资源连接对象; [0027] The first connection object resource creating unit is configured to obtain the document obtaining unit according to the first address, which is connected to an object to create a resource address of the document;

[0028] 所述第一连接单元用于应用所述第一资源连接创建单元创建的资源连接对象与Web Service发布的WSDL文档进行连接,若连接异常,则Web Service服务不可用,否则,获取所述WSDL文档; [0028] The first connecting unit for applying the first resource connection to create a WSDL document resource unit connection objects created with the Web Service released the connection, if the connection exception, the Web Service service is unavailable, otherwise, get the said WSDL document;

[0029] 所述第二地址获取单元用于查找所述第一连接单元获取的WSDL文档中指定的Web Service服务地址; [0029] The second address obtaining unit for finding a WSDL document acquisition unit connected to the first specified Web Service service address;

[0030] 所述第二资源连接对象创建单元用于根据所述第二地址获取单元查找的服务地址创建所述服务地址的资源连接对象; [0030] The second connection object resource creating unit is configured to obtain service address lookup unit according to the second connection object to create a resource address of the service address;

[0031] 所述第二连接单元用于应用所述第二资源连接对象创建单元创建的资源连接对象与Web Service进行连接,若连接异常,则Web Service服务不可用,否则,Web Service 服务可用。 [0031] The second connection means for applying the second resource connection object created connection object resource creating unit is connected to the Web Service, if the connection failure, the Web Service service is unavailable, or, Web Service service is available.

[0032] 上述的装置,优选的,所述第一资源连接对象创建单元包括:第一HTTP资源对象创建组件和第一HTTPS资源对象创建组件; [0032] The apparatus, preferably, the first connection object resource creating unit comprising: creating a first HTTP resource object assembly and the first assembly HTTPS resource object is created;

[0033] 其中:所述第一HTTP资源对象创建组件用于创建Web Service通过HTTP协议发布的WSDL文档的地址的HTTP资源连接对象; [0033] wherein: the first HTTP resource object creates an HTTP resource connection object component used to create Web Service address released by the HTTP protocol WSDL document;

[0034] 所述第一HTTPS资源对象创建组件用于创建Web Service通过HTTPS协议发布的WSDL文档的地址的HTTPS资源连接对象。 [0034] The first object is created HTTPS HTTPS resource resource connection object component used to create Web Service WSDL document issued by the HTTPS protocol addresses.

[0035] 上述的装置,优选的,所述第二资源连接对象创建单元包括:第二HTTP资源对象创建组件和第二HTTPS资源对象创建组件; [0035] The above-described device, preferably, the second resource connection object creating unit includes: a second HTTP resource object creation HTTPS resources component and a second component object is created;

[0036] 所述第二HTTP资源对象创建组件用于创建Web Service通过HTTP协议发布的服务地址的HTTP资源连接对象; [0036] The second HTTP resource object created HTTP resource connection object components used to create the service address published through the Web Service HTTP protocol;

[0037] 所述第二HTTPS资源对象创建组件用于创建Web Service通过HTTPS协议发布的服务地址的HTTPS资源连接对象。 [0037] The second HTTPS resource object creation component for creating Web Service HTTPS connection object resources released by the HTTPS protocol service address.

[0038] 一种Web Service可用性跟踪检测系统,包括:客户端、应用端一种Web Service 可用性跟踪检测装置。 [0038] A Web Service availability tracking detection system comprising: a client application side one kind of tracking Web Service availability detection means.

[0039] 由以上本申请实施例提供的技术方案可见,本发明提供的基于OSGI的Web Service服务可用性跟踪检测方法、装置及系统,获取Web Service发布的WSDL文档的地址,创建所述文档地址的资源连接对象,应用所述资源连接对象与Web Service发布的WSDL文档进行连接,若连接异常在表明当前WebService不可用,否则,读取WSDL文档并缓存到本地;然后获取WSDL文档中的Web Service服务地址,创建服务地址的资源连接对象, 应用所述资源连接对象与Web Service进行连接,若连接异常,则当前Web Service不可用,否则,Web Service可用。 [0039] Technical solutions provided by the above embodiment of the present application found, the address of the Web Service OSGI-based tracking service availability detection method, apparatus and system for acquiring Web Service published WSDL document of the present invention provides, creating the document address resource connection object, use the resource objects connected with the Web service published WSDL document to connect, if the connection exception in that the current WebService unavailable, otherwise, read the WSDL document and cached locally; then get WSDL document Web service service address, create a service address resource connection object, use the resource objects connected with the Web service connection, if the connection exception, the Web service is currently unavailable. otherwise, Web service is available.

[0040] 由以上论述可知,本申请实施例提供的Web Service服务可用性跟踪检测方法、装置及系统,先后对Web Service发布的WSDL文档和WSDL文档中指定的Web Service进行连接,只有当全部可连接时,才表明当前Web Service服务可用,通知用户可以使用;本方法对Web Service的跟踪检测是一个循环过程,每隔一段时间对Web Service的可用性进行跟踪检测,实时通知用户当前Web Service的使用情况,有效的实现了对Web Service可用性的实时跟踪检测。 [0040] From the above discussion, the present application Web Service service availability tracking detecting method, apparatus, and system provided in embodiments, has on the Web Service published WSDL document and a WSDL document specifies the Web Service connections, only when all the connectable when it indicates the current Web service service is available, to inform the user can use; this method of tracking and detection of Web service is a cyclic process, from time to time the availability of the Web service to track detection, real-time notification user current usage of Web service effectively achieve real-time tracking and detection of Web Service availability.

附图说明 BRIEF DESCRIPTION

[0041] 为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 [0041] In order to more clearly illustrate the technical solutions according to the prior art embodiment of the present application, briefly introduced hereinafter, embodiments are described below in the accompanying drawings or described in the prior art needed to be used in describing the embodiments the drawings are only some embodiments of the present application are described, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0042] 图1为本申请实施例提供的一种Web Service可用性跟踪检测方法的方法流程图; [0042] FIG. 1 shows one kind of application availability Web Service tracking method for detecting a flow chart of a method provided by embodiment;

[0043] 图2为本申请实施例提供的应用资源连接对象与Web Service发布的WSDL文档进行连接的流程图; [0043] FIG 2 is a flowchart of the connection request is a WSDL document application resource objects provided in connection with the Web Service published embodiment;

[0044] 图3为本申请实施例提供的应用资源连接对象与Web Service发布的WSDL文档进行连接又一流程图; [0044] Figure 3 is a flowchart of a further application for connecting a WSDL document application resource objects provided in connection with the Web Service published embodiment;

[0045] 图4为本申请实施例提供的应用资源连接对象与Web Service进行连接的流程图; [0045] FIG 4 is a flowchart of application resources provided by the connection object to connect to the Web Service application of the present embodiment;

[0046] 图5为本申请实施例提供的应用资源连接对象与Web Service进行连接的又一流程图; [0046] FIG. 5 is a flowchart of a further application of application resources provided by the connection object to connect to the Web Service embodiment;

[0047] 图6为本申请实施例提供的一种Web Service可用性跟踪检测装置的结构示意图; [0047] FIG. 6 is a schematic structure of a Web Service availability tracking detection apparatus according to an embodiment of the present application;

[0048] 图7为本申请实施例提供的一种Web Service可用性跟踪检测装置的一详细结构示意图; [0048] Figure 7 is a detailed schematic diagram of the application structure of a Web Service availability tracking detection apparatus according to an embodiment;

[0049] 图8为本申请实施例提供的一种Web Service可用性跟踪检测装置的又一详细结构示意图; [0049] Figure 8 is a further detailed configuration diagram of an application Web Service availability tracking detection apparatus according to an embodiment;

[0050] 图9为本申请实施例提供的一种Web Service可用性跟踪检测系统的结构示意图。 [0050] FIG. 9 is a schematic structure of a Web Service availability tracking detection system according to an embodiment of the present application.

具体实施方式 Detailed ways

[0051] 本申请实施例提供一种Web Service可用性跟踪检测方法、装置及系统,对判断一个Web Service可用的依据为,Web Service发布的WSDL文档可用且WSDL文档中指定的Web Service地址可用,满足以上条件即该Web Service服务可用。 Embodiment [0051] The present application provides a Web Service availability tracking detecting method, apparatus and system, is determined based on a Web Service is available, Web Service WSDL document available and published WSDL document specified Web Service address is available to meet the that is, the above conditions Web service service is available.

[0052] 以上是本申请的核心思想,为了使本技术领域的人员更好地理解本申请方案。 [0052] The upper core idea of ​​the present application, in order to enable those skilled in the art better understand the solutions of the present application. 下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。 In conjunction with the following drawings of the present application example embodiments, the technical solutions in the embodiments of the present application will be clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present application, rather than all embodiments. 基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。 Based on the embodiments of the present application, all other embodiments to those of ordinary skill in the art without creative efforts shall be made available, should belong to the scope of the present application.

[0053] 本申请实施例提供的一种Web Service可用性跟踪检测方法的方法流程图如图1 所示,包括: [0053] This application is one kind of Web Service availability tracking detection method according to an embodiment of the flow chart shown in Figure 1, comprising:

[0054] 步骤SlOl :获取Web Service发布的WSDL文档的地址; [0054] Step SlOl: get the address of the Web Service WSDL document publishing;

[0055] 步骤S102 :创建WSDL文档地址的资源连接对象,应用上述资源连接对象与Web Service发布的WSDL文档进行连接; [0055] Step S102: creating a resource connection object WSDL document addresses the application of these resources connected objects with the Web Service published WSDL document to connect;

[0056] 步骤S103 :判断上述资源连接对象与WSDL文档的连接是否异常;若是,执行步骤S109 ;否则执行步骤S104 ; [0056] Step S103: determining whether the resources connected to the connection destination WSDL document is abnormal; if yes, step S109; otherwise, to step S104;

[0057] 步骤S104 :获取上述Web Service发布的WSDL文档; [0057] Step S104: obtaining the above-mentioned Web Service WSDL document issued;

[0058] 步骤S105 :查找上述WSDL文档中指定的Web Service服务地址; [0058] Step S105: Finding WSDL document specified above Web Service service address;

[0059] 步骤S106 :创建上述服务地址的资源连接对象,应用上述资源连接对象与Web Service进行连接; [0059] Step S106: creating a resource connection object above service address, the application of the above-mentioned resource connection object to connect with Web Service;

[0060] 步骤S107 :判断创建的Web Service服务地址的资源连接对象与Web Service的连接是否异常,若是,执行步骤S109 ;否则,执行步骤S108 ; [0060] Step S107: determining resource connection objects Web Service service address to create a connection with the Web Service is abnormal, and if so, to step S109; otherwise, to step S108;

[0061] 步骤S108 :通知用户Web Service服务当前可用; [0061] Step S108: Web Service notifies the user services currently available;

[0062] 步骤S109 :通知用户Web Service服务当前不可用。 [0062] Step S109: Web Service informs the user that the service is currently unavailable.

[0063] 创建Web Service发布的WSDL文档的地址的资源连接对象包括HTTP和HTTPS两种类型;Web Service可以通过HTTP协议和HTTPS协议两种方式发布WSDL文档。 [0063] Creating Web Service WSDL document published resource connection object address HTTP and HTTPS are two types; Web Service WSDL document can be published via HTTP and HTTPS protocols, in two ways.

[0064] 当Web Service通过HTTP协议发布WSDL文档时,本申请实施例提供的应用资源连接对象与Web Service发布的WSDL文档进行连接的流程图如图2所示,包括: A flowchart of FIG. [0064] When the Web Service WSDL document is published through the HTTP protocol, the WSDL document of the present application an application resource objects provided in connection with the published Web Service for connection embodiment 2, comprising:

[0065] 步骤S201 :获取Web Service通过HTTP协议发布的WSDL文档的地址; [0065] Step S201: obtaining the address of the Web Service WSDL document issued by the HTTP protocol;

[0066] 步骤S202 :创建上述WSDL文档地址的HTTP资源连接对象; [0066] Step S202: create a WSDL document addresses the above-described HTTP resource connection object;

[0067] 步骤S203 :应用上述HTTP资源连接对象与Web Service通过HTTP协议发布的WSDL文档进行连接。 [0067] Step S203: applying the HTTP resource connection object to the publishing Web Service via HTTP protocol WSDL document to connect.

[0068] 需要说明的是,与WSDL文档进行连接后,若连接异常,则说明连接不上WSDL文档, 进而判断当前Web Service服务不可用,如果连接过程未出现异常,则将WSDL文档读出并缓存到本地。 [0068] It should be noted that, after connection to the WSDL document, if the connection exception, then the connection is not on the WSDL document, and then judge the current Web Service service is not available, if the connection process does not appear abnormal, then the WSDL document and read cached locally. [0069] 当Web Service通过HTTPS协议发布WSDL文档时,本申请实施例提供的应用资源连接对象与Web Service发布的WSDL文档进行连接的流程图如图3所示,包括: A flowchart of FIG. [0069] When the Web Service WSDL document is published by the HTTPS protocol, the WSDL document of the present application an application resource objects provided in connection with the Web Service published embodiment 3 for connection, comprising:

[0070] 步骤S301 :获取Web Service通过HTTPS协议发布的WSDL文档的地址; [0070] Step S301: obtaining the address of the Web Service WSDL document issued by the HTTPS protocol;

[0071] 步骤S302 :创建上述WSDL文档地址的HTTPS资源连接对象; [0071] Step S302: the resource create the above HTTPS connection destination address WSDL document;

[0072] 步骤S303 :应用上述HTTPS资源连接对象与Web Service通过HTTPS协议发布的WSDL文档进行连接。 [0072] Step S303: applying the HTTPS connection object resources with the Web Service published by the HTTPS protocol WSDL document to connect.

[0073] 对以上步骤需要说明的是:创建WSDL文档地址的HTTPS资源连接对象,在对该HTTPS资源连接对象进行操作前,首次必须对SSL (Secure Socket Layer安全套接层,是为网络通信提供安全及数据完整性的一种安全协议。SSL在传输层对网络连接进行加密)上下文环境,否则,无法使用HTTPS协议资源连接对象与WSDL文档进行连接,对SSL上下文环境进行初始化后,可使用HTTPS协议资源连接对象与WSDL文档进行连接,如果连接过程出现异常,则说明连接不上WSDL文档,进而判断当前Web Service服务不可用,如果连接过程未出现异常,则将WSDL文档读出并缓存到本地。 [0073] The above steps should be noted that: to create a WSDL document HTTPS connection object resource address, before operating the HTTPS connection resource objects must first SSL (Secure Socket Layer Secure Sockets Layer, providing secure network communications and data integrity of a secure transport layer protocol .SSL after the network connection is encrypted) context, otherwise, not using HTTPS protocol resource connection object to connect with the WSDL document, initialize context of SSL, HTTPS protocol may be used resources connection object with the WSDL document connection, the connection process if an exception occurs, then the connection is not on the WSDL document, and then judge the current Web service service is not available, if the connection process does not appear abnormal, then the WSDL document read out and cached locally.

[0074] 通过以上论述可知,当可以与WSDL文档进行连接时,对连接上的WSDL文档进行读取,并缓存至本地服务器; [0074] The above discussion shows that, when connected to the WSDL document may be, of the WSDL document for reading is connected, and to the local cache server;

[0075]使用 JAXP (Java API for XML Processing)的API 从WSDL 文档中查找{ "address"}元素,该元素的值为Web Service发布的地址,创建该地址的资源连接对象; 上述Web Service地址的发布方式有两种,一种是Web Service通过HTTP协议发布,另一种是Web Service通过HTTPS协议发布; [0075] using JAXP (Java API for XML Processing) from the API to find the WSDL document { "address"} address element, the element is released Web Service to create the resource connection object address; Web Service address above there are two published methods for a Web Service via HTTP protocol released, the other is a Web Service published by HTTPS protocol;

[0076] 当上述元素的值为Web Service通过HTTP发布的地址时,本申请实施例提供的应用资源连接对象与Web Service进行连接的流程图如图4所示,包括: [0076] When the address of the element is released by the Web Service HTTP, application of the present application flowchart of FIG resource provided by the connection object to connect to the Web Service embodiment shown in FIG. 4, comprising:

[0077] 步骤S401 :查找WSDL文档中指定的Web Service通过HTTP协议发布的Web Service服务地址; [0077] Step S401: Find Web Service Web Service service address published by the HTTP protocol specified in WSDL document;

[0078] 步骤S402 :创建上述服务地址的HTTP资源连接对象; [0078] Step S402: create the above service address of the HTTP resource connection object;

[0079] 步骤S403 :应用上述创建的HTTP资源连接对象与Web Service进行连接。 [0079] Step S403: applying the resources to create an HTTP connection object to connect to the Web Service.

[0080] 当上述元素的值为Web Service通过HTTPS发布的地址时,本申请实施例提供的应用资源连接对象与Web Service进行连接的流程图如图5所示,包括: [0080] When the address of the element is released by the HTTPS Web Service, application of the present application resource flowchart of FIG connection object provided in connection with the embodiment shown in FIG. 5 Web Service, comprising:

[0081] 步骤S501 :查找WSDL文档中指定的Web Service通过HTTPS协议发布的Web Service服务地址; [0081] Step S501: Find Web Service Web Service service address published by the HTTPS protocol WSDL document specified;

[0082] 步骤S502 :创建上述服务地址的HTTPS资源连接对象; [0082] Step S502: HTTPS resources to create a connection object above service address;

[0083] 步骤S503 :应用上述HTTPS资源连接对象与Web Service进行连接。 [0083] Step S503: applying the resource HTTPS connection object to connect with Web Service.

[0084] 需要对以上步骤进行说明的是: [0084] The above steps need to be described are:

[0085] 对以上步骤需要说明的是:创建Web Service地址的HTTPS资源连接对象,在对该HTTPS资源连接对象进行操作前,首次必须对SSL上下文环境,否则,无法使用HTTPS协议资源连接对象与WSDL文档进行连接,对SSL上下文环境进行初始化后,可使用HTTPS协议资源连接对象与WSDL文档进行连接。 [0085] The above steps should be noted that: Create a Web Service HTTPS resource connection object address before operating the HTTPS connection object resources, for the first time must be SSL context, otherwise, can not use the HTTPS protocol resource connection object and WSDL document connection SSL context after initializing WSDL document can be connected to the connection object uses the HTTPS protocol resources.

[0086] 对Web Servcie可用性的跟踪检测是一个轮询的过程,如果OSGi环境中的应用对一个Web Service有依赖,则每隔一段时间就会对这个Web Service可用性进行跟踪检测, 当一个Web Service本次检测的结果为不可用,而上次的检测为可用时,要通知服务的使用者Web Service现在不可用了。 [0086] The tracking and detection Web Servcie availability is a polling process, if the application OSGi environment that depend on a Web Service, it will periodically on this track Web Service availability detection, when a Web Service the results of this testing is not available, and the last detected as being available to notify users of the service Web service is now unusable.

[0087] 本申请实例提供的一种Web Service可用性跟踪检测装置的一详细结构示意图如图6所示,包括:第一地址获取单元601、第一资源连接对象创建单元602、第一连接单元603、第二地址获取单元604、第二资源连接对象创建单元605和第二连接单元606 ; [0087] a detailed structure of a Web Service availability tracking detection apparatus of the present application provides a schematic example shown in Figure 6, comprising: a first address obtaining unit 601, a first resource connection object creating unit 602, the first connection unit 603 a second address obtaining unit 604, a second connection object resource creating unit 605 and the second connection unit 606;

[0088] 其中:第一地址获取单元601用于获取Web Service发布的WSDL (Web Services Description Language,是一种用来描述Web服务和说明如何与Web服务通信的XML语言) 文档的地址; [0088] wherein: the first address obtaining unit 601 to obtain the release of Web Service WSDL (Web Services Description Language, is a kind of used to describe Web services and explain how Web services and XML language to communicate) address of the document;

[0089] 第一资源连接对象创建单元602用于根据第一地址获取单元601获取的文档的地址,创建所述文档地址的资源连接对象; [0089] The first connection object resource creating unit 602 is configured to obtain the address of the document according to the first unit 601 acquires the address, the connection object to create a resource address of the document;

[0090] 第一连接单元603用于应用第一资源连接创建单元602创建的资源连接对象与Web Service发布的WSDL文档进行连接,若连接异常,则Web Service服务不可用,否则,获取所述WSDL文档; [0090] The first resource connection object connection unit 603 for applying a first resource creation unit 602 to create a connection with the Web Service published WSDL document to connect, if the connection exception, the Web Service service is unavailable, otherwise, get the WSDL documents;

[0091 ] 第二地址获取单元604用于查找第一连接单元603获取的WSDL文档中指定的Web Service服务地址; [0091] The second address obtaining unit 604 for finding the first connection unit 603 acquires the WSDL document service address specified in the Web Service;

[0092] 第二资源连接对象创建单元605用于根据第二地址获取单元604查找的服务地址创建所述服务地址的资源连接对象; [0092] The second connection object resource creating unit 605 is configured to obtain service address lookup unit 604 according to the second connection object to create a resource address of the service address;

[0093] 第二连接单元606用于应用第二资源连接对象创建单元605创建的资源连接对象与Web Service进行连接,若连接异常,则Web Service服务不可用,否则,Web Service服务可用。 [0093] The target resource connection for applying a second connection unit 606 a second resource creating unit 605 creates connection object is connected with the Web Service, if the connection failure, the Web Service service is unavailable, or, Web Service service is available.

[0094] 申请实施例提供的一种Web Service可用性跟踪检测装置的又一详细结构示意图如图7所示,第一资源连接对象创建单元602包括:第一HTTP资源对象创建组件607和第一HTTPS资源对象创建组件608 ; [0094] Application for detecting one kind of Web Service availability tracking apparatus provided detailed structural diagram of still another embodiment shown in Figure 7, a first resource creating unit 602 is connected objects comprising: creating a first HTTP resource object 607 and the first assembly HTTPS resource object creation component 608;

[0095] 其中:第一HTTP资源对象创建组件607用于创建Web Service通过HTTP协议发布的WSDL文档的地址的HTTP资源连接对象; [0095] wherein: the first HTTP resource object creation component 607 is used to create the resource connection object HTTP address of the Web Service published by the HTTP protocol WSDL document;

[0096] 第一HTTPS资源对象创建组件608用于创建Web Service通过HTTPS协议发布的WSDL文档的地址的HTTPS资源连接对象。 [0096] The first object is created HTTPS resource component 608 for HTTPS resources to create a connection object address Web Service published by the HTTPS protocol WSDL document.

[0097] 本申请实施例提供的一种Web Service可用性跟踪检测装置的又一详细结构示意图如图8所示,第二资源连接对象创建单元605包括:第二HTTP资源对象创建组件609和第二HTTPS资源对象创建组件610 ; A further detailed structure of a Web Service availability detecting means provided in the tracking [0097] The present application is a schematic view of embodiment 8, the second connection object resource creating unit 605 comprises: a second HTTP resource object creation component 609 and the second HTTPS resource object creation component 610;

[0098] 第二HTTP资源对象创建组件609用于创建Web Service通过HTTP协议发布的服务地址的HTTP资源连接对象; [0098] The second HTTP resource object creation component 609 is used to create Web Service HTTP connection object resources released by the HTTP protocol service address;

[0099] 第二HTTPS资源对象创建组件610用于创建Web Service通过HTTPS协议发布的服务地址的HTTPS资源连接对象。 [0099] The second object is created HTTPS resource component 610 is used to create Web Service HTTPS connection object resources released by the HTTPS protocol service address.

[0100] 申请实施例提供的一种Web Service可用性跟踪检测系统的结构示意图如图9所示,包括:客户端701、一种Web Service可用性跟踪检测装置702和应用端703 ; [0100] Web Service application for one kind of tracking the availability of the detection system according to an embodiment of the structural diagram shown in Figure 9, comprising: a client 701 A tracking Web Service availability detecting means 702 and the application end 703;

[0101] 其中:客户端701用于为客户提供可操作平台; [0101] wherein: the client 701 is operable to provide platforms for customers;

[0102] Web Service可用性跟踪检测装置702用于根据用户指令对Web Service的可用性跟踪检测过程进行控制; [0102] Web Service availability tracking detecting means 702 for controlling the availability of Web Service tracking detection process according to a user instruction;

[0103] 应用端703用于对Web Service可用性跟踪检测过程进行具体化实施操作。 [0103] Application of Web Service end 703 for tracking the availability of the specific embodiment of the detection process operation. [0104] 本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。 [0104] In the present specification, various embodiments are described in a progressive manner, similar portions of the same between the various embodiments refer to each other, are different from the embodiment and the other embodiments described each embodiment focus. 以上所述仅是本申请的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。 The above are only specific embodiments of the present disclosure, it should be noted that those of ordinary skill in the art, in the present application without departing from the principles of the premise, can make various improvements and modifications, improvements and modifications are also It shall be deemed scope of the application.

Claims (9)

  1. 一种Web Service可用性跟踪检测方法,其特征在于,包括:获取Web Service发布的WSDL(Web Services Description Language,是一种用来描述Web服务和说明如何与Web服务通信的XML语言)文档的地址,创建所述文档地址的资源连接对象,应用所述资源连接对象与Web Service发布的WSDL文档进行连接,若连接异常,则Web Service服务不可用,否则,获取所述WSDL文档;查找所述WSDL文档中指定的Web Service服务地址,创建所述服务地址的资源连接对象,应用所述资源连接对象与Web Service进行连接,若连接异常,则Web Service服务不可用,否则,Web Service服务可用。 One kind of Web Service Availability tracking detection method, comprising: obtaining a Web Service published WSDL (Web Services Description Language, is a kind of used to describe Web services and explain how Web services and XML language to communicate) address of the document, Creating the document address resource connection object, use the resource objects connected with the Web service published WSDL document to connect, if the connection exception, the Web service service is unavailable, otherwise acquire the WSDL document; find the WSDL document specified in the Web service service address, create a resource connection object to the service address, the application of the resource connection object to connect to the Web service, if the abnormal connection, the Web service service is unavailable, otherwise, Web service service is available.
  2. 2.根据权利要求1所述的方法,其特征在于,所述应用资源连接对象与Web Service发布的WSDL文档进行连接的过程为:获取Web Service 通过HTTP (HyperText Transfer Protocol、超文本传输协议)协议发布的WSDL文档的地址;创建所述WSDL文档地址的HTTP资源连接对象; 应用所述HTTP资源连接对象与所述WSDL文档进行连接。 2. The method according to claim 1, characterized in that the application resource connection object WSDL document published Web Service connections is the process: acquiring Web Service via HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol) protocol published the address of the WSDL document; creating the WSDL document addresses HTTP resource connection object; use the HTTP resource connection object is connected to the WSDL document.
  3. 3.根据权利要求1所述的方法,其特征在于,所述应用资源连接对象与Web Service发布的WSDL文档进行连接的过程为:获取Web Service 通过HTTPS (Hypertext Transfer Protocol over Secure Socket Layer,以安全为目标的HTTP通道)协议发布的WSDL文档的地址; 创建所述WSDL文档地址的HTTPS资源连接对象; 应用所述HTTPS资源连接对象与所述WSDL文档进行连接。 3. The method according to claim 1, characterized in that the application resource connection object WSDL document published Web Service connections is the process: acquiring Web Service via HTTPS (Hypertext Transfer Protocol over Secure Socket Layer, a secure targeted HTTP channel) protocol address issued by the WSDL document; create resource HTTPS connection object to the WSDL document address; use the HTTPS resource connection object is connected to the WSDL document.
  4. 4.根据权利要求2所述的方法,其特征在于,所述应用资源连接对象与Web Service进行连接的过程具体为:查找所述WSDL文档中指定的Web Service服务地址; 创建所述服务地址的HTTP资源连接对象; 应用所述HTTP资源连接对象与Web Service进行连接。 4. The method according to claim 2, characterized in that the application process resource connection object to connect to the Web Service specifically is: Find the WSDL document specified Web Service service address; creating the service address HTTP resource connection object; applying the HTTP resource connection object is connected to the Web Service.
  5. 5.根据权利要求3所述的方法,其特征在于,所述应用资源连接对象与Web Service进行连接的过程具体为:查找所述WSDL文档中指定的Web Service服务地址; 创建所述服务地址的HTTPS资源连接对象; 应用所述HTTPS资源连接对象与Web Service进行连接。 5. The method according to claim 3, characterized in that the application process resource connection object to connect to the Web Service specifically is: Find the WSDL document specified Web Service service address; creating the service address HTTPS connection object resource; resource applying the HTTPS connection object to connect with Web Service.
  6. 6. 一种Web Service可用性跟踪检测装置,其特征在于,包括:第一地址获取单元、第一资源连接对象创建单元、第一连接单元、第二地址获取单元、第二资源连接对象创建单元和第二连接单元;其中:所述第一地址获取单元用于获取Web Service发布的WSDL (WebServices Description Language,是一种用来描述Web服务和说明如何与Web服务通信的XML语言) 文档的地址;第一资源连接对象创建单元用于根据所述第一地址获取单元获取的文档的地址,创建所述文档地址的资源连接对象;所述第一连接单元用于应用所述第一资源连接创建单元创建的资源连接对象与WebService发布的WSDL文档进行连接,若连接异常,则Web Service服务不可用,否则,获取所述WSDL文档;所述第二地址获取单元用于查找所述第一连接单元获取的WSDL文档中指定的Web Service服务地址;所述第二资源连接对象创建 A tracking Web Service availability detecting means, characterized by comprising: a first address obtaining unit, a first connection object resource creating unit, a first connection unit, a second address obtaining unit, a second connection object resource creating unit and a second connection unit; wherein: said first address obtaining unit configured to obtain a Web service published WSDL (WebServices Description language, a description used to describe Web services and Web services XML language and how to communicate) address of the document; the first connection object resource creating unit is configured to obtain the document obtaining unit according to the first address, which is connected to an object to create a resource address of the document; means for connecting the first connection to the application to create a first resource unit resource connection object created with WebService WSDL document published connection, if the connection exception, the Web service service is unavailable, otherwise acquire the WSDL document; the second address obtaining unit is used to find the first connection unit acquires WSDL document specified in the Web service service address; the second resource connection object is created 元用于根据所述第二地址获取单元查找的服务地址创建所述服务地址的资源连接对象;所述第二连接单元用于应用所述第二资源连接对象创建单元创建的资源连接对象与Web Service进行连接,若连接异常,则Web Service服务不可用,否则,Web Service服务可用。 Element for acquiring service address lookup unit according to the second connection object to create a resource address of the service address; the second connection means for applying the second connection object resource creating unit to create a Web resource connection object service to connect, if the connection exception, the Web service service is unavailable, otherwise, Web service service is available.
  7. 7.根据权利要求6所述的装置,其特征在于,所述第一资源连接对象创建单元包括:第一 HTTP资源对象创建组件和第一HTTPS资源对象创建组件;其中:所述第一HTTP资源对象创建组件用于创建Web Service通过HTTP协议发布的WSDL文档的地址的HTTP资源连接对象;所述第一HTTPS资源对象创建组件用于创建Web Service通过HTTPS协议发布的WSDL 文档的地址的HTTPS资源连接对象。 7. The device according to claim 6, wherein said first connection object resource creating unit comprising: creating a first HTTP resource object components and assembly of a first object created HTTPS resource; wherein: the first resource HTTP objects created HTTP resource connection object component used to create Web Service WSDL document issued by the HTTP protocol addresses; the first HTTPS resource object is created address components used to create the Web Service WSDL document issued by the HTTPS protocol HTTPS connection resources object.
  8. 8.根据权利要求7所述的装置,其特征在于,所述第二资源连接对象创建单元包括:第二 HTTP资源对象创建组件和第二HTTPS资源对象创建组件;所述第二HTTP资源对象创建组件用于创建Web Service通过HTTP协议发布的服务地址的HTTP资源连接对象;所述第二HTTPS资源对象创建组件用于创建Web Service通过HTTPS协议发布的服务地址的HTTPS资源连接对象。 8. The apparatus according to claim 7, wherein said second connection object resource creating unit comprises: a second HTTP resource object creation HTTPS resources component and a second component object is created; the second HTTP resource object creation components used to create Web service HTTP connection object resources released by the HTTP protocol service address; the second HTTPS resource object creation component for creating Web service HTTPS connection object resources released by the HTTPS protocol service address.
  9. 9. 一种Web Service可用性跟踪检测系统,其特征在于,包括:客户端应用端及权利要求6〜8任一项所述的一种Web Service可用性跟踪检测装置。 A Web Service availability tracking detection system, characterized by comprising: one kind of one of the Web Service availability tracking detector according to any client application side 6 ~ 8 and claims.
CN 201010284167 2010-09-17 2010-09-17 Tracking and detecting method, device and system of Web Service availability CN101951402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010284167 CN101951402B (en) 2010-09-17 2010-09-17 Tracking and detecting method, device and system of Web Service availability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010284167 CN101951402B (en) 2010-09-17 2010-09-17 Tracking and detecting method, device and system of Web Service availability

Publications (2)

Publication Number Publication Date
CN101951402A true true CN101951402A (en) 2011-01-19
CN101951402B CN101951402B (en) 2013-02-20

Family

ID=43454760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010284167 CN101951402B (en) 2010-09-17 2010-09-17 Tracking and detecting method, device and system of Web Service availability

Country Status (1)

Country Link
CN (1) CN101951402B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462569A (en) * 2014-12-29 2015-03-25 山东中创软件商用中间件股份有限公司 Web application issuing method, application issuing server and web servers

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1620653A (en) * 2001-05-23 2005-05-25 国际商业机器公司 Dynamic arrangement of service in computing network
US20050193057A1 (en) * 2004-02-26 2005-09-01 Owen Russell N. Apparatus and method for aggregating web services
CN1947116A (en) * 2004-02-26 2007-04-11 捷讯研究有限公司 An apparatus and method for processing web service descriptions
CN101729491A (en) * 2008-10-17 2010-06-09 华为技术有限公司 Method, device and system for enhancing application reliability of script-based business

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1620653A (en) * 2001-05-23 2005-05-25 国际商业机器公司 Dynamic arrangement of service in computing network
US20050193057A1 (en) * 2004-02-26 2005-09-01 Owen Russell N. Apparatus and method for aggregating web services
CN1947116A (en) * 2004-02-26 2007-04-11 捷讯研究有限公司 An apparatus and method for processing web service descriptions
CN101729491A (en) * 2008-10-17 2010-06-09 华为技术有限公司 Method, device and system for enhancing application reliability of script-based business

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462569A (en) * 2014-12-29 2015-03-25 山东中创软件商用中间件股份有限公司 Web application issuing method, application issuing server and web servers
CN104462569B (en) * 2014-12-29 2018-02-06 山东中创软件商用中间件股份有限公司 Another web application delivery method, application server and web server publishing

Also Published As

Publication number Publication date Type
CN101951402B (en) 2013-02-20 grant

Similar Documents

Publication Publication Date Title
US20120079066A1 (en) System and method to create bi-directional event subscriptions
US20160308959A1 (en) Latency measurement in resource requests
US8601090B1 (en) Network resource identification
US8930513B1 (en) Latency measurement in resource requests
US8924528B1 (en) Latency measurement in resource requests
US7978631B1 (en) Method and apparatus for encoding and mapping of virtual addresses for clusters
US20110087783A1 (en) Allocating resources of a node in a server farm
EP2591628A1 (en) Power consumption reduction in a user terminal
US20150156223A1 (en) Network proxy layer for policy-based application proxies
US20050114437A1 (en) Providing web services from a service environment with a gateway
CN101794298A (en) Method for realizing page adaptation, page adaptation system and communication system
US20110289206A1 (en) Automatic enterprise service bus deployment at the level of individual services
US20160337426A1 (en) System and Method for Streaming Content from Multiple Servers
CN101924798A (en) Transparent Android component loading method and system based on file types
CN102262552A (en) An application method and system synchronization across devices
US20060047818A1 (en) Method and system to support multiple-protocol processing within worker processes
US20100037225A1 (en) Workload routing based on greenness conditions
US7966394B1 (en) Information model registry and brokering in virtualized environments
CN101873329A (en) Portal compulsory authentication method and access equipment
US20030212753A1 (en) Method and system of data synchronization using HTTP
CN102355500A (en) Business pushing method and device
CN102110124A (en) Method, device and system for subscribing RSS
CN103298147A (en) Method, device and system for realizing wireless management of mobile terminals on computing device side
CN104363291A (en) Network communication middleware implementation method
US20150156133A1 (en) Method for providing a connection of a client to an unmanaged service in a client-server remote access system

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted
C41 Transfer of the right of patent application or the patent right
ASS Succession or assignment of patent right

Free format text: FORMER OWNER: CVIC SOFTWARE ENGINEERING CO., LTD.

Effective date: 20131227