CN103024058A - Method and system for invoking web services - Google Patents

Method and system for invoking web services Download PDF

Info

Publication number
CN103024058A
CN103024058A CN 201210555713 CN201210555713A CN103024058A CN 103024058 A CN103024058 A CN 103024058A CN 201210555713 CN201210555713 CN 201210555713 CN 201210555713 A CN201210555713 A CN 201210555713A CN 103024058 A CN103024058 A CN 103024058A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
invoking
method
system
web
services
Prior art date
Application number
CN 201210555713
Other languages
Chinese (zh)
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 method and a system for invoking web services. The method includes: A, receiving a requirement; B, judging if a master service is available or not, if yes, invoking the master service to process the requirement and feeding back a processing result, and if not, executing step C; and C, invoking an available backup service to process the requirement and feeding back the processing result. The invention further provides a system for invoking the web services. Reliability of the web services is guaranteed by adopting the method and the system.

Description

WEB服务调用方法及系统 WEB method and system service calls

技术领域 FIELD

[0001] 本发明涉及计算机网络领域,特别涉及一种WEB服务调用方法及WEB服务调用系统。 [0001] The present invention relates to computer networks, and more particularly, to a method of WEB services and WEB services invoke system calls.

背景技术 Background technique

[0002] WEB服务由于其跨平台、可互操作性等优点,得到越来越广泛的应用。 [0002] WEB service because of its cross-platform interoperability, etc., are more widely used. 但在实际使用中,由于网络问题导致的WEB服务无法访问或者WEB服务自身出错等原因,都会直接导致调用方调用WEB服务失败。 However, in actual use, due to network problems caused by WEB WEB service can not access or service itself wrong reasons, will lead directly to the caller calls the WEB service fails.

[0003] 为了提高WEB服务的可靠性,通常采用负载均衡技术来减轻服务负载技术。 [0003] In order to improve the reliability of WEB services, typically by a load balancing technique to mitigate technical service load. 负载均衡技术的原理是:客户端访问对外发布的WEB服务URL地址,负载均衡服务端收到客户端请求之后将其分配给内部多个服务中的一个进行处理,负载均衡服务端将内部服务返回的结果通过对外的URL返回给客户端;这种技术特点决定了对外的这个WEB服务URL地址是唯一的,一旦该URL地址不能访问,则这个WEB服务就不能被用户使用了,即便后台有再多的服务,用户都无法使用。 Load balancing technology principle is: Client Access released the WEB Service URL address, server load balancing client requests received after assigning it to an internal plurality of services for processing, load balancing server internal service returns the results returned by external URL to the client; this determines the technical characteristics of the external WEB service URL address is unique, once the URL address can not access, then the user WEB service can not be used, even if there is another background multi-service, users can use. 当然,用户也可以通过访问发布的其他WEB服务的URL地址以利用后台的内部服务,但这样就需要用户手动更改可用的Web服务URL地址,因此,该负载均衡技术虽然能够减少服务故障发生的概率,但并不能完全保证WEB服务的可靠调用,还有待进一步改进。 Of course, users can also publish by accessing the URL addresses of other WEB services to take advantage of internal services background, but that would require Web service URL address of the user to manually change available, therefore, the load balancing technology even though it can reduce the probability of service failure but it is not guaranteed and reliable call WEB services, to be further improved.

发明内容 SUMMARY

[0004] 本发明提供了一种WEB服务调用方法及系统,用以使得的项目或应用得以实现。 [0004] The present invention provides a method and system WEB service call for that item or applications can be achieved.

[0005] 根据本发明的一个方面,提供了一种WEB服务调用方法,该方法能够保证WEB服务的可靠性。 [0005] In accordance with one aspect of the present invention, there is provided a WEB service invocation method, which can ensure the reliability of WEB services.

[0006] 根据本发明的一个方面,提供了一种WEB服务调用系统,该系统能够保证WEB服务的可靠性。 [0006] In accordance with one aspect of the invention, there is provided a WEB service call system, the system can ensure the reliability of WEB services.

[0007] 本发明的目的是通过下述技术方案实现的: [0007] The object of the present invention is achieved by the following technical scheme:

[0008] 本发明提供了一种WEB服务调用方法,该方法包括: [0008] The present invention provides a WEB service calls, the method comprising:

[0009] A、接收请求; [0009] A, receiving a request;

[0010] B、判断主服务是否可用,如果可用,则调用主服务处理所述请求并反馈处理结果,如果不可用,则执行步骤C ; [0010] B, the master determines whether the service is available, if available, is called the primary service processing request and feedback the results, if not available, step C;

[0011] C、调用可用的备份服务处理所述请求并反馈处理结果。 [0011] C, available backup service call request and process the feedback processing result.

[0012] 较佳地,所述步骤B之后还包括:监测到主服务恢复至可用时,切换至可用的主服务。 [0012] Preferably, after the step B further comprises: monitoring the main service is available to restore the switch to the main service available.

[0013] 上述方法中,步骤B所述判断主服务是否可用包括: [0013] In the above method, the step of determining whether the B primary service available comprising:

[0014] 将所述请求中携带的参数发送给所述主服务,判断在预设的第一时间内内是否接收到所述主服务反馈的处理结果,如果是,则确定所述主服务可用,否则确定所述主服务不可用。 [0014] sending the parameters carried in the request to the main service, determining whether the received processing result to the main service feedback within a first predetermined time, and if so, determining that the primary service is available otherwise, determining that the primary service is unavailable. [0015] 上述方法中,所述步骤C包括: [0015] In the above method, the step C comprises:

[0016] Cl、将所述请求中携带的参数发送给一个备份服务,判断在预设的第二时间内是否接收到所述备份服务反馈的处理结果,如果是,则确定所述备份服务可用,执行步骤C2,否则执行步骤Cl ; [0016] Cl, sends the parameters carried in the request to a backup service, it is determined whether a processing result of the feedback backup service within a preset second time, and if so, determining that the backup service available , step C2, otherwise to step Cl;

[0017] C2、输出所述反馈的处理结果。 [0017] C2, the output of the feedback processing result.

[0018] 较佳地,所述步骤A之前还包括: [0018] Preferably, before the step A further comprises:

[0019] 利用一个代理类封装主服务和至少一个备份服务; [0019] The use of a proxy class encapsulates a main service and at least one backup service;

[0020] 调用所述代理类,以触发执行所述步骤A至所述步骤C。 [0020] The proxy class calls, to trigger execution of said step A to the step C.

[0021] 较佳地,所述调用所述代理类之前还包括:将代理类编译为一个动态链接文件; Before [0021] Preferably, said invoking the proxy class further includes: a proxy class compiled into a dynamic link file;

[0022] 所述调用所述代理类为通过引用所述动态链接文件调用所述代理类。 [0022] The invoking the proxy class to invoke the proxy class file by referencing the dynamic link.

[0023] 较佳地,该方法还包括:从配置文件中获取主服务及备份服务, [0023] Preferably, the method further comprising: obtaining service from the main and backup service profile,

