CN102724216B - Service request access method and centre server - Google Patents
Service request access method and centre server Download PDFInfo
- Publication number
- CN102724216B CN102724216B CN201210233693.XA CN201210233693A CN102724216B CN 102724216 B CN102724216 B CN 102724216B CN 201210233693 A CN201210233693 A CN 201210233693A CN 102724216 B CN102724216 B CN 102724216B
- Authority
- CN
- China
- Prior art keywords
- indications
- service
- service request
- soap message
- message header
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 239000000344 soap Substances 0.000 claims abstract description 76
- 238000005516 engineering process Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000012466 permeate Substances 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a service request access method. The service request access method comprises the following steps: receiving service request carrying a Simple Object Access Protocol (soap) message header; acquiring an identifier in the soap message header and determining the identifier is correct or not; searching a database according to the identifier of the soap message header when the identifier is determined correctly and finding a server address corresponding to the identifier of the soap message header; sending the soap information to the server address, receiving the result information returned by the server address, and returning the result information to a requestor; and abandoning the request and determining the requires is invalid when the identifier is determined wrong. According to the service request access method provided by the invention, the uniform access and the safe handling of each service request are achieved.
Description
Technical field
The present invention relates to field of network communication safety, more particularly, relate to method and the central server of a kind of service request access.
Background technology
Current network application is in the every aspect of daily life, and in today that Information technology develops rapidly, network has become the important Information Communication instrument in the whole world.According to incompletely statistics, network is now throughout 186 countries, and nearly 1,000,000 information sources are the space that netizen all over the world provides the interchange of bulk information resource and shares altogether.The application of information is also from original military affairs, science and technology, culture and commercial permeate to the every field of society.
Traditional network service request access needs requestor to record each address of service, when requestor needs to access some addresss of service, in address field, specifically can only input address of service send service request, after server receives service request, result is returned to requestor by request process again, like this, service request needs to ask one by one, process one by one, and inefficiency, holding time are long.
Further, server directly processes the service request from requestor, when service request is unreliable, the processing procedure of server can be made to there is potential safety hazard.
Summary of the invention
In view of this, the invention provides the method for a kind of service request access, to realize accessing and safe handling the unified of each service request.
A kind of service request cut-in method, comprising:
Receive the service request carrying Simple Object Access Protocol soap message header, be pre-stored with indications in described soap message header, described indications is corresponding with service request;
Obtain the indications in described soap message header, judge that whether described indications is correct, if correctly, then according to the indications search database in described soap message header, find the address of service corresponding with the indications in described soap message header;
Send described soap message to described address of service, receive the object information that described address of service returns, and object information is returned to requestor.
Preferably, described service request is the service request of http form.
Preferably, after the indications in described acquisition soap message header, judge whether described indications is correctly specially:
Decipher described indications, described indications is the indications of encrypting in advance.
Preferably, described indications is the indications adopting the encryption of md5 encryption method.
Preferably, the described identifier of described deciphering, judge that described indications is whether correct, be specially:
Verify whether described md5 encryption method meets predetermined format.
A kind of central server, comprising:
First receiving element, for receiving the service request carrying Simple Object Access Protocol soap message header, be pre-stored with indications in described soap message header, described indications is corresponding with service request;
The acquiring unit be connected with the first receiving element, for obtaining the indications in described soap message header;
Be connected with acquiring unit, for judging the judging unit whether described indications correct;
Be connected with judging unit, for when described indications is correct, according to the indications search database in described soap message header, find the search unit of the address of service corresponding with the indications in described soap message header;
Be connected with search unit, for sending described soap message to the first transmitting element of described address of service;
Be connected with the first transmitting element, for receiving the second receiving element of the object information that described address of service returns;
That be connected with the second receiving element, return to requestor for sending object information the second transmitting element.
Preferably, described central server also comprises: the http service-creation unit be connected with the first receiving element, for resolving the Xbean file of described central server configuration, obtains the configuration information in described Xbean file, according to described configuration information, create http service.
Preferably, the operation interface of the http service-creation unit of described central server is UI user interface.
Preferably, in described UI user interface, simple object access protocol message version can be set to 1.1.
Preferably, described UI user interface is verified the fail safe mode of request can be set to none.
Preferably, the coded system in described UI user interface in advanced configuration can be set to can be exchanged into character string.
Preferably, the output message maximum character length in described UI user interface in advanced configuration is set to 1024 characters.
Preferably, in described UI user interface, in advanced configuration, time-out time is set to 600 seconds.
As can be seen from above-mentioned technical scheme, the invention provides the method for a kind of service request access, receive the service request carrying Simple Object Access Protocol soap message header, indications is pre-stored with in soap message header, and indications is corresponding with service request, after obtaining the indications in message header, according to the indications search database in soap message header, find the address of service corresponding with the indications in soap message header, and concrete address of service need not be input in address field one by one, go for one by one to ask and obtain return information.Meanwhile, only need unify to obtain the indications in each service request information head, just can search address of service corresponding in database according to indications, and each service request need not be processed one by one, just can obtain the object information returned.Therefore, solve the problem that inefficiency holding time is long, achieve the object of each service request of unified access.
In addition, after obtaining the indications in message header, to judge the correctness of indications, if indications is correct, just according to the indications search database in described soap message header, find the address of service corresponding with the indications in soap message header, so just ensure that the fail safe of each service request, and then the security hidden trouble of server process process is eliminated.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram of serving unified access disclosed in the embodiment of the present invention;
Fig. 2 is a kind of central server structured flowchart disclosed in the embodiment of the present invention;
Fig. 3 is another kind of central server structured flowchart disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses the method for a kind of service request access, to realize accessing and safe handling the unified of each service request.
A method for service request access, as shown in Figure 1, comprises the following steps:
S101, receive and carry the service request of Simple Object Access Protocol soap message header;
Wherein, be pre-stored with indications in described soap message header, described indications is corresponding with service request;
S102, the indications obtained in soap message header;
S103, judge that whether indications is correct;
When judging that indications is correct, performing step S104, according to the indications search database in soap message header, finding the address of service corresponding with the indications in soap message header;
S105, transmission soap message, to address of service, receive the object information that address of service returns, and object information are returned to requestor;
When judging that indications is incorrect, performing step S106, abandoning this request, this time request is invalid.
In the method for a kind of service request access that the embodiment of the present invention provides, receive the service request carrying Simple Object Access Protocol soap message header, after obtaining the indications in message header, according to the indications search database in soap message header, find the address of service corresponding with the indications in soap message header, and concrete address of service need not be input in address field one by one, go for one by one to ask and obtain return information.Meanwhile, only need unify to obtain the indications in each service request information head, just can search address of service corresponding in database according to indications, and each service request need not be processed one by one, just can obtain the object information returned.Therefore, solve the problem that inefficiency holding time is long, achieve the object of each service request of unified access.
In addition, after obtaining the indications in message header, to judge the correctness of indications, if indications is correct, just according to the indications search database in described soap message header, find the address of service corresponding with the indications in soap message header, so just ensure that the fail safe of each service request, and then the security hidden trouble of server process process is eliminated.
In real network application process, the service request of user is the service request of http form, also can be set to the service request of https form simultaneously.Here for the service request of http form, after user sends the service request of http form, receive the service request carrying Simple Object Access Protocol soap message header, then the indications in described soap message header is obtained, judge that whether described indications is correct, if correct, then according to the indications search database in described soap message header, find the address of service corresponding with the indications in described soap message header.
In the above-described embodiments, in order to the fail safe of Deterministic service request, indications in soap message header is encrypted in advance, the method of concrete encryption, adopt md5 encryption method or other encryption methods indications to be encrypted in advance, afterwards, start to receive the service request carrying Simple Object Access Protocol soap message header, after obtaining the indications in described soap message header, need judge that whether indications is correct, concrete determination methods is this indications of deciphering, in time adopting the encryption of md5 encryption method, need whether meet predetermined form by program verification md5 encryption method, if meet predetermined form, then indications can be deciphered by program automatically, again according to the indications search database in the soap message header after deciphering, find the address of service corresponding with the indications in soap message header, so just, ensure that the fail safe of each service request, the security hidden trouble of server process process is eliminated.
The embodiment of the invention also discloses a kind of central server, to realize accessing and safe handling the unified of each service request.
Described central server, as shown in Figure 2, comprising:
First receiving element 101, for receiving the service request carrying Simple Object Access Protocol soap message header, be pre-stored with indications in soap message header, indications is corresponding with service request;
The acquiring unit 102 be connected with the first receiving element 101, for obtaining the indications in soap message header;
That be connected with acquiring unit 102, for judging that whether indications is correct judging unit 103;
Be connected with judging unit 103, for when indications is correct, according to the indications search database in soap message header, find the search unit 104 of the address of service corresponding with the indications in soap message header;
Be connected with search unit 104, for sending described soap message to the first transmitting element 105 of described address of service;
Be connected with the first transmitting element 105, for receiving the second receiving element 106 of the object information that described address of service returns;
That be connected with the second receiving element 106, return to requestor for sending object information the second transmitting element 107.
A kind of central server that the embodiment of the present invention provides, first receiving element 101 need receive the service request carrying Simple Object Access Protocol soap message header, and without the need to user, concrete address of service is input in address field one by one, go for one by one to ask and obtain return information.Simultaneously, acquiring unit 102 need be unified to obtain the indications in soap message header, search unit 104 just can search database according to the indications in soap message header, find the address of service corresponding with the indications in soap message header, and each service request need not be processed one by one, just can obtain the object information returned, therefore, solve the problem that inefficiency holding time is long, achieve the object of each service request of unified access.
In addition, after the indications that acquiring unit 102 obtains in soap message header, judging unit 103 judges that whether indications is correct, if indications is correct, just continue search database, therefore, ensure that the fail safe of each service request, and then the security hidden trouble of server process process is eliminated.
In central server a kind of disclosed in above-described embodiment, if judging unit 103 judges that indications is incorrect, then central server can abandon this request automatically, and this time request is invalid.
The embodiment of the invention also discloses a kind of central server, as shown in Figure 3, except comprising:
First receiving element 101, for receiving the service request carrying Simple Object Access Protocol soap message header, be pre-stored with indications in soap message header, indications is corresponding with service request;
The acquiring unit 102 be connected with the first receiving element 101, for obtaining the indications in soap message header;
That be connected with acquiring unit 102, for judging that whether indications is correct judging unit 103;
Be connected with judging unit 103, for when indications is correct, according to the indications search database in soap message header, find the search unit 104 of the address of service corresponding with the indications in soap message header;
Be connected with search unit 104, for sending described soap message to the first transmitting element 105 of described address of service;
Be connected with the first transmitting element 105, for receiving the second receiving element 106 of the object information that described address of service returns;
That be connected with the second receiving element 106, return to requestor for sending object information the second transmitting element 107.
Also comprising: the http service-creation unit 108 be connected with the first receiving element 101, for resolving the Xbean file of described central server configuration, obtaining the configuration information in described Xbean file, according to described configuration information, create http service.
In central server disclosed in above-described embodiment, first, the Xbean file that the http service-creation unit 108 analytical center server be connected with the first receiving element 101 configures, obtain the configuration information in Xbean file, be specifically as follows: utilize XBean to simplify spring configuration file, introduce a kind of customized label mechanism and carry out Enhanced expressing ability, the function of XBean configuration file is very simple, its grammatical norm also relative straightforward.Then, automatically http service is created again according to the program of described configuration information and central server inside, for ensuing reception work is prepared, after http service-creation, the first receiving element 101 receives the service request carrying Simple Object Access Protocol soap message header again.
In actual application, due to the brief introduction of UI user interface, arrange without the need to complexity, central server configuration Xbean file disclosed in above-described embodiment, create http service and can utilize UI user interface, first, the http address of service that input will be issued, when name is called httpProxy, service is issued address and is: http: // 192.168.51.85:9090/vs, self-definedly to be described as: Receive webservices, has so just created http service, select soap message version be 1.1 and verification mode select none.Http service format messages whether is used to be click "Yes" in selection.Finally, the coded system in advanced configuration is set to can be exchanged into character string, and output message maximum character length is set to 1024 characters, and meanwhile, time-out time is set to 600 seconds.After complete for above information preservation, namely can realize the unified access to each service request and safe handling.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.
Claims (12)
1. a service request cut-in method, is characterized in that, comprising:
Receive and carry the service request of Simple Object Access Protocol soap message header, in described soap message header, be pre-stored with indications, described indications corresponding with service request and with address of service one_to_one corresponding;
Obtain the indications in described soap message header, judge that whether described indications is correct, if correctly, then according to the indications search database in described soap message header, find the address of service corresponding with the indications in described soap message header;
Send described soap message to described address of service, receive the object information that described address of service returns, and object information is returned to requestor.
2. service request cut-in method according to claim 1, is characterized in that, described service request is the service request of http form.
3. service request cut-in method according to claim 1, is characterized in that, after the indications in described acquisition soap message header, judges whether described indications is correctly specially:
Decipher described indications, described indications is the indications of encrypting in advance.
4. service request cut-in method according to claim 3, is characterized in that, described indications is the indications adopting the encryption of md5 encryption method, the described indications of described deciphering, judges that whether described indications is correct, is specially:
Verify whether described md5 encryption method meets predetermined format.
5. a central server, is characterized in that, comprising:
First receiving element, for receiving the service request carrying Simple Object Access Protocol soap message header, is pre-stored with indications in described soap message header, described indications corresponding with service request and with address of service one_to_one corresponding;
The acquiring unit be connected with the first receiving element, for obtaining the indications in described soap message header;
Be connected with acquiring unit, for judging the judging unit whether described indications correct;
Be connected with judging unit, for when described indications is correct, according to the indications search database in described soap message header, find the search unit of the address of service corresponding with the indications in described soap message header;
Be connected with search unit, for sending described soap message to the first transmitting element of described address of service;
Be connected with the first transmitting element, for receiving the second receiving element of the object information that described address of service returns;
That be connected with the second receiving element, return to requestor for sending object information the second transmitting element.
6. central server according to claim 5, it is characterized in that, described central server also comprises: the http service-creation unit be connected with the first receiving element, for resolving the Xbean file of described central server configuration, obtain the configuration information in described Xbean file, according to described configuration information, create http service.
7. central server according to claim 6, is characterized in that, the operation interface of the http service-creation unit of described central server is UI user interface.
8. central server according to claim 7, is characterized in that, in described UI user interface, simple object access protocol message version can be set to 1.1.
9. central server according to claim 7, is characterized in that, described UI user interface is verified the fail safe mode of request can be set to none.
10. central server according to claim 7, is characterized in that, the coded system in described UI user interface in advanced configuration can be set to can be exchanged into character string.
11. central servers according to claim 7, is characterized in that, the output message maximum character length in described UI user interface in advanced configuration is set to 1024 characters.
12. central servers according to claim 7, is characterized in that, in described UI user interface, in advanced configuration, time-out time is set to 600 seconds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210233693.XA CN102724216B (en) | 2012-07-06 | 2012-07-06 | Service request access method and centre server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210233693.XA CN102724216B (en) | 2012-07-06 | 2012-07-06 | Service request access method and centre server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102724216A CN102724216A (en) | 2012-10-10 |
CN102724216B true CN102724216B (en) | 2015-05-20 |
Family
ID=46949878
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210233693.XA Active CN102724216B (en) | 2012-07-06 | 2012-07-06 | Service request access method and centre server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102724216B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973794A (en) * | 2014-05-13 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Access method based on markup language object in distributed network transmission process |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043478A (en) * | 2007-04-20 | 2007-09-26 | 北京航空航天大学 | Service gateway and method for realizing message safe process |
CN102263809A (en) * | 2010-05-31 | 2011-11-30 | 中国移动通信集团贵州有限公司 | A method and device for implementing service security management and control based on an enterprise service bus |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4023508B2 (en) * | 2006-03-28 | 2007-12-19 | 松下電工株式会社 | Network system |
JP5174401B2 (en) * | 2007-08-27 | 2013-04-03 | パナソニック株式会社 | Network system |
-
2012
- 2012-07-06 CN CN201210233693.XA patent/CN102724216B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043478A (en) * | 2007-04-20 | 2007-09-26 | 北京航空航天大学 | Service gateway and method for realizing message safe process |
CN102263809A (en) * | 2010-05-31 | 2011-11-30 | 中国移动通信集团贵州有限公司 | A method and device for implementing service security management and control based on an enterprise service bus |
Also Published As
Publication number | Publication date |
---|---|
CN102724216A (en) | 2012-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108462758B (en) | Bank-enterprise direct connection communication method, device, equipment and computer readable storage medium | |
RU2020120956A (en) | METHOD AND DEVICE FOR INSTALLING KEYS AND SENDING DATA | |
CN109495870B (en) | Bluetooth test method and device | |
CN109067617B (en) | V2X protocol consistency test method, device and system | |
US20130268632A1 (en) | Server assisted authenticated device | |
CN102833422B (en) | Short-message-control-based long-command system of mobile intelligent terminal | |
JP6061110B2 (en) | Counter inspection and reconfiguration method, apparatus, and system | |
CN107041171B (en) | Low-power-consumption Bluetooth BLE device, data updating system and method | |
CN102546914A (en) | Automatic login system based on smart phone and control method | |
CN104205888B (en) | Method and apparatus for base station assisted peer discovery by expression aggregation | |
US10291621B2 (en) | System, information processing apparatus, and storage medium | |
US8880108B2 (en) | Short message processing method and apparatus | |
CN105049280B (en) | The interface Behavior modeling test macro and method of Business Management Platform | |
EP3226516B1 (en) | Unified data networking across heterogeneous networks | |
TWI702869B (en) | A method for information processing﹑a communication device and a computer storage medium | |
CN106339623B (en) | Login method and device | |
CN102724216B (en) | Service request access method and centre server | |
EP1422872A1 (en) | Modular method and device for the tracing of a multimedia message through a telecommunications network | |
CN111131323A (en) | Message transmission method and related device | |
CN112448808A (en) | Communication method, device, access point, server, system and storage medium | |
CN113965904A (en) | Device registration method, device and storage medium | |
CN106330971A (en) | Authentication method, server and system based on stateless service | |
CN106301529A (en) | A kind of short message transmission method, server, terminal and communication system | |
CN119496626A (en) | Data transmission method, computer readable storage medium and electronic device | |
US7852782B2 (en) | Method of creating a split terminal between a base terminal and equipments connected in series |
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 |