CN102143195B - Method, device and service system providing service information - Google Patents

Method, device and service system providing service information Download PDF

Info

Publication number
CN102143195B
CN102143195B CN201010243893.4A CN201010243893A CN102143195B CN 102143195 B CN102143195 B CN 102143195B CN 201010243893 A CN201010243893 A CN 201010243893A CN 102143195 B CN102143195 B CN 102143195B
Authority
CN
China
Prior art keywords
information
service request
service
request
esb
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201010243893.4A
Other languages
Chinese (zh)
Other versions
CN102143195A (en
Inventor
徐良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Micro Kung Fu information technology Nantong Co.,Ltd.
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201010243893.4A priority Critical patent/CN102143195B/en
Priority to PCT/CN2011/073359 priority patent/WO2011140914A1/en
Publication of CN102143195A publication Critical patent/CN102143195A/en
Application granted granted Critical
Publication of CN102143195B publication Critical patent/CN102143195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The embodiment of the invention provides a method, a device and a service system providing service information. The service system comprises an enterprise service bus, wherein the enterprise service bus is respectively connected with a service provision device and a service request device and is used for receiving a service application request sent by the service request device and then sending the service request to the service provision device; the enterprise service bus is also connected with an information buffer device, and the information buffer device is used for receiving and storing the state information of the service application request sent by the service provision device through the enterprise service bus; the information buffer device is also used for receiving a service state acquisition request for acquiring the state information of the service application request sent by the service request device through the enterprise service bus and is used for sending the state information of the service request to the service request device through the enterprise service bus according to the service state acquisition request. The embodiment of the invention achieves the purpose of carrying on the state business by relying on ESB (enterprise service bus).

Description

Method, device and the service system of information on services are provided
Technical field
The embodiment of the present invention relates to the communication technology, relates in particular to a kind of method, information cache device, ESB and service-oriented architecture service system that information on services is provided.
Background technology
Service-oriented architecture (Service-Oriented Architecture, hereinafter to be referred as: SOA), by interface and the contract of definition between service, the different function units of application program (service) is linked together.Wherein, the definition of interface is independent of hardware platform, operating system and the programming language of the service of realization.The service of different system is carried out in unified mode alternately.SOA supports business to be converted to one group of service interlinking or can iterative task, can be by these services of access to netwoks and task.
SOA comprise service request device, service providing apparatus and ESB (Enterprise Service Bus, hereinafter to be referred as: ESB).Wherein, ESB be in SOA framework all request messages converge route distribution point, service request device is connected with ESB, by ESB, to service providing apparatus, initiating service A asks, ESB gives corresponding service providing apparatus by the service A request route of this service request device, service providing apparatus receives after service A request, service A request is inserted in buffer memory and is processed, and result is temporarily stored in buffer memory.Follow-up this service request device is initiated the status request of inquiry service A by ESB.Service providing apparatus receives by ESB after the status request of inquiry service A, inquires after the state of service A, by ESB return service request unit from buffer memory.
Due to ESB stateless service function, to carry out while having state service, service providing apparatus need and be safeguarded buffer storage at local disposition.Therefore, service request device need be passed through the state of ESB remote access service, thereby has increased the access delay of service request device, has reduced access efficiency.
Summary of the invention
The embodiment of the present invention provides a kind of method, device and service system that information on services is provided, and has solved in existing enterprise's group-network construction, can not rely on ESB and carry out the predicament that has state service, has improved access efficiency, has reduced access time delay.
The embodiment of the present invention provides a kind of service-oriented architecture service system, comprising: ESB, service providing apparatus, information cache device and service request device;
Described ESB is connected with described service request device with described service providing apparatus respectively, for receiving after the application service request of described service request device transmission, described application service request is sent to described service providing apparatus;
Described ESB is also connected with described information cache device, and described information cache device, for being received and preserved the state information of the described application service request of described service providing apparatus transmission by described ESB; The state information of described application service request is for representing the treatment state of described service providing apparatus to described application service request;
Described information cache device, also for by described ESB, receive that described service request device sends for obtaining the service state request of obtaining of the state information of described application service request, according to described, obtain service state request, the state information of described application service request is sent to described service request device by described ESB.
The embodiment of the present invention provides a kind of service-oriented architecture service system, comprising: ESB, service providing apparatus, information cache device and service request device;
Described information cache device is connected with described ESB, and described ESB is connected with described service providing apparatus; Described information cache device, for receiving by described ESB after the control information that send, that the request of described service request device is controlled of described service providing apparatus, preserves described control information;
Described ESB is also connected with described service request device, and the request sending for receiving described service request device, and the control information of obtaining described request from described information cache device, control described request.
The embodiment of the present invention also provides a kind of information cache device, comprising: information receiving module, acquisition of information module, information sending module and memory module;
Described information receiving module, the state information to application service request sending for receive service providing apparatus by ESB, and the state information of application service request is saved to memory module, and receive by ESB the service state request of obtaining that service request device sends; The state information of application service request is the treatment state of service providing apparatus to application service request; The state information of application service request comprises the service identifiers of applying for service request;
Described acquisition of information module, the service identifiers of the application service request of carrying for the service state request of obtaining receiving according to described information receiving module obtains the state information of applying for service request in described memory module;
Described information sending module, for getting after state information in described acquisition of information module, sends response message by described ESB to described service request device, and described response message comprises state information and the service identifiers of applying for service request;
Described memory module, the state information to application service request receiving for storing described information receiving module.
The invention process also provides a kind of ESB, comprising: service request adaptation module, service provide adaptation module and information cache adaptation module;
Described service request adaptation module, the application service request sending for receiving service request device, and described application service request is sent to service providing apparatus, the service state request of obtaining also sending for receiving described service request device;
Described service provides adaptation module, after described application service request being processed at described service providing apparatus, receives the state information of the described application service request of described service providing apparatus transmission;
Described information cache adaptation module, for providing described service the state information that adaptation module receives to send to information cache device; The service identifiers of the described application service request of carrying in obtaining service state request described in described information cache device basis, get after the state information of described application service request, receive the service state response message that described information cache device sends, described service state response message comprises the state information of described application service request.
The embodiment of the present invention also provides a kind of method that information on services is provided, and comprising:
After at service providing apparatus, service request device being sent application service request and processing, by ESB, receive and preserve the state information of the state information application service request of the described application service request that described service providing apparatus sends; The state information of described application service request represents the treatment state of described service providing apparatus to described application service request; The state information of described application service request comprises the service identifiers of applying for service request;
By described ESB, receive the service state request of obtaining that described service request device sends, according to the described service identifiers that obtains the application service request of carrying in service state request, obtain the state information of the application service request of described preservation;
By described ESB, to described service request device, send the state information of the state information response information applications service request that comprises described application service request.
The embodiment of the present invention provides method, device and the service system of information on services, has increased the information cache device being connected with ESB in SOA framework, makes information cache device preserve the treatment state to application service request that service providing apparatus returns.Thereby make ESB by information cache device, obtain the treatment state of application service request, offer service request device.Meanwhile, information cache device is preserved the control information that service providing apparatus sends, thereby makes ESB from information cache device, obtain control information, and the request of service request device is controlled.Because service request device is by service status information in ESB high-speed channel visit information buffer storage, reduced the access delay of service request device, improved the performance of system.Because the information cache device being connected with ESB has memory function, realized dependence ESB and carried out the object that has state service.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The SOA service system structural representation that Fig. 1 provides for first embodiment of the invention;
The information cache apparatus structure schematic diagram that Fig. 2 provides for second embodiment of the invention;
The information cache apparatus structure schematic diagram that Fig. 3 provides for third embodiment of the invention;
The ESB structural representation that Fig. 4 provides for fourth embodiment of the invention;
The ESB structural representation that Fig. 5 provides for fifth embodiment of the invention
The method flow diagram that information on services is provided that Fig. 6 provides for sixth embodiment of the invention;
The method flow diagram that information on services is provided that Fig. 7 provides for seventh embodiment of the invention;
The method flow diagram that information on services is provided that Fig. 8 A provides for eighth embodiment of the invention;
The applied service system structural representation of the method that information on services is provided that Fig. 8 B provides for eighth embodiment of the invention;
The method flow diagram that information on services is provided that Fig. 9 provides for ninth embodiment of the invention;
The method flow diagram that information on services is provided that Figure 10 provides for tenth embodiment of the invention.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The SOA service system structural representation that Fig. 1 provides for first embodiment of the invention, as shown in Figure 1, the present embodiment SOA service system comprises: service request device 10, information cache device 20, service providing apparatus 30 and ESB 40.
As shown in Figure 1, the annexation between each device is: ESB 40 is connected with service providing apparatus 30, service request device 10 and information cache device 20 respectively.
System configuration based on shown in Fig. 1, information cache device 20 can stores service generator 30 state informations that send, the control information also can stores service generator 30 sending, also can be used for storaging state information and control information simultaneously in addition.
During with information cache device 20 storaging state information, the function of each device is as follows:
ESB 40, for receiving after the application service request of service request device 10 transmissions, sends to service providing apparatus 30 by application service request, by 30 pairs of this application service requests of service providing apparatus, is processed.Information cache device 20 receives the state information of the application service request of service providing apparatus 30 transmissions for passing through ESB 40, and the state information of application service request is saved to memory block.The state information of application service request is for representing the treatment state of service providing apparatus to application service request.Wherein, above-mentioned memory block can be cache memory section, has the functions such as inquiry, deletion information.
Particularly, ESB 40 receives after the application service request of service request device 10 transmissions, and this application service request is sent to corresponding service providing apparatus.Service providing apparatus receives the application service request that ESB forwards, and after this application service request is processed, the process state information of this application service request is sent to information cache device 20 by ESB 40.Information cache device 20 is saved to memory block by the process state information of the application service request receiving.
Information cache device 20, for receiving by ESB 40 the service state request of obtaining that service request device 10 sends, information cache device service request device sends to service request device by the process state information of application service request by ESB.
Particularly, ESB 40 receives obtaining after service state request of service request device 10 transmissions, this is obtained to service state request and send to information cache device 20, information cache device 20 is searched this service processing state information of obtaining application service request corresponding to service state request from memory block, and information cache device 20 sends to service request device by this state information by ESB.The state information of preserving in information cache device 20, accurately controls in the time of can be by ESB layout business, and information cache device also can be deleted every regular time.In addition,, for preventing information dropout after power-off, persistence conversation strategy also can be set above-mentioned state information is saved in persistence information bank.
Because state information unification is stored in information cache device, service providing apparatus, without the state information of buffer memory service, has reduced development difficulty, has improved the safety and reliability of state information simultaneously, is carried out business more flexibly.
During with information cache device 20 storing control information, the function of each device is as follows:
Information cache device 20, for receiving after service providing apparatus 30 control information that send, that the request of service request device 10 is controlled by ESB 40, preserves control information.ESB 40 for receiving the request of service request device 10 transmissions, and obtains the control information of this request from information cache device 20, and this request is controlled.
For example, service providing apparatus by the relevant control information that the request of service request device is controlled, is kept in information cache device in advance.When service request device is initiated service request by ESB, ESB obtains the control information of relevant this service request in information cache device, according to this control information, this service request (is for example controlled, according to control information, to service providing apparatus, forward this service request, or abandon this service request), thus realize ESB to the arranging service of various services and control.
For improving the access rate between ESB and information cache device, ESB 40 can for example, be sent information or receive the information from information cache device to information cache device by the interface with information cache device 20 (, couple in adapter).For example, ESB 40 sends the requests such as Query Information, insertion information, deletion information to information cache device 20, with information in visit information buffer storage 20.Correspondingly, information cache device 20 can for example,, by the interface with ESB 40 (, couple in adapter), carry out information interaction with ESB.
Embodiment of the present invention SOA service system has increased the information cache device being connected with ESB in SOA framework, and information cache device is preserved the treatment state to application service request that service providing apparatus returns.Thereby make ESB by information cache device, obtain the treatment state of application service request, offer service request device.Because service request device can reduce the access delay of service request device by service status information in ESB high-speed channel visit information buffer storage, improved the performance of system.Further, ESB also can obtain the control information that application service request is controlled from information cache device, thereby realizes the Based Intelligent Control of ESB to service.Because the information cache device being connected with ESB has memory function, realized dependence ESB and carried out the object that has state service.
The information cache apparatus structure schematic diagram that Fig. 2 provides for second embodiment of the invention.Information cache device shown in Fig. 2 can be used as the embodiment of the information cache device shown in Fig. 1.As shown in Figure 2, the information cache device that the present embodiment provides comprises: information receiving module 201 information, acquisition of information module 202 and information sending module 203 and memory module 204.
Information receiving module 201, the state information to application service request sending for receive service providing apparatus by ESB, and the state information of application service request is saved to memory module 204, and receive by ESB the service state request of obtaining that service request device sends; The state information of application service request is the treatment state of service providing apparatus to application service request; The state information of application service request comprises the service identifiers of applying for service request.
Acquisition of information module 202, the service identifiers of the application service request of carrying for the service state request of obtaining receiving according to information receiving module 201 obtains the state information of applying for service request in memory module 204.
Information sending module 203, for getting after state information in acquisition of information module 202, sends response message by ESB to service request device, and response message comprises state information and the service identifiers of applying for service request.
Memory module 204, the state information to application service request receiving for storing information receiving module 201.
Particularly, after the application service request that information receiving module 201 sends service request device at service providing apparatus is processed, by ESB, receive the state information of the application service request of service providing apparatus transmission, and the state information of application service request is saved to memory module 204.
Information receiving module 201 by ESB, receive that service request device sends obtain service state request time, acquisition of information module 202 is according to the service identifiers that obtains the above-mentioned application service request of carrying in service state request, the state information of the above-mentioned application service request that obtaining information receiver module 201 receives in memory module 204.When information sending module 203 is obtained the state information of application service request in acquisition of information module 202, by ESB, to service request device, send response message, response message comprises state information and the service identifiers of the application service request that acquisition of information module 202 gets from memory module 204 Shens.
For realizing ESB, according to the Service controll strategy of service providing apparatus, related service is carried out to Based Intelligent Control, information receiving module 201, be further used for receiving service providing apparatus control information that send, that the request of service request device is controlled by ESB, and control information is saved in memory module 204, so that ESB obtains after control information, according to control information, the request of service request device is controlled.
Information receiving module 201, further also for receiving at ESB after the application service request that service request device sends, receive that ESB sends for obtaining the control information request of obtaining to the control information of described application service request; Obtain control information request and comprise the service identifiers of applying for service request.
Information sending module 203, be further used for according to the service identifiers of described application service request described preservation module inquire to application service request control information time, to ESB, send the control information to application service request, so that ESB is controlled application service request according to control information.
Further, memory module 204, the control information also receiving for storing information receiving module 201.
Particularly, service providing apparatus sends to ESB by the control information that the request of service request device is controlled, and information receiving module 201 passes through ESB receiving control information, and control information is saved to memory module 204.Information receiving module 201 receives at ESB after the application service request of service request device transmission, receives the control information request of obtaining that ESB sends.Information sending module 203 receives and obtains after control information request at information receiving module 201, according to application service request service identifiers memory module 204 inquire to application service request control information time, to ESB, send the control information to application service request, so that ESB is controlled application service request according to control information.
For improving access rate, above-mentioned memory module 204 can be cache memory section.As shown in Figure 3, for improving the reliability of service system, memory module 204 comprises cache memory section, persistence information bank and persistence preservation module, and the information receiving from ESB is directly saved to cache memory section.Persistence is preserved module for according to persistence conversation strategy, and the information in cache memory section is saved to persistence information bank, with can drop-out after system cut-off.
The present embodiment information cache device receives the state information of the relevant application service request of service providing apparatus transmission by ESB.Service request device is obtained after service state request sending, ESB can directly get the state information of application service request from information cache device, thereby service providing apparatus, without the state information of preserving application service request, has alleviated the load of service providing apparatus.Because service request device is by service status information in ESB high-speed channel visit information buffer storage, reduced the access delay of service request device, improved the performance of system, for carrying out, dependence ESB have state service that condition is provided simultaneously.Further, ESB also can obtain the control information that the request of service request device is controlled from information cache device, thereby service request device is carried out to Based Intelligent Control.
The ESB structural representation that Fig. 4 provides for fourth embodiment of the invention, ESB shown in Fig. 4 can be used as the embodiment of ESB shown in Fig. 1.As shown in Figure 4, the present embodiment comprises: service request adaptation module 401, service provide adaptation module 402 and information cache adaptation module 403.
Service request adaptation module 401, the application service request sending for receiving service request device, and application service request is sent to service providing apparatus; The service state request of obtaining also sending for receiving service request device.
Service provides adaptation module 402, after application service request being processed at service providing apparatus, receives the state information of the application service request of service providing apparatus transmission.
Information cache adaptation module 403, sends to information cache device for the state information that provides adaptation module 402 to receive service; The service identifiers of the application service request of carrying in information cache device basis is obtained service state request, get after the state information of application service request, receive the service state response message that information cache device sends, service state response message comprises the state information of applying for service request.
ESB is undertaken alternately by service request adaptation module 401 and service request device, receives the application service request of service request device transmission and obtains service state request.ESB provides adaptation module 402 and service providing apparatus to carry out alternately by service, receives the state information of the application service request that service providing apparatus send.ESB is undertaken alternately by information cache adaptation module 403 and information cache device, and to the transmission of information cache device applies for the state information of service request, and receives the service state response message that information cache device sends.
For realizing ESB, according to the Service controll strategy of service providing apparatus, related service is carried out to Based Intelligent Control, as shown in Figure 5, on the corresponding scheme of Fig. 4 basis, the present embodiment also comprises: application service request control module 404.
Service provides adaptation module 402, the control information of also controlling for receiving service providing apparatus application service request that send, that service request adaptation module 401 is received.
Information cache adaptation module 403, also for the control information that provides adaptation module 402 to receive service, send to information cache device, also for sending to information cache device the control information request of obtaining, and at information cache device when obtaining control information requesting query to control information to application service request, receive the control information to application service request that information cache device sends.Wherein, obtain control information request for obtaining the control information to application service request, obtain control information request and comprise the service identifiers of applying for service request;
Application service request control module 404, for according to the control information to application service request of information cache adaptation module 403 buffer memorys, controls application service request.
Particularly, service provides adaptation module 402 to receive after control information that service providing apparatus sends, that application service request is controlled, and control information is sent to information cache device.Service request adaptation module 401, after receiving the application service request of service request device transmission, sends to information cache device the control information request of obtaining.Application service request control module 404 sends and obtains after control information request to information cache device in service request adaptation module 401, information cache device according to application service request service identifiers inquire to application service request control information time, receive the control information to application service request that information cache device sends, and according to control information, application service request is controlled.
The present embodiment ESB, the application service request that service request device is sent sends to service providing apparatus, and the state information of this application service request of service providing apparatus transmission is transmitted to information cache device, by information cache device, preserve service status information.Further, the control information that ESB also sends service providing apparatus is transmitted to information cache device, therefore, the state information that ESB can directly obtain relevant application service request from information cache device sends to service request device, can also be after receiving the request of service request device transmission, according to the control information of obtaining in information cache device, the request of service request device is controlled.Thereby the present embodiment has improved the access delay of service request device, alleviated the load of service providing apparatus, for carrying out, dependence ESB have state service that condition is provided.
The method flow diagram that information on services is provided that Fig. 6 provides for sixth embodiment of the invention.The executive agent of the present embodiment can be the information cache device shown in Fig. 1 or Fig. 2, from information cache design factors, to the embodiment of the present invention, provides the technical scheme of the method for information on services to describe.As shown in Figure 6, the present embodiment comprises:
Step 61: service request device is sent after the processing of application service request at service providing apparatus, receive and preserve the state information of the application service request of service providing apparatus transmission by ESB;
Wherein, the state information of application service request represents the treatment state of service providing apparatus to application service request, and the state information of application service request comprises the service identifiers of applying for service request.
ESB receives after the application service request (application service request represents that service request device request service generator provides service) that service request device sends, by this application service request route to service providing apparatus.It is pointed out that when the application service request that service request device is sent sends to service providing apparatus, ESB also can send to information cache device by application service request, makes information cache device preserve this application service request.Subsequent service request device is sent and is obtained after service state request by ESB, and when service providing apparatus does not return to treatment state, information cache device returns to the intermediateness information of this application service request to service request device.
After service providing apparatus is processed this application service request, by the treatment state of this application service request, the state information of this application service request, sends to ESB, by ESB, issues information cache device.Information cache device is preserved the state information that receives this application service request by ESB, so that service request device is obtained by ESB.
Step 62: receive by ESB the service state request of obtaining that service request device sends, according to the service identifiers that obtains the application service request of carrying in service state request, obtain the state information of the application service request of preservation;
Wherein, obtain service state request for obtaining the treatment state of service providing apparatus to application service request.
Service request device sends after application service request, to ESB, sends the service state request of obtaining.By ESB, be transmitted to information cache device.Information cache device receives and obtains after service state request, and the service identifiers that obtains the application service request of carrying in service state request according to this is inquired about service status information corresponding to this application service request in memory block.If find the state information of this application service request, expression service providing apparatus was processed this application service request device, if do not found, showed that service providing apparatus does not also return to the treatment state of this application service request.
Step 63: send the response message that comprises the state information of applying for service request by ESB to service request device.
Information cache device gets after the state information of application service request from memory block, by ESB, to service request device, returns to response message, includes the state information of application service request in response message.Service request device, according to the service identifiers of application service request, can be known the corresponding application service request of service status information in response message.In addition, when not getting the state information of application service request, also can return to service request device the intermediateness information of this application service request.
For realizing ESB, according to the Service controll strategy of service providing apparatus, related service is carried out to Based Intelligent Control, on such scheme basis, also comprise: by ESB, receive and preserve control information that service providing apparatus sends, that application service request is controlled.According to above scheme.ESB, after receiving the application service request of service request device transmission, obtains the relevant control information of this application service request from information cache device, according to this control information, application service request is carried out to Based Intelligent Control.
For improving the reliability of service system, on such scheme basis, also comprise: provide information on services device also can information be saved to persistence information bank according to persistence conversation strategy, with can drop-out after system cut-off.
The present embodiment provides the method for information on services, and information cache device receives the state information of the relevant application service request of service providing apparatus transmission by ESB.Service request device is obtained after service state request sending, ESB can directly get the state information of application service request from information cache device, thereby service providing apparatus, without the state information of preserving application service request, has alleviated the load of service providing apparatus.Because service request device is by service status information in ESB high-speed channel visit information buffer storage, reduced the access delay of service request device, improved the performance of system, for carrying out, dependence ESB have state service that condition is provided simultaneously.Further, ESB also can obtain the control information that the request of service request device is controlled from information cache device, thereby service request device is carried out to Based Intelligent Control.
The method flow diagram that information on services is provided that Fig. 7 provides for seventh embodiment of the invention, as shown in Figure 7, the present embodiment comprises:
Step 1a: service request device sends application service request by ESB to service providing apparatus.
Application service request comprises the service identifiers of this application service request.
Step 2a:ESB deposits application service request in information cache device.
Step 3a:ESB routes to service providing apparatus by this application service request and carries out service processing.
Step 4a: service request device sends the service state request of obtaining of the service identifiers that carries application service request by ESB.
Step 5a:ESB will obtain service state request and be transmitted to information cache device.
Step 6a: service providing apparatus sends to ESB by the state information of this application service request.
Service providing apparatus processing finishes, and the state information of this application service request is sent to ESB.In the state information of the application service request that service providing apparatus returns, include the service identifiers of this application service request.
Step 7a:ESB sends to information cache device by the state information of this application service request.
Step 8a: information cache device gets after the state information of this application service request, to the state information of ESB transmission this application service request.
If service providing apparatus has sent once above state information with regard to same application service request, information cache device, after receiving the state information of this application service request, upgrades the state information of existing this application service request in memory block.
Information cache device, in memory block, according to obtaining the service identifiers of applying for service request in service state request, obtains the state information of this application service request, and to ESB, returns to the state information of this application service request.
Step 9a:ESB sends the state information of this application service request to service request device.
The present embodiment provides the method for information on services, and information cache device receives the state information of the relevant application service request of service providing apparatus transmission by ESB.Service request device is obtained after service state request sending, ESB can directly get the state information of application service request from information cache device, thereby service providing apparatus, without the state information of preserving application service request, has alleviated the load of service providing apparatus.Because service request device is by service status information in ESB high-speed channel visit information buffer storage, reduced the access delay of service request device, improved the performance of system.
The method flow diagram that information on services is provided that Fig. 8 A provides for eighth embodiment of the invention, the applied service system structural representation of the method that information on services is provided that Fig. 8 B provides for eighth embodiment of the invention.It is example that the present embodiment be take the service of note weather forecast message, to providing the method for information on services to describe.SOA service system shown in Fig. 8 B comprises: application services gateway (Application Service Gateway is called for short ASG), ESB and terminal and information cache device.
Wherein, ASG completes access, authentication and the SLA inspection etc. of third party's application, and ASG applies open ParlayX2.1 interface (or Web Service interface of SDP expansion) to third party.Terminal is user's exhibiting product, and the operations such as door order are provided.The layout of ESB finishing service, message route distribution and protocol conversion.
Wherein, ESB respectively with ASG, information cache device and terminal interaction.Between ESB and ASG, adopt the Web Service interface of ParlayX 2.1 interfaces or SDP expansion; Interface between ESB and information cache device adopts RMI expansion interface.
Note sendSMS interface at ASG by parlayX2.1 send message to ASG after, ASG can obtain by getSmsDeliveryStatus message the state information of the service of sending SMS message from information cache device, and now state information is kept in the information cache device being connected with ESB.
In the scene of the present embodiment, ASG is service request device, and terminal is service providing apparatus.
As shown in Figure 8 A, the present embodiment comprises:
Step 1b:ASG issues weather forecast message by ESB to terminal.
Step 2b:ESB deposits weather forecast message in information cache device.
Step 3b:ESB is transmitted to terminal by weather forecast message.
Step 4b:ASG inquires about weather forecast message by ESB and sends state.
ASG sends state by getSmsDeliveryStatus information query weather forecast message.
Step 5b:ESB sends to information cache device the request that inquiry weather forecast message sends state.
Step 6b:ESB receives the weather forecast message receipt that terminal sends.
Step 7b:ESB is saved to weather forecast message receipt in information cache device.
Step 8b: information cache device inquires after this weather forecast message receipt in memory block, to the weather forecast message receipt of ESB transmitting terminal.
The inquiry weather forecast message that information cache device sends according to ESB sends the request of state, inquires this weather forecast message and send state in memory block.
Step 9b:ESB returns to the weather forecast message receipt of terminal to ASG.
The present embodiment provides the method for information on services, ASG sends weather forecast message by ESB to terminal, terminal receives weather forecast message breath and sends weather forecast message state receipt, the weather forecast message state receipt that information cache device sends by ESB receiving terminal to ESB.ASG is after sending inquiry weather forecast message transmission state, and ESB inquires the state information of weather forecast message from information cache device, thereby terminal is without preserving weather forecast message state receipt.Because ASG is by weather forecast message state receipt in ESB high-speed channel visit information buffer storage, reduced ASG access delay, improved the performance of system.
The method flow diagram that information on services is provided that Fig. 9 provides for ninth embodiment of the invention.The present embodiment is mainly described the embodiment of the present invention and provides the reception of relevant controlling information and the technical scheme of use in the method for information on services.As shown in Figure 9, the present embodiment comprises:
Step 1c: service providing apparatus sends to ESB by control information.
The control information that service providing apparatus is controlled the request of service request device, comprises the control information that application service request is controlled, and also can comprise the control information of controlling obtaining service state request.
Step 2c:ESB deposits this control information in information cache device.
Step 3c: service request device is initiated application service request 1.
Step 4c:ESB is according to preserving control information in the service identifiers Query Information buffer storage of application service request 1.
ESB is according to the service identifiers of application service request 1, whether searches the control information relevant for application service request 1 in memory block.
The control information that step 5c:ESB obtaining information buffer storage sends, according to this control information, determines and abandons application service request 1.
If ESB inquires the control information relevant for application service request 1 in information cache device, according to this control information, determine the processing mode to application service request 1.If ESB does not find the control information of relevant application service request 1, according to normal mode, process application service request 1.
Step 6c: service request device is initiated application service request 2.
Step 7c:ESB is according to the control information of preserving in the service identifiers Query Information buffer storage of application service request 2.
ESB is according to the service identifiers of application service request 2, whether searches the control information relevant for application service request 2 in memory block.
The control information that step 8c:ESB obtaining information buffer storage sends, according to this control information, determines and forwards this application service request 2.
Step 9c:ESB is transmitted to service providing apparatus by application service request 2.
The present embodiment provides the method for information on services, and information cache device receives the control information of the application service request of service providing apparatus transmission by ESB.When service request device sends application service request, ESB obtains the control information of application service request from information cache device, this application service request is controlled, thereby realized the Based Intelligent Control of ESB to service.
The method flow diagram that information on services is provided that Figure 10 provides for tenth embodiment of the invention, the present embodiment is example with service " ASG requires ESB to report the up note of specific access code; abandon the up note of other access code ", to providing the method for information on services to describe.In the scene of the present embodiment, ASG is service providing apparatus, and terminal is service request device.As shown in figure 10, the present embodiment comprises:
Step 1d:ASG sends to ESB by control information " reporting access code is 6666 up note, abandons access code and be 5555 up note ".
Step 2d:ESB deposits this control information in information cache device.
Step 3d: terminal adopts access code 5555 to order weather forecast message by ESB on ASG.
Whether the control information of preserving in step 4d:ESB Query Information buffer storage comprises the control information of " the up note that access code is 5555 ".
" abandon access code and be 5555 up letter short " control information that step 5d:ESB obtaining information buffer storage sends, according to this control information, abandons the order weather forecast message that terminal adopts access code 5555 to send.
ESB inquires the control information of " the up note that to report containing access code be 6666 abandons the up note of access code 5555 " in information cache device.Because above-mentioned control information shows " abandoning the up note of access code 5555 ", therefore the order weather forecast message that adopts access code 5555 to send is not sent to ASG.
Step 6d: terminal adopts access code 6666 to order weather forecast message by ESB on ASG.
In step 7d:ESB Query Information buffer storage, whether preserve " the up note that access code is 6666 " control information.
" reporting access code is 6666 up note " control information that step 8d:ESB obtaining information buffer storage sends.
Step 9d: according to the control information of obtaining, the order weather forecast message that ESB adopts access code 6666 to send to ASG reporting terminal.
The present embodiment provides the method for information on services, and information cache device receives by ESB the control information to up note that ASG sends.When terminal sends the up note that access code is 6666, ESB obtains the control information of up note from information cache device, according to this control information, determines that access code is that 6666 up note need report to ASG, reports this up short message to ASG.During the up note that is 5555 containing access code in terminal transmission, ESB gets the control information of " abandon access code and be 5555 up letter short " from information cache device, determine that access code is that 5555 up note does not need to report to ASG, abandons this up short message.Thereby, realized ESB and service carried out to the object of Based Intelligent Control according to control information in information cache device.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (4)

1. a service-oriented architecture service system, is characterized in that, comprising: ESB, service providing apparatus, information cache device and service request device;
Described ESB is connected with described service request device with described service providing apparatus respectively, for receiving after the application service request of described service request device transmission, described application service request is sent to described service providing apparatus;
Described ESB is also connected with described information cache device, and described information cache device, for being received and preserved the state information of the described application service request of described service providing apparatus transmission by described ESB; The state information of described application service request is for representing the treatment state of described service providing apparatus to described application service request;
Described information cache device, also for by described ESB, receive that described service request device sends for obtaining the service state request of obtaining of the state information of described application service request, according to described, obtain service state request, the state information of described application service request is sent to described service request device by described ESB;
Described information cache device comprises: information receiving module, acquisition of information module, information sending module and memory module;
Described information receiving module, the state information to application service request sending for receive service providing apparatus by ESB, and the state information of application service request is saved to memory module, and receive by ESB the service state request of obtaining that service request device sends; The state information of application service request is the treatment state of service providing apparatus to application service request; The state information of application service request comprises the service identifiers of applying for service request;
Described acquisition of information module, the service identifiers of the application service request of carrying for the service state request of obtaining receiving according to described information receiving module obtains the state information of applying for service request in described memory module;
Described information sending module, for getting after state information in described acquisition of information module, sends response message by described ESB to described service request device, and described response message comprises state information and the service identifiers of applying for service request;
Described memory module, the state information to application service request receiving for storing described information receiving module;
Described information receiving module, also for receive the control information that send, that the request of described service request device is controlled of described service providing apparatus by described ESB, and is saved to described memory module by described control information;
Described memory module, the control information also receiving for storing described information receiving module;
Described information receiving module, also for receiving at described ESB after the application service request that described service request device sends, receive that described ESB sends for obtaining the control information request of obtaining to the control information of described application service request; Describedly obtain the service identifiers that control information request comprises described application service request;
Described information sending module, also for the service identifiers of the described application service request that receives according to described information receiving module, when described memory module inquires the control information to described application service request, to described ESB, send the control information to described application service request;
Described ESB also, for according to the described control information of obtaining from described information cache device, is controlled the request of described service request device.
2. an information cache device, is characterized in that, comprising: information receiving module, acquisition of information module, information sending module and memory module;
Described information receiving module, the state information to application service request sending for receive service providing apparatus by ESB, and the state information of application service request is saved to memory module, and receive by ESB the service state request of obtaining that service request device sends; The state information of application service request is the treatment state of service providing apparatus to application service request; The state information of application service request comprises the service identifiers of applying for service request;
Described acquisition of information module, the service identifiers of the application service request of carrying for the service state request of obtaining receiving according to described information receiving module obtains the state information of applying for service request in described memory module;
Described information sending module, for getting after state information in described acquisition of information module, sends response message by described ESB to described service request device, and described response message comprises state information and the service identifiers of applying for service request;
Described memory module, the state information to application service request receiving for storing described information receiving module;
Described information receiving module, also for receive the control information that send, that the request of described service request device is controlled of described service providing apparatus by described ESB, and is saved to described memory module by described control information;
Described memory module, the control information also receiving for storing described information receiving module;
Described information receiving module, also for receiving at described ESB after the application service request that described service request device sends, receive that described ESB sends for obtaining the control information request of obtaining to the control information of described application service request; Describedly obtain the service identifiers that control information request comprises described application service request;
Described information sending module, also for the service identifiers of the described application service request that receives according to described information receiving module, when described memory module inquires the control information to described application service request, to described ESB, send the control information to described application service request.
3. an ESB, is characterized in that, comprising: service request adaptation module, service provide adaptation module and information cache adaptation module;
Described service request adaptation module, the application service request sending for receiving service request device, and described application service request is sent to service providing apparatus, the service state request of obtaining also sending for receiving described service request device;
Described service provides adaptation module, after described application service request being processed at described service providing apparatus, receives the state information of the described application service request of described service providing apparatus transmission; The state information of described application service request comprises the service identifiers of applying for service request;
Described information cache adaptation module, for providing described service the state information that adaptation module receives to send to information cache device; The service identifiers of the described application service request of carrying in obtaining service state request described in described information cache device basis, get after the state information of described application service request, receive the service state response message that described information cache device sends, described service state response message comprises the state information of described application service request; Described service provides adaptation module, the control information of also controlling for receiving described service providing apparatus application service request that send, that described service request adaptation module is received;
Described information cache adaptation module, also for described service being provided the described control information that adaptation module receives send to described information cache device, also for sending and obtain control information request to described information cache device, and receive the control information to described application service request that described information cache device sends;
Described ESB also comprises: application service request control module, for according to the control information to described application service request of described information cache adaptation module buffer memory, described application service request is controlled.
4. the method that information on services is provided, is characterized in that, comprising:
At service providing apparatus, service request device is sent after the processing of application service request, by ESB, receive and preserve the state information of the described application service request of described service providing apparatus transmission; The state information of described application service request represents the treatment state of described service providing apparatus to described application service request; The state information of described application service request comprises the service identifiers of applying for service request;
By described ESB, receive the service state request of obtaining that described service request device sends, according to the described service identifiers that obtains the application service request of carrying in service state request, obtain the state information of the application service request of described preservation;
By described ESB, to described service request device, send the response message of the state information that comprises described application service request;
By described ESB, receive and preserve the control information that send, that the request of described service request device is controlled of described service providing apparatus;
At described ESB, receive after the application service request that described service request device sends, receive that described ESB sends for obtaining the control information request of obtaining to the control information of described application service request; Describedly obtain the service identifiers that control information request comprises described application service request;
The service identifiers of the described application service request receiving according to described information receiving module, when memory module inquires the control information to described application service request, to described ESB, send the control information to described application service request, so that described ESB is controlled described application service request.
CN201010243893.4A 2010-07-29 2010-07-29 Method, device and service system providing service information Active CN102143195B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010243893.4A CN102143195B (en) 2010-07-29 2010-07-29 Method, device and service system providing service information
PCT/CN2011/073359 WO2011140914A1 (en) 2010-07-29 2011-04-27 Method, device and service system for providing service information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010243893.4A CN102143195B (en) 2010-07-29 2010-07-29 Method, device and service system providing service information

Publications (2)

Publication Number Publication Date
CN102143195A CN102143195A (en) 2011-08-03
CN102143195B true CN102143195B (en) 2014-12-03

Family

ID=44410416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010243893.4A Active CN102143195B (en) 2010-07-29 2010-07-29 Method, device and service system providing service information

Country Status (2)

Country Link
CN (1) CN102143195B (en)
WO (1) WO2011140914A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647319A (en) * 2012-03-27 2012-08-22 许继集团有限公司 Application service system for monitoring power charging-exchanging station and interprocess communication method
GB2501513A (en) 2012-04-26 2013-10-30 Ibm Message handling in an enterprise service bus
CN103595695A (en) * 2012-08-15 2014-02-19 深圳中兴网信科技有限公司 Method and system for providing services by service bus
CN103067272A (en) * 2012-12-30 2013-04-24 山东中创软件工程股份有限公司 Guarantee method and system of message router
CN103116627B (en) * 2013-01-31 2016-05-18 汉柏科技有限公司 A kind of method and system of high concurrent SOA technology access database
US9755889B2 (en) 2013-02-13 2017-09-05 International Business Machines Corporation Service failover and failback using enterprise service bus
CN103312560A (en) * 2013-05-24 2013-09-18 广东电网公司电力科学研究院 Integrated test method and test system for general service bus of master station of power grid
CN106953896B (en) * 2017-02-21 2020-05-01 深圳市智物联网络有限公司 Data transmission method of adapter and adapter

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207542A (en) * 2007-12-12 2008-06-25 江苏省电力公司 Method for immediate addressing of multilevel service bus service invocation under SOA frame construction

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005114488A2 (en) * 2004-05-21 2005-12-01 Computer Associates Think, Inc. System and method for actively managing service-oriented architecture
US20070192706A1 (en) * 2006-02-14 2007-08-16 International Business Machines Corporation Service gateway for providing a scalable and loosely coupled service oriented architecture
US10019296B2 (en) * 2007-05-31 2018-07-10 Red Hat, Inc. Addressable dispatchers in distributed computing
US9021083B2 (en) * 2008-11-26 2015-04-28 Red Hat, Inc. Service oriented architecture with dynamic policy enforcement points

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207542A (en) * 2007-12-12 2008-06-25 江苏省电力公司 Method for immediate addressing of multilevel service bus service invocation under SOA frame construction

Also Published As

Publication number Publication date
CN102143195A (en) 2011-08-03
WO2011140914A1 (en) 2011-11-17

Similar Documents

Publication Publication Date Title
CN102143195B (en) Method, device and service system providing service information
CN103188574B (en) method and system for transmitting network video
CN106021315B (en) Log management method and system for application program
CN103873578A (en) Method for sending and sharing contents between terminals and corresponding terminals
CN101159580B (en) Content P2P method and system in content distribution network
CN101873475B (en) Control command sending method, data transmission method, monitoring system and device
CN110248355A (en) Code number management method, equipment, platform and system based on internet of things equipment eUICC card
CN106506715A (en) Domain name analytic method and device
CN106254468B (en) A kind of control system and method for intelligent back vision mirror
CN103546771B (en) A kind of TV programme comment processing method and system based on intelligent terminal
CN102158518B (en) Data transmission method in content distribution network (CDN), network node and system
CN100385973C (en) Business information processing system and method
GB2438743A (en) User Interfaces for Electronic Devices
CN105516086A (en) Service processing method and apparatus
CN102740466B (en) The method in Internet of Things, resource operated and device
CN101202958B (en) Method, device and system of telecommunication service information processing
CN110351270A (en) A kind of method and system improving concurrent data treatment effeciency
JP2013504797A (en) System, method, and computer program for management of public BOT in private network (public BOT management in private network)
CN101656947B (en) Establishing method, device and system of cross-heterogeneous-network service sharing
CN104980474A (en) Device and method for realizing mobile handling of documents
CN102523236B (en) Method and equipment for establishing dynamic connection
CN114615096B (en) Event-driven architecture-based telecommunication charging method, system and related equipment
CN101873727B (en) Terminal state updating method of terminal management system and terminal management system
CN110417876A (en) Node server and main control device in session method, distributed system
CN101047691B (en) Method for integral controlling subscribe

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210816

Address after: 215010 room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu

Patentee after: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

Effective date of registration: 20210816

Address after: 226000 Room 101, building 3, New Era Commercial Plaza, development zone, Nantong City, Jiangsu Province

Patentee after: Nantong Liufa Information Technology Co.,Ltd.

Address before: 215010 room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu

Patentee before: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211207

Address after: Room 713, building a, sunshine tower, 533 Gongnong Road, Chongchuan District, Nantong City, Jiangsu Province, 226000

Patentee after: Micro Kung Fu information technology Nantong Co.,Ltd.

Address before: 226000 Room 101, building 3, New Era Commercial Plaza, development zone, Nantong City, Jiangsu Province

Patentee before: Nantong Liufa Information Technology Co.,Ltd.

TR01 Transfer of patent right