[0024] 或者从配置文件中获取主服务及备份服务,并利用调用的备份服务或恢复至可用的主服务更新所述配置文件。 [0024] or a main service and obtain the service from the backup file, backup service using call or return to the main service available update the configuration file.

[0025] 上述方法中,所述主服务为提供WEB服务的首选URL ; [0025] The above-described method, the URL for the primary service prefers providing WEB service;

[0026] 所述备份服务为提供WEB服务的备用URL。 The [0026] to provide backup service to the backup WEB service URL.

[0027] 本发明提供了一种WEB服务调用系统,该系统包括:服务调用模块、主服务模块及至少一个备份服务模块; [0027] The present invention provides a WEB service call system, the system comprising: a service call module, a service module and at least one primary backup service module;

[0028] 所述服务调用模块接收来自客户端的请求,监测所述主服务模块,确定所述主服务模块可用,则调用所述主服务模块处理所述请求,确定所述主服务模块不可用,则调用可用的备份服务模块处理所述请求; [0028] The service module receives a call request from a client, monitoring the main service module, the service module determines that the master is available, the master service module is invoked to process the request, determining that the primary service module is not available, the call processing module available backup service the request;

[0029] 所述主服务模块反馈所述请求的处理结果,或所述可用的备份服务模块反馈所述请求的处理结果。 [0029] The request processing result of the feedback of the main service module, or the available backup service module feedback the results of the request.

[0030]较佳地,所述服务调用模块还在监测到不可用的主服务模块恢复至可用后,由可用的备份服务模块切换至可用的主服务模块。 [0030] Preferably, the service call to the monitoring module is also unavailable to a usable main service module, the switching module available backup service available to the primary service module.

[0031] 上述系统中,所述服务调用模块包括监测单元及第一计时单元; [0031] The above system, the service call module comprises a first monitoring unit and a timing unit;

[0032] 所述监测单元将所述请求中携带的参数发送给所述主服务模块,启动第一计时单元,判断在接收到第一计时单元的触发之前是否接收到主服务模块反馈的处理结果,如果是,则确定所述主服务模块可用,触发第一计时单元停止计时,否则确定所述主服务模块不可用,将所述请求中携带的参数发送给备份服务模块,直至从一个备份服务模块获取所述请求的处理结果; [0032] The monitoring unit sends the parameters carried in the request to the main service module, starts a first timer means it determines whether a processing result of the main feedback service module before receiving the first timing means to trigger if yes, determining that the primary service module is available, the trigger timing of the first timing unit is stopped, otherwise, determining that the primary service module is not available to send the request to the backup service parameters carried in the module, until a backup service from module obtains the processing result of the request;

[0033] 所述第一计时单元启动后根据预设的第一时间触发所述监测单元。 [0033] After starting the first timing unit triggers the monitoring unit according to a preset first time.

[0034] 上述系统中,所述服务调用模块包括监测单元、第一计时单元及第二计时单元; [0034] The above system, the service call module comprises a monitoring unit, a first timing unit and a second timing unit;

[0035] 所述监测单元将所述请求中携带的参数发送给所述主服务模块,启动第一计时单元,判断在接收到第一计时单元的触发之前是否接收到主服务模块反馈的处理结果,如果是,则确定所述主服务模块可用,触发第一计时单元停止计时,否则确定所述主服务模块不可用,启动所述第二计时单元; [0035] The monitoring unit sends the parameters carried in the request to the main service module, starts a first timer means it determines whether a processing result of the main feedback service module before receiving the first timing means to trigger if yes, determining that the primary service module is available, the trigger timing of the first timing unit is stopped, otherwise, determining that the primary service module is not available, starting the second timer unit;

[0036] 所述监测单元将所述请求中携带的参数发送给备份服务模块,直至从一个备份服务模块获取所述请求的处理结果,根据第二计时单元的触发,确定不可用的主服务模块恢复至可用,触发所述第二计时单元停止计时;[0037] 所述第一计时单元启动后根据预设的第一时间触发所述监测单元; [0036] The monitoring unit sends the request to the backup service parameters carried in the module, until the result of the process of acquiring a backup request from the service module, according to a second trigger timing means, determines that the main service module is unavailable to a usable trigger stop timing and the second timing unit; [0037] the first trigger unit starts the timer after the monitoring unit according to a first predetermined time;

[0038] 所述第二计时单元启动后监测不可用的主服务模块的状态,在确定不可用的主服务模块恢复至可用时,触发所述监测模块。 [0038] The monitoring unit initiates the second timing is not the primary service module status, return to the determining available unavailable primary service module, a monitoring module is triggered.

[0039] 较佳地,所述主服务模块和所述备份服务模块还通过一个接口连接所述服务调用模块; [0039] Preferably, the primary service module and the service module is further connected to the backup service call via an interface module;

[0040] 所述主服务模块为提供WEB服务的首选URL ; [0040] The main service module to provide the URL WEB service choice;

[0041] 所述备份服务模块为提供WEB服务的备用URL。 The [0041] to provide backup service module WEB service alternate URL.

[0042] 较佳地,该系统还包含存储有主服务模块的信息及备份服务模块的信息的配置模块; [0042] Preferably, the system further comprises a module configuration information stored master and backup service module information of the service module;

[0043] 所述服务调用模块从所述配置模块获取主服务模块的信息及备份服务模块的信息, [0044] 或者所述服务调用模块从所述配置模块获取主服务模块的信息及备份服务模块的信息,利用调用的备份服务模块的信息或恢复至可用的主服务模块的信息更新所述配置模块中存储的信息。 [0043] The service calling module from the module configuration information of the main service module obtaining the information and backup service module, [0044] or a service call to the module from the primary module acquires the configuration information and the service module backup service module information, using a backup service module call information to a usable or updating the information of the main service module of the configuration information stored in the module.

[0045] 由上述的技术方案可见,本发明提供了一种WEB服务调用方法及系统,该方法中,接收请求,判断主服务是否可用,如果可用,则调用主服务处理请求并反馈处理结果,如果不可用,则调用可用的备份服务处理请求并反馈处理结果。 [0045] seen from the above technical solution, the present invention provides a method and system for calling WEB services, the method, receiving a request, the master determines whether the service is available, if available, is called the primary service processing request and feedback the results, If not, then call processing request backup services available and feedback the results. 采用本发明的方法及系统,能够保证WEB服务的可靠性。 Method and system of the present invention, it is possible to ensure the reliability of WEB services.

附图说明 BRIEF DESCRIPTION

[0046] 图1为本发明WEB服务调用方法实施例一的流程图; [0046] FIG 1 WEB service call flow diagram of a method embodiment of the present invention;

[0047] 图2为本发明WEB服务调用方法实施例二的流程图; [0047] FIG. 2 WEB service call flowchart of a method according to a second embodiment of the present invention;

[0048] 图3为本发明WEB服务调用系统实施例一的结构示意图; [0048] FIG. 3 WEB service call schematic diagram of a system configuration of the embodiment of the present invention;

[0049] 图4为本发明WEB服务调用系统实施例二的结构示意图。 [0049] FIG. 4 WEB service call system schematic structural diagram of a second embodiment of the present invention.

具体实施方式 detailed description

[0050] 由于现有技术中作为首选WEB服务的URL因故障无法被使用时,需要手动重新设置提供WEB服务的URL,而本发明提供的WEB服务调用方法中,无需手动重新设置提供WEB服务的URL,对作为首选WEB服务的主服务进行监测,如果其不可用,则自动切换至提供WEB服务的备份服务,调用备份服务提供WEB服务,保证了WEB服务的可靠性。 [0050] Since the prior art can not be used due to a trouble, it is necessary to manually reset the URL as the preferred WEB services WEB service URL, the WEB service calls method provided in the present invention, the need to manually re-set to provide WEB services URL, the main service WEB as the preferred service monitoring, if it is not available, it automatically switches to the backup service providing WEB service, call backup service provides WEB services, to ensure the reliability of WEB services.

[0051] 为了表述清楚,先对本发明的专用词进行说明,具体如下:主服务为提供WEB服务的首选URL,备份服务为提供WEB服务的备用URL ;本发明提及的主服务或备份服务反馈的处理结果为能够连接相应URL或连接成功的信息,如果无法连接相应URL或连接失败的信息视为未接收到相应的处理结果。 [0051] For clarity of presentation, the first dedicated word according to the present invention is described as follows: Main services for providing WEB service choice for the URL, backup services for providing WEB service spare the URL; primary service or backup service feedback mentioned herein the result of the processing to be able to connect the corresponding URL or a successful connection information, if you can not connect the appropriate URL or connection failure information deemed not to have received the appropriate treatment results.

[0052] 图1为本发明WEB服务调用方法实施例一的流程图。 [0052] FIG 1 WEB service call flow diagram of a method embodiment of the present invention. 现结合图1,对本发明实施例一的WEB服务调用方法进行说明,具体如下: Now to FIG. 1, the embodiment of the present invention is a method of WEB service call will be described as follows:

[0053] 步骤10 :接收来自客户端的请求; [0053] Step 10: receiving a request from a client;

[0054] 该步骤可通过一个接口接收客户端发送的请求。 [0054] This step can be an interface to receive a request sent by the client. 其中,客户端可为运行在一台如计算机一样的终端上的提供WEB服务的软件程序;该步骤中提及的请求中包含终端获取WEB服务所需的参数。 Wherein, the client may be a software program running on a WEB service provided a computer-like terminal; requesting step mentioned in the acquisition parameters required for the terminal comprises a WEB service. 本发明中,参数可以是任意类型的,数量也可有多个。 In the present invention, may be any type of parameter, the number may be plural. 具体的参数取决于具体的服务,取决于发布者对于服务的定义。 Specific parameters depend on the specific service, depending on the publisher defined for the service. 例如,对于计算数值之和的Web服务,参数是多个数值,因此参数数量是多个。 For example, a sum of calculated values ​​for the Web service, a plurality of parameter values, the number of the plurality of parameters. 又例如,对于一个获取居民身份证信息的服务,参数是个人身份证号,则只有一个参数。 As another example, for a service identity card to obtain information, the parameter is a personal identification number, then only one parameter. 因此,Web服务的参数是根据具体需求灵活定制或配置的。 Therefore, the parameters of the Web service is flexible customized or configured according to specific needs.

[0055] 步骤11 :判断主服务是否可用,如果可用,则执行步骤12,否则执行步骤13 ; [0055] Step 11: determining whether the main service is available, if available, step 12 is performed, otherwise step 13;

[0056] 该步骤包括:将请求中携带的参数发送给主服务,判断在预设的第一时间内内是否接收到主服务反馈的处理结果,如果是,则确定主服务可用,执行步骤12,否则确定主服务不可用,执行步骤13。 [0056] This step comprises: transmitting the request to the main service parameters carried in, it is determined whether a processing result of the main feedback service within a first preset time, and if so, it is determined that the main service is available, step 12 is performed otherwise, determine the main service is not available, go to step 13.

[0057] 本实施例中是采用发送请求给主服务,以是否获得处理结果判断主服务是否可用,还可采用现有的其他检测主服务是否可用的方法,比如用以检测与主服务之间的链路是否连通的Ping命令,在此不再对其他检测主服务是否可用的方法进行举例说明。 Between [0057] the present embodiment is the use of the service sends a request to the host, to obtain a processing result determines whether the main service is available, a conventional method may be employed to detect the primary additional services are available, such as for detecting the primary serving Ping command whether the communication link, which is not the main service of another detection method is available will be exemplified.

[0058] 步骤12 :调用主服务处理请求并反馈处理结果,之后执行步骤14 ; [0058] Step 12: the service processing request and call the main feedback processing result after performing step 14;

[0059] 该步骤包括:将请求中携带的参数发送给主服务,从主服务获取连接成功的信息或数据,将连接成功的信息或数据作为处理结果反馈给发送请求的客户端。 [0059] This step comprises: transmitting the parameters carried in the request to the main service, information or data from the primary service is successfully connected, the connection is successful feedback information or data as a processing result to the transmission requesting client.

[0060] 步骤13 :调用可用的备份服务处理请求并反馈处理结果; [0060] Step 13: Backup Services call processing request and feedback the results available;

[0061] 该步骤包括:将请求中携带的参数发送给一个备份服务,判断在预设的第二时间内是否接收到备份服务反馈的处理结果,如果是,则确定备份服务可用,输出反馈的处理结果,否则继续执行将请求中携带的参数发送给一个备份服务的步骤,直至从一个备份服务接收到处理结果为止。 [0061] This step includes: transmitting a parameter to the request carries a backup service, it is determined whether a backup service process result feedback in a second preset time, if yes, determining the backup service is available, the output feedback processing result, otherwise continue transmitting step carried in the request parameters to a backup service, until it receives from service until a backup processing result.

[0062] 或者该步骤包括:将请求中携带的参数发送给多个备份服务,判断是否接收到多个备份服务反馈的处理结果,如果是,则将反馈处理结果最快的备份服务作为可用的备份服务,反馈其发送的处理结果,否则判断是否接收到一个备份服务反馈的处理结果,如果是,则将该备份服务作为可用的备份服务,反馈其发送的处理结果,否则执行将请求中携带的参数发送给多个备份服务的步骤。 [0062] or comprising the step of: sending a request to a plurality of parameters carried in the backup service, it is determined whether a processing result of a plurality of feedback backup service, and if so, the processing result of the fastest backup service will be available as a feedback backup services, the processing result transmitted feedback, or determines whether the received processing result, a backup service feedback, if so, the backup service is available as a backup service, it sends a processing result of the feedback, otherwise the request carries step parameter to a plurality of backup services.

[0063] 该步骤是一个内部循环处理,即将请求中携带的参数发送给备份服务,直至从一个备份服务获取处理结果,确定该备份服务可用,将其作为此次提供WEB服务的首选服务。 [0063] This step is a internal loop processing, the parameters carried in the request is about to send to the backup service until acquiring the processing result from a backup service, it is determined that the backup service is available, which is provided as the preferred service WEB service.

[0064] 步骤14 :结束。 [0064] Step 14: End.

[0065] 为了便于客户端通过同一个接口方便地访问主服务和多个备份服务,步骤10之前还可包括:利用一个代理类封装主服务和至少一个备份服务,通过调用代理类,触发执行步骤10至步骤14的流程。 [0065] In order to facilitate a client interface to easily access the same services, and a plurality of primary backup service, before the step 10 by further comprising: utilizing a proxy class encapsulates a main service and at least one backup service by calling the proxy class, the trigger step Scheme 10 to step 14.

[0066] 优选地,在上述调用代理类的步骤之前前还包括:将代理类编译为一个动态链接文件;则调用代理类的步骤为通过引用动态链接文件调用代理类。 [0066] Preferably, prior to the step before calling the proxy class further includes: a proxy class compiled into a dynamic link file; step proxy class to invoke the proxy class is called by a dynamic link reference file.

[0067] 优选地,在步骤13之后还包括:在预设的第三时间内未接收到任何一个备份服务反馈的处理结果,则输出无可用WEB服务的结果至发送请求的客户端。 [0067] Preferably, after step 13 further comprising: not received within a preset third time to any processing result, a backup service feedback, the output results can be WEB client without sending a request to the service.

[0068] 为了提高工作效率,便于实现即插即用的服务切换,该方法还包括:从配置文件中获取主服务及备份服务,在调用可用的备份服务后,可将配置文件中提供首选WEB服务的信息更新为所调用的备份服务的信息。 [0068] In order to improve efficiency, easy to implement plug and play service switching, the method further comprising: obtaining service from the main and backup service profile, after the call available backup service, may be provided in the preferred configuration file WEB information services update information backup service called. 另外,在不可用的主服务恢复至可用后,还可进一步讲配置文件中提供首选WEB服务的信息更新为恢复至可用的主服务的信息。 In addition, after the resumption to be used in the main service is not available, but also provide Furthermore preferred WEB service profile updates available to return to the main service information. [0069] 图2为本发明WEB服务调用方法实施例二的流程图。 [0069] FIG. 2 WEB service call flowchart of a method according to a second embodiment of the present invention. 现结合图2,对本发明实施例二的WEB服务调用方法进行说明,具体如下: 2 now in conjunction with, the present invention will be described WEB service calling method according to the second embodiment, as follows:

[0070] 步骤20 :接收来自客户端的请求; [0070] Step 20: receiving a request from a client;

[0071] 该步骤可通过一个接口接收客户端发送的请求。 [0071] This step can be an interface to receive a request sent by the client. 其中,客户端可为运行在一台如计算机一样的终端上的提供WEB服务的软件程序;该步骤中提及的请求中包含终端获取WEB服务所需的参数;所述参数的如前所述。 Wherein, the client may be a software program running on providing WEB service, such as a computer terminal; requesting step mentioned in the acquisition parameters required for the terminal comprises a WEB service; the parameters previously described .

[0072] 步骤21 :判断主服务是否可用,如果可用,则执行步骤22,否则执行步骤23 ; [0072] Step 21: determining whether the main service is available, if available, step 22 is performed, otherwise step 23;

[0073] 该步骤包括:将请求中携带的参数发送给主服务,判断在预设的第一时间内内是否接收到主服务反馈的处理结果,如果是,则确定主服务可用,执行步骤22,否则确定主服务不可用,执行步骤23。 [0073] This step comprises: transmitting the request to the main service parameters carried in, it is determined whether a processing result of the main feedback service within a first predetermined time, and if so, it is determined that the main service is available, step 22 otherwise, determine the main service is not available, go to step 23.

[0074] 本实施例中是采用发送请求给主服务,以是否获得处理结果判断主服务是否可用,还可采用现有的其他检测主服务是否可用的方法,比如用以检测与主服务之间的链路是否连通的Ping命令,在此不再对其他检测主服务是否可用的方法进行举例说明。 [0074] The present embodiment is employed between the service sends a request to the host, to obtain a processing result determines whether the main service is available, a conventional method may be employed to detect the primary additional services are available, such as for detecting the primary serving Ping command whether the communication link, which is not the main service of another detection method is available will be exemplified.

[0075] 步骤22 :调用主服务处理请求并反馈处理结果,之后执行步骤26 ; [0075] Step 22: the service processing request and call the main feedback processing result after performing step 26;

[0076] 该步骤包括:将请求中携带的参数发送给主服务,从主服务获取连接成功的信息或数据,将连接成功的信息或数据作为处理结果反馈给发送请求的客户端。 [0076] This step comprises: transmitting the parameters carried in the request to the main service, information or data from the primary service is successfully connected, the connection is successful feedback information or data as a processing result to the transmission requesting client.

[0077] 步骤23 :调用可用的备份服务处理请求并反馈处理结果; [0077] Step 23: Backup Services call processing request and feedback the results available;

[0078] 该步骤包括:将请求中携带的参数发送给一个备份服务,判断在预设的第二时间内是否接收到备份服务反馈的处理结果,如果是,则确定备份服务可用,输出反馈的处理结果,否则继续执行将请求中携带的参数发送给一个备份服务的步骤,直至从一个备份服务接收到处理结果为止。 [0078] This step includes: transmitting a parameter to the request carries a backup service, it is determined whether a backup service process result feedback in a second preset time, if yes, determining the backup service is available, the output feedback processing result, otherwise continue transmitting step carried in the request parameters to a backup service, until it receives from service until a backup processing result.

[0079] 或者该步骤包括:将请求中携带的参数发送给多个备份服务,判断是否接收到多个备份服务反馈的处理结果,如果是,则将反馈处理结果最快的备份服务作为可用的备份服务,反馈其发送的处理结果,否则判断是否接收到一个备份服务反馈的处理结果,如果是,则将该备份服务作为可用的备份服务,反馈其发送的处理结果,否则执行将请求中携带的参数发送给多个备份服务的步骤。 [0079] or comprising the step of: sending a request to a plurality of parameters carried in the backup service, it is determined whether a processing result of a plurality of feedback backup service, and if so, the processing result of the fastest backup service will be available as a feedback backup services, the processing result transmitted feedback, or determines whether the received processing result, a backup service feedback, if so, the backup service is available as a backup service, it sends a processing result of the feedback, otherwise the request carries step parameter to a plurality of backup services.

[0080] 该步骤是一个内部循环处理,即将请求中携带的参数发送给备份服务,直至从一个备份服务获取处理结果,确定该备份服务可用,将其作为此次提供WEB服务的首选服务。 [0080] This step is a internal loop processing, the parameters carried in the request is about to send to the backup service until acquiring the processing result from a backup service, it is determined that the backup service is available, which is provided as the preferred service WEB service.

[0081] 步骤24 :判断不可用的主服务是否恢复至可用,如果是,则执行步骤25,否则执行步骤24 ; [0081] Step 24: determining whether the primary service is not available to a usable, if yes, step 25 is performed, otherwise step 24;

[0082] 该步骤包括:通过发送请求携带的参数至不可用的主服务,检测是否接收到主服务反馈的处理结果,来判断不可用的主服务是否恢复可用,若接收到主服务反馈的处理结果,则确定不可用的主服务恢复至可用,执行步骤25,否则执行发送请求携带的参数至不可用的主服务的步骤。 [0082] This step comprises: carrying by transmitting the request parameters to the primary service is unavailable, detecting whether a processing result of the main service feedback to determine the primary service unavailable if the recovery is available, the process when receiving the primary service feedback As a result, the primary service is determined unavailable to a usable, step 25, otherwise step to the transmission request is not carried in the primary service parameters used.

[0083] 该步骤还可采用ping命令判断不可用的主服务是否恢复至可用,在此不再对其它可行的检测方法进行逐一举例说明。 [0083] This step may also employ the ping command is determined whether the primary service is not available to a usable, which is not possible in other detection methods exemplified one by one.

[0084] 步骤25 :将恢复至可用的主服务设置为首选WEB服务; [0084] Step 25: the return to the main service to available Preferred WEB service;

[0085] 该步骤包括:由可用的备份服务切换至恢复至可用的主服务,将恢复至可用的主服务设为首选WEB服务。 [0085] comprising the steps: to restore a backup service available to switch to the main service is available, to return to the main service is available as a preferred WEB service. [0086] 步骤26:结束。 [0086] Step 26: End.

[0087] 为了便于客户端通过同一个接口方便地访问主服务和多个备份服务,步骤20之前还可包括:利用一个代理类封装主服务和至少一个备份服务,通过调用代理类,触发执行步骤20至步骤24的流程。 [0087] In order to facilitate a client interface to the same easy access to the main service and the plurality of backup services, further comprising prior to step 20 by: using a proxy class encapsulates a main service and at least one backup service by calling the proxy class, the trigger step 20 to step 24 of the flow.

[0088] 优选地,在上述调用代理类的步骤之前前还包括:将代理类编译为一个动态链接文件;则调用代理类的步骤为通过引用动态链接文件调用代理类。 [0088] Preferably, prior to the step before calling the proxy class further includes: a proxy class compiled into a dynamic link file; step proxy class to invoke the proxy class is called by a dynamic link reference file.

[0089] 优选地,在步骤23之后还包括:在预设的第三时间内未接收到任何一个备份服务反馈的处理结果,则输出无可用WEB服务的结果至发送请求的客户端。 [0089] Preferably, after 23 further comprising the step of: not received within a preset third time to any processing result, a backup service feedback, the output results can be WEB client without sending a request to the service.

[0090] 为了提高工作效率,便于实现即插即用的服务切换,该方法还包括:从配置文件中获取主服务及备份服务,在调用可用的备份服务后,可将配置文件中提供首选WEB服务的信息更新为所调用的备份服务的信息。 [0090] In order to improve efficiency, easy to implement plug and play service switching, the method further comprising: obtaining service from the main and backup service profile, after the call available backup service, may be provided in the preferred configuration file WEB information services update information backup service called. 另外,在不可用的主服务恢复至可用后,还可进一步讲配置文件中提供首选WEB服务的信息更新为恢复至可用的主服务的信息。 In addition, after the resumption to be used in the main service is not available, but also provide Furthermore preferred WEB service profile updates available to return to the main service information.

[0091] 图3为本发明WEB服务调用系统实施例一的结构示意图。 [0091] FIG. 3 WEB service call schematic diagram of a system configuration of the embodiment of the present invention. 现结合图3,对本发明实施例一的WEB服务调用系统的结构进行说明,具体如下: Now in conjunction with FIG 3, a configuration example of the WEB service call system will be described embodiments of the present invention, as follows:

[0092] 本实施例的WEB服务调用系统包括:服务调用模块30、主服务模块31及至少一个备份服务模块32。 [0092] The present WEB service invocation system of an embodiment comprises: the service invocation module 30, the main service module 31 and service module 32 at least one backup.

[0093] 服务调用模块30接收来自客户端的请求,监测主服务模块31,确定主服务模块31可用,则调用主服务模块31处理请求,确定主服务模块31不可用,则调用可用的备份服务模块32处理请求。 [0093] service call module 30 receives a request from a client, monitoring the main service module 31, determines that the main service module 31 is available, the main service module 31 to process the request is called, to determine the main service module 31 is unavailable, the call available backup service module 32 to process the request.

[0094] 主服务模块31接收请求,反馈请求的处理结果至服务调用模块30, [0094] The main module 31 receives the service request, feedback request service call result to the processing module 30,

[0095] 或者备份服务模块32接收请求,反馈请求的处理结果至服务调用模块30。 [0095] or a backup service module 32 receives the request, feedback request service call result to the processing module 30.

[0096] 另外,主服务模块31和备份服务模块32还通过一个接口(图3中未示出)连接服务调用模块30,以便通过一个接口调用相关服务,实现即插即用的服务切换。 [0096] Further, the main service module 31, and backup service module 32 through an interface (not shown in FIG. 3) calls the service module 30 is connected, via an interface to call the relevant services, the service switching plug and play.

[0097]为了提高工作效率,该系统还包含存储有主服务模块31的信息及备份服务模块32的信息的配置模块33。 [0097] In order to improve efficiency, the system further includes a storage module 31 of a main service information and the backup information service module 32 of the configuration module 33. 其中,服务调用模块30从配置模块33获取主服务模块31的信息及备份服务模块32的信息;服务调用模块30在调用备份服务模块32之后,将配置模块33中作为首选WEB服务的模块信息更新为调用的备份服务模块32的信息。 Wherein the service invocation module 3033 acquires information of the main service module 31 of the information and the backup service module 32 from the configuration module; service call module 30 after calling the backup service module 32, the configuration module 33, as the preferred WEB service module information update information for the backup service module 32 is invoked.

[0098] 其中,服务调用模块30包括监测单元301及第一计时单元302。 [0098] wherein the service invocation module 30 includes a monitoring unit 301, and a first timing unit 302.

[0099] 监测单元301将请求中携带的参数发送给主服务模块31,启动第一计时单元302,判断在接收到第一计时单元302的触发之前是否接收到主服务模块31反馈的处理结果,如果是,则确定主服务模块31可用,触发第一计时单元302停止计时,否则确定主服务模块31不可用,将请求中携带的参数发送给备份服务模块32,直至从一个备份服务模块32获取请求的处理结果。 [0099] The monitoring unit 301 sends the parameters carried in the request to the main service module 31, a first start timing unit 302 determines whether the processing result received main service module 31 before receiving the feedback timing unit 302 of the first trigger, If so, the service module 31 can be used to determine the main trigger stop timing of the first timing unit 302, or determines that the primary service module 31 is unavailable, the request will be sent to a backup service parameters carried in the module 32, until obtaining a backup service module 32 from request processing result.

[0100]另外,监测单元301在预设的第三时间内未接收到任何备份服务模块32反馈的处理结果,则输出无可用的WEB服务的信息至发送请求的一方。 [0100] Further, the monitoring unit 301 does not receive any backup service process result feedback module 32 within a preset third time, no output available WEB service information to the transmission requesting party.

[0101] 第一计时单元302启动后根据预设的第一时间触发监测单元301。 [0101] After the timing unit 302 starts a first trigger monitoring unit 301 according to a preset first time.

[0102] 图4为本发明WEB服务调用系统实施例二的结构示意图。 [0102] FIG. 4 WEB service call system schematic structural diagram of a second embodiment of the present invention. 现结合图4,对本发明实施例二的WEB服务调用系统的结构进行说明,具体如下: In conjunction with FIG. 4 now, the structure of WEB service call system according to a second embodiment of the present invention will be described as follows:

[0103] 本实施例的WEB服务调用系统包括:服务调用模块40、主服务模块41及至少一个备份服务模块42。 [0103] The present WEB service invocation system of an embodiment comprises: the service invocation module 40, the main service module 41 and service module 42 at least one backup.

[0104] 服务调用模块40接收来自客户端的请求,监测主服务模块41,确定主服务模块41可用,则调用主服务模块41处理请求,确定主服务模块41不可用,则调用可用的备份服务模块42处理请求;服务调用模块40监测到不可用的主服务模块41恢复至可用后,由可用的备份服务模块42切换至可用的主服务模块41。 [0104] service call module 40 receives a request from a client, monitoring the main service module 41 determines that the main service module 41 is available, the main service module 41 to process the request is called, to determine the main service module 41 is unavailable, the call available backup service module 42 processing request; service call module 40 to the monitoring service unavailable primary recovery module 41 to be used, available from the module 42 to switch to the backup service available services module 41 master.

[0105] 主服务模块41接收请求,反馈请求的处理结果至服务调用模块40, [0105] the main service module 41 receives a request, the processing result to the feedback request service call module 40,

[0106] 或者备份服务模块42接收请求,反馈请求的处理结果至服务调用模块40。 [0106] or a backup service module 42 receives a request, the processing result to the service call request feedback module 40.

[0107] 另外,主服务模块41和备份服务模块42还通过一个接口(图4中未示出)连接服务调用模块40,以便通过一个接口调用相关服务,实现即插即用的服务切换。 [0107] Further, the main service module 41, and backup service module 42 through an interface (not shown in FIG. 4) service invocation module 40 is connected, via an interface to call the relevant services, the service switching plug and play.

[0108]为了提高工作效率,该系统还包含存储有主服务模块41的信息及备份服务模块42的信息的配置模块43。 [0108] In order to improve efficiency, the system further includes a storage module 41 of a main service information and the backup information service module 42 of the configuration module 43. 其中,服务调用模块40从配置模块43获取主服务模块41的信息及备份服务模块42的信息;服务调用模块40在调用备份服务模块42之后,将配置模块43中作为首选WEB服务的模块信息更新为调用的备份服务模块42的信息;服务调用模块40在不可用的主服务模块412恢复至可用之后,将配置模块43中作为首选WEB服务的模块信息更新为恢复至可用的主服务模块41的信息。 Wherein the service call module 40 from the configuration module 43 acquires information 42 of the main service module information and backup service module 41; service invocation module 40 after calling the backup service module 42, the configuration module 43 as the preferred WEB service module information update information backup service module calls 42; service call module 40 to restore the unavailable primary service module 412 then is available to the configuration module 43 as the preferred WEB service module information updating is returned to the available primary service module 41 information.

[0109] 其中,服务调用模块40包括监测单元401、第一计时单元402及第二计时单元403。 [0109] wherein the service invocation module 40 includes a monitoring unit 401, a first timing unit 402 and a second timing unit 403.

[0110] 监测单元401将请求中携带的参数发送给主服务模块41,启动第一计时单元402,判断在接收到第一计时单元402的触发之前是否接收到主服务模块41反馈的处理结果,如果是,则确定主服务模块41可用,触发第一计时单元402停止计时,否则确定主服务模块41不可用,启动第二计时单元403。 [0110] The monitoring unit 401 transmits the parameters carried in the request to the main service module 41, a first start timing unit 402 determines whether the processing result received main service module 41 before receiving the feedback timing unit 402 of the first trigger, If so, the service module 41 can be used to determine the main trigger stop timing of the first timing unit 402, a main service module 41 determines otherwise unavailable, a second timing unit 403 starts.

[0111] 监测单元401将请求中携带的参数发送给备份服务模块42,直至从一个备份服务模块42获取请求的处理结果,根据第二计时单元403的触发,确定不可用的主服务模块41恢复至可用,触发第二计时单元403停止计时。 [0111] The monitoring unit 401 transmits the parameters carried in the request to the backup service module 42, until the processing result acquisition request from a backup service module 42, according to a second trigger timing unit 403, a main service is determined unavailable recovery module 41 to be used to trigger the second timing unit 403 stops timing.

[0112]另外,监测单元401在预设的第三时间内未接收到任何备份服务模块42反馈的处理结果,则输出无可用的WEB服务的信息至发送请求的一方。 [0112] Further, the monitoring unit 401 does not receive any backup service process result feedback module 42 within a preset third time, no output available WEB service information to the transmission requesting party.

[0113] 第一计时单元402启动后根据预设的第一时间触发监测单元401。 After the [0113] first timing unit 402 starts trigger monitoring unit 401 according to a preset first time.

[0114] 第二计时单元403启动后监测不可用的主服务模块41的状态,在确定不可用的主服务模块41恢复至可用时,触发监测模块401。 [0114] After the second time counting unit 403 starts monitoring the state of the main service module 41 is unavailable, available to restore the service is determined unavailable primary module 41, the trigger monitoring module 401.

[0115] 本发明的上述较佳实施例中,提出使用一种基于代理机制的带有自动故障屏蔽的WEB服务调用方法,来完成对WEB服务可靠性的管理,在某一个WEB服务不可用时实现自动切换,提供了一种低成本的可靠的WEB服务调用方法。 [0115] The preferred embodiment of the present invention, a method is proposed to use WEB service calls based agent system with automatic fault shielding, to complete the WEB service reliability management, achieved when a certain service is unavailable WEB automatic switching, provide a reliable WEB service calls a low-cost method. 另外,本发明通过配置文件可实时获取主服务及备份服务的信息,可在不重启程序的情况下,随时添加或删减配置文件中的Web服务信息,且在主服务和备份服务之间切换过程中也无需切换,实现即插即用的服务切换,提高了工作效率。 Further, the present invention may be a main service and real-time access to information and services through the backup configuration file, without restarting the program, added or deletion of a Web service profile information, and switching between the main and backup service service the process also need to switch, switch the service to achieve plug and play, improve work efficiency.

[0116] 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读取存储介质中,如:R0M/RAM、磁碟、光盘等。 [0116] Those of ordinary skill in the art may understand that the above-described embodiment, all or part of the method steps may be relevant hardware instructed by a program, the program may be stored in a computer readable storage medium, such as: R0M / RAM, magnetic disk, optical disk.

[0117] 以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 [0117] The above are only preferred embodiments of the present invention, it should be noted that those of ordinary skill in the art who, without departing from the principles of the present invention, further improvements and modifications may be made, such modifications and modifications should be the scope of the present invention.

Claims (14)

  1. 1. 一种WEB服务调用方法,其特征在于,该方法包括: A、接收请求; B、判断主服务是否可用,如果可用,则调用主服务处理所述请求并反馈处理结果,如果不可用,则执行步骤C ; C、调用可用的备份服务处理所述请求并反馈处理结果。 A WEB service call, characterized in that the method comprises: A, receiving a request; B, determines the main service is available, if available, is called the primary service processing request and feedback the results, if not available, performing step C; C, available backup service call request and process the feedback processing result.
  2. 2.根据权利要求1所述的方法,其特征在于,所述步骤B之后还包括:监测到主服务恢复至可用时,切换至可用的主服务。 2. The method according to claim 1, wherein, after said step B further comprising: monitoring the main service is available to restore the switch to the main service available.
  3. 3.根据权利要求1或2所述的方法,其特征在于,步骤B所述判断主服务是否可用包括: 将所述请求中携带的参数发送给所述主服务,判断在预设的第一时间内内是否接收到所述主服务反馈的处理结果,如果是,则确定所述主服务可用,否则确定所述主服务不可用。 3. The method of claim 1 or claim 2, wherein the step of determining whether the main service B is available comprises: transmitting the parameters carried in the request to the main service, determines a first predetermined whether the reception time to the primary service processing result of the feedback, and if so, determining that the primary service is available, otherwise, determining that the primary service is unavailable.
  4. 4.根据权利要求1或2所述的方法,其特征在于,所述步骤C包括: Cl、将所述请求中携带的参数发送给一个备份服务,判断在预设的第二时间内是否接收到所述备份服务反馈的处理结果,如果是,则确定所述备份服务可用,执行步骤C2,否则执行步骤Cl ; C2、输出所述反馈的处理结果。 4. The method of claim 1 or claim 2, wherein the step C comprises: Cl, sending the request carries the parameters to a backup service, it is determined whether a second received within a preset time services to the backup processing result of the feedback, and if so, determining that the backup service is available, executing step C2, otherwise step Cl; processing result C2, the output of the feedback.
  5. 5.根据权利要求1或2所述的方法,其特征在于,所述步骤A之前还包括: 利用一个代理类封装主服务和至少一个备份服务; 调用所述代理类,以触发执行所述步骤A至所述步骤C。 5. The method of claim 1 or claim 2, wherein, prior to said step A further comprising: a proxy class encapsulates a main service and at least one backup service; invoking the proxy class, to trigger execution of said step said step A to C.
  6. 6.根据权利要求5所述的方法,其特征在于,所述调用所述代理类之前还包括:将代理类编译为一个动态链接文件; 所述调用所述代理类为通过引用所述动态链接文件调用所述代理类。 6. The method according to claim 5, characterized in that, prior to said calling the proxy class further includes: a proxy class compiled into a dynamic link file; the proxy class for the call by the reference dynamic link file calls the proxy class.
  7. 7.根据权利要求1或2所述的方法,其特征在于,该方法还包括:从配置文件中获取主服务及备份服务, 或者从配置文件中获取主服务及备份服务,并利用调用的备份服务或恢复至可用的主服务更新所述配置文件。 7. The method of claim 1 or claim 2, wherein the method further comprises: obtaining the configuration file from a main service and backup services, or obtain the primary and backup service profile from the service, and use the backup call service to a usable or updating the primary service profile.
  8. 8.根据权利要求1或2所述的方法,其特征在于,所述主服务为提供WEB服务的首选URL ; 所述备份服务为提供WEB服务的备用URL。 8. The method of claim 1 or claim 2, wherein the main service as the preferred URL providing WEB service; alternate URL to the backup service providing WEB service.
  9. 9. 一种WEB服务调用系统,其特征在于,该系统包括:服务调用模块、主服务模块及至少一个备份服务模块; 所述服务调用模块接收来自客户端的请求,监测所述主服务模块,确定所述主服务模块可用,则调用所述主服务模块处理所述请求,确定所述主服务模块不可用,则调用可用的备份服务模块处理所述请求; 所述主服务模块反馈所述请求的处理结果,或所述可用的备份服务模块反馈所述请求的处理结果。 A WEB service call system, characterized in that the system comprising: a service call module, a service module and at least one primary backup service module; invocation of the service module receives a request from a client, the main monitor service module determines the primary service module is available, the master service module is invoked to process the request, determining that the primary service module is not available, the call processing module available backup service the request; the primary feedback to the request service module processing result, or the available backup service module feedback the results of the request.
  10. 10.根据权利要求9所述的系统,其特征在于,所述服务调用模块还在监测到不可用的主服务模块恢复至可用后,由可用的备份服务模块切换至可用的主服务模块。 10. The system according to claim 9, wherein the service module is also monitored after calling unavailable to a usable main service module, the switching module available backup service available to the primary service module.
  11. 11.根据权利要求9所述的系统,其特征在于,所述服务调用模块包括监测单元及第一计时单元; 所述监测单元将所述请求中携带的参数发送给所述主服务模块,启动第一计时单元,判断在接收到第一计时单元的触发之前是否接收到主服务模块反馈的处理结果,如果是,则确定所述主服务模块可用,触发第一计时单元停止计时,否则确定所述主服务模块不可用,将所述请求中携带的参数发送给备份服务模块,直至从一个备份服务模块获取所述请求的处理结果; 所述第一计时单元启动后根据预设的第一时间触发所述监测单元。 11. The system according to claim 9, wherein the service invocation module comprises a first monitoring unit and a timing unit; transmitting the monitoring unit the parameters carried in the request to the main service module, started a first timing unit, determines whether or not received before the first timing means to trigger the processing result of the main feedback service module, if so, determining that the primary service module is available, the trigger timing of the first timing unit is stopped, otherwise, determining that said main service module is unavailable, the request will be sent to the backup service parameters carried in the module, until the result of the acquisition processing request from a backup service module; started after the first timing unit according to a first predetermined time triggering the monitoring unit.
  12. 12.根据权利要求10所述的系统,其特征在于,所述服务调用模块包括监测单元、第一计时单元及第二计时单元; 所述监测单元将所述请求中携带的参数发送给所述主服务模块,启动第一计时单元,判断在接收到第一计时单元的触发之前是否接收到主服务模块反馈的处理结果,如果是,则确定所述主服务模块可用,触发第一计时单元停止计时,否则确定所述主服务模块不可用,启动所述第二计时单元; 所述监测单元将所述请求中携带的参数发送给备份服务模块,直至从一个备份服务模块获取所述请求的处理结果,根据第二计时单元的触发,确定不可用的主服务模块恢复至可用,触发所述第二计时单元停止计时; 所述第一计时单元启动后根据预设的第一时间触发所述监测单元; 所述第二计时单元启动后监测不可用的主服务模块的状态,在确定不可用 12. The system according to claim 10, wherein the service invocation module comprises a monitoring unit, a first timing and a second timing unit cell; the monitoring unit the parameters carried in the request sent to the primary service module, starts a first timer means determines whether or not received before the first timing means to trigger the processing result of the main feedback service module, if so, determining that the primary service module is available to trigger the first timer unit stops timing, otherwise determining that the primary service module is not available, starting the second timer unit; the monitoring unit sends the request to the backup service parameters carried in the module until acquisition processing of the request from a backup service module As a result, according to the second trigger timing means, determines that the main service module is not available to the recovery, timing unit triggers the second timer is stopped; after the first trigger unit starts the monitoring timer in accordance with a first predetermined time unit; after the second monitoring unit starts counting the main service module unavailable state, the determination is not available 主服务模块恢复至可用时,触发所述监测模块。 The main service module to a usable trigger the monitoring module.
  13. 13.根据权利要求9至12任一项所述的系统,其特征在于,所述主服务模块和所述备份服务模块还通过一个接口连接所述服务调用模块; 所述主服务模块为提供WEB服务的首选URL ; 所述备份服务模块为提供WEB服务的备用URL。 13. The system according to any one of claims 9 to 12, wherein said primary backup service module and the service module is further connected via an interface module of the service call; and the master service module to provide WEB preferred URL for the service; the backup service module to provide backup WEB service URL.
  14. 14.根据权利要求9至12任一项所述的系统,其特征在于,该系统还包含存储有主服务模块的信息及备份服务模块的信息的配置模块; 所述服务调用模块从所述配置模块获取主服务模块的信息及备份服务模块的信息, 或者所述服务调用模块从所述配置模块获取主服务模块的信息及备份服务模块的信息,利用调用的备份服务模块的信息或恢复至可用的主服务模块的信息更新所述配置模块中存储的信息。 14. The system according to any one of claims 9 to 12, characterized in that the system further comprises a module configuration information stored in the information service module main and backup service module; the service call from the configuration module module acquires information of the main service module information and backup service module, the service call module or configuration module to obtain information from the primary information and the backup service module of the service module, the service module using the backup call information to a usable or updates the main service module configuration information stored in the module.
CN 201210555713 2012-12-19 2012-12-19 Method and system for invoking web services CN103024058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210555713 CN103024058A (en) 2012-12-19 2012-12-19 Method and system for invoking web services

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210555713 CN103024058A (en) 2012-12-19 2012-12-19 Method and system for invoking web services

Publications (1)

Publication Number Publication Date
CN103024058A true true CN103024058A (en) 2013-04-03

Family

ID=47972182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210555713 CN103024058A (en) 2012-12-19 2012-12-19 Method and system for invoking web services

Country Status (1)

Country Link
CN (1) CN103024058A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905551A (en) * 2014-04-02 2014-07-02 北京中交兴路车联网科技有限公司 Method and device for calling service
CN105391683A (en) * 2015-09-30 2016-03-09 小米科技有限责任公司 Remote method invocation method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040123140A1 (en) * 2002-12-18 2004-06-24 Toomey Christopher Newell Optimizing authentication service availability and responsiveness via client-side routing
CN1549978A (en) * 2001-07-16 2004-11-24 Bea系统公司 Method and apparatus for session replication and failover
CN1613241A (en) * 2001-12-31 2005-05-04 思科技术公司 A system and method for providing reliable telephony web-based features
CN101312463A (en) * 2008-06-20 2008-11-26 北京大学 Service redundant method
CN102387211A (en) * 2011-10-24 2012-03-21 浪潮(北京)电子信息产业有限公司 Method and system for realizing web service use of network application software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549978A (en) * 2001-07-16 2004-11-24 Bea系统公司 Method and apparatus for session replication and failover
CN1613241A (en) * 2001-12-31 2005-05-04 思科技术公司 A system and method for providing reliable telephony web-based features
US20040123140A1 (en) * 2002-12-18 2004-06-24 Toomey Christopher Newell Optimizing authentication service availability and responsiveness via client-side routing
CN101312463A (en) * 2008-06-20 2008-11-26 北京大学 Service redundant method
CN102387211A (en) * 2011-10-24 2012-03-21 浪潮(北京)电子信息产业有限公司 Method and system for realizing web service use of network application software

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905551A (en) * 2014-04-02 2014-07-02 北京中交兴路车联网科技有限公司 Method and device for calling service
CN105391683A (en) * 2015-09-30 2016-03-09 小米科技有限责任公司 Remote method invocation method, device and system

Similar Documents

Publication Publication Date Title
US6868442B1 (en) Methods and apparatus for processing administrative requests of a distributed network application executing in a clustered computing environment
US20060090097A1 (en) Method and system for providing high availability to computer applications
US20030037289A1 (en) Fault tolerance software system with periodic external self-test failure detection
CN102025535A (en) Virtual machine management method and device and network equipment
JP2004030204A (en) Load distribution device and node computer connected to the same
CN101102288A (en) A method and system for realizing large-scale instant message
CN102281311A (en) A method for implementing network traffic based on open application programming interface, apparatus and system
US20070165615A1 (en) Apparatus and method for notifying communication network event in application server capable of supporting open API based on Web services
CN101227630A (en) Method for monitoring application program based on window platform
US20080077657A1 (en) Transaction takeover system
CN103164256A (en) Processing method and system capable of achieving one machine supporting high concurrency
CN102541891A (en) Browser error reporting method and browser error reporting device based on interceptor
US20100332582A1 (en) Method and System for Service Contract Discovery
CN101895540A (en) Daemon system and method for application service
US20120102192A1 (en) Network system
JP2004280738A (en) Proxy response device
JP2007058506A (en) Document management server, document management system, and document management program and its recording medium
CN101594376A (en) Method and corresponding device for registering CIM provider to CIMOM
CN102708173A (en) Method and system for processing user requests of accessing to web pages
CN102624881A (en) Mobile-device-oriented service cache system architecture and development method
JP2003058435A (en) Service control application execution method and system
CN103248651A (en) Performance monitoring method and system, as well as client side and server
US20120266211A1 (en) Transparent database connection reconnect
CN102171993A (en) Linkage strategy implementation method and apparatus, open platform veneer and device
CN102984500A (en) Method and device and system for achieving compatibility among multiple video monitor equipment

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
RJ01