CN106686027A - HTTP-based SOA service calling arrangement method and system - Google Patents

HTTP-based SOA service calling arrangement method and system Download PDF

Info

Publication number
CN106686027A
CN106686027A CN201510751960.6A CN201510751960A CN106686027A CN 106686027 A CN106686027 A CN 106686027A CN 201510751960 A CN201510751960 A CN 201510751960A CN 106686027 A CN106686027 A CN 106686027A
Authority
CN
China
Prior art keywords
soa
mapping relations
soa service
http
data
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.)
Pending
Application number
CN201510751960.6A
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201510751960.6A priority Critical patent/CN106686027A/en
Publication of CN106686027A publication Critical patent/CN106686027A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention provides an HTTP-based SOA service calling arrangement method and a system. The method comprises steps of step A, carrying out customized instrumentation on an HTTP request sent by each SOA service requester; step B, according to the HTTP requests, acquiring first mapping relation data of the SOA service requesters and SOA service providers; step C, according to the first mapping relation data, generating a calling relation graph between the SOA service requesters and SOA service providers. According to the invention, developers and software architects can acquire data in a more precise and comprehensive manner in actual work; labor intensity of developers can be greatly reduced; time consumed in a test process is reduced; and working efficiency is improved.

Description

SOA service calls carding method and system based on HTTP
Technical field
The present invention relates to computer realm, and in particular to a kind of SOA services based on HTTP are adjusted With carding method and system.
Background technology
At present SOA framework becomes more and more popular, but carries out SOA combings to existing business system (understanding the call relation between each service) is always a difficult problem.Develop under normal circumstances Personnel and Software Architect need to carry out combing, whole process by reading the code of SOA services In the extreme complicated and time consumption, especially for just taking over for the personnel of project, reads over completely code Be practically impossible to completing for task, for some large scale systems generally require at least 1 year when Between come complete overall SOA combing work.
The content of the invention
The present invention provides a kind of SOA service calls carding method and system based on HTTP, with Solve the above-mentioned problems in the prior art.
A kind of SOA service calls combing side based on HTTP of offer is provided Method, the method includes:Step A:The HTTP request that each SOA service requester is sent Carry out self-defined pitching pile;Step B:According to the HTTP request, the SOA service requests are obtained Person and the first mapping relations data of SOA ISPs;Step C:According to first mapping Relation data, generates calling between the SOA service requesters and the SOA ISPs Graph of a relation.
Alternatively, self-defining is increased to the HTTP request that the SOA service requesters send HTTP heads.
Alternatively, step B includes:Step D, by the HTTP request, obtaining should SOA service requesters reflect with the IP address of the SOA ISPs, the second of port information Penetrate relation data;Step E, the shell-command carried by operating system obtain the IP address, The 3rd mapping relations data of the port information and SOA service processes identifiers;And step F, By the second mapping relations data and the 3rd mapping relations data, obtaining the SOA services please The person of asking and the first mapping relations data of the SOA ISPs.
Alternatively, the method also includes:Regularly update and store the SOA service processes identifiers With the mapping relations data of SOA server.
The present invention also provides a kind of SOA service call combing systems based on HTTP, the system Including:Pitching pile module, for carrying out to the HTTP request that each SOA service requester sends Self-defined pitching pile;Network monitoring module, for according to the HTTP request, obtaining the SOA clothes Business requestor and the first mapping relations data of SOA ISPs;Report generation module, uses Service with the SOA in the SOA service requesters according to the first mapping relations data, are generated Call graph between supplier.
Alternatively, pitching pile module increases to each from the HTTP request that SOA service requesters send Plus self-defining HTTP heads.
Alternatively, network monitoring module also includes:First mapping block, please based on the HTTP Ask, obtain IP address of the SOA service requesters with the SOA ISPs, port letter Second mapping relations data of breath;Second mapping block, the shell carried based on operating system is ordered Order obtains the 3rd mapping relations of the IP address, the port information and SOA service processes identifiers Data;And the 3rd mapping block, based on second mapping relations and the 3rd mapping relations, Obtain the first mapping relations data of the SOA service requesters and the SOA ISPs.
Alternatively, the system also includes:Data update module, for regularly updating and storing this SOA service processes identifier and the mapping relations data of SOA server.
The SOA service calls carding method provided by the present invention and system so that developer Data are not only obtained in real work more accurately and comprehensively with architect, and is significantly released The labour of developer is put, the time expended in test process is reduced, work effect is improve Rate.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to embodiment The accompanying drawing to be used needed for description is briefly described, it should be apparent that, in describing below Accompanying drawing is only some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition. In the accompanying drawings:
Fig. 1 is the SOA service call carding method flow charts based on HTTP of the present invention;
Fig. 2 is the SOA service call combing system schematics based on HTTP of the present invention.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention becomes more apparent, below The embodiment of the present invention is described in further details with reference to accompanying drawing.Here, the present invention's is schematic Embodiment and its illustrate for explaining the present invention but not as a limitation of the invention.
Fig. 1 provides a kind of SOA service call carding method flow processs based on HTTP for the present invention Figure.As shown in Figure 1 the step of carding method is as follows:Step A:To each SOA service request The HTTP request that person sends carries out self-defined pitching pile;Step B:According to the HTTP request, obtain Take the first mapping relations data of the SOA service requesters and SOA ISPs;Step C: According to the first mapping relations data, generate the SOA service requesters and carry with the SOA services Call graph between donor.
Alternatively, self-defining is increased to the HTTP request that the SOA service requesters send HTTP heads.
Alternatively, step B includes:Step D, by the HTTP request, obtains the SOA Service requester and IP address, second mapping relations of port information of the SOA ISPs Data;Step E, the shell-command carried by operating system obtains the IP address, the port 3rd mapping relations data of information and SOA service processes identifiers;And step F, pass through The second mapping relations data and the 3rd mapping relations data, obtain the SOA service requesters With the first mapping relations data of the SOA ISPs.
Alternatively, the method also includes:Regularly update and store the SOA service processes identifiers With the mapping relations data of SOA server.
The present invention is specifically described with reference to a specific embodiment, but is worth note Meaning is the specific embodiment merely to preferably describing the present invention, is not constituted to the present invention Improper restriction.
Those skilled in the art understands that SOA service architectures are substantially the set for servicing, i.e., Communicate with one another between difference service, and this communication can be simple data transmission, Can be that two or more service coordinations carry out some activities.Particularly in e-commerce venture System service between situation about mutually calling be even more frequent.
Based on above-mentioned actual conditions, for convenience developer and architect can be obtained promptly and accurately Know the call relation between each service, the present invention proposes that a kind of SOA based on HTTP is serviced Call carding method.The step of the method, is as follows:
S101, by for each from SOA service send HTTP request increase it is self-defining HTTP heads (include allocating stack information), are so just carried out for each SOA service processes entirely Office's pitching pile.In an embodiment of the present invention, SOA service architectures are the WCF frames of .NET platforms Frame, we realize the IWebRequestCreate of oneself, by machine.config pair The HTTP request pitching pile of the upper all .NET programs of Windows.Technology herein is realized according to not The platform and programming language serviced with SOA has difference.
S102, SOA is serviced to server send request packet disassemble, so as to energy Enough obtain the mapping relations data of the SOA service requesters and SOA ISPs.
Specifically, first obtaining transmission respectively according to the port information of packet (TCP bags) please The SOA services asked and the IP address (source ip and dest ip) of the SOA services for receiving request With port (source port and dest ip), because step S101 has carried out global pitching pile, Allocating stack information is added in HTTP heads, and purpose is obtained by packet (HTTP bags) URL addresses, thus just can obtain the IP address of SOA service requesters, port information, The IP address of allocating stack information and SOA ISPs, port information, purpose URL ground Mapping relations data between location.Then, by the shell-command in Windows operating system Can obtain from database IP address and port and SOA service processes identifiers (PID) it Between mapping relations data.Particularly, to these SOA service request identifiers in database (PID) can regularly update with the mapping relations data of SOA service providing ends.It is worth mentioning It is that technology herein is realized having difference according to the platform and programming language of different SOA services.
In an embodiment of the present invention, it is to carry work by calling IIS to update mapping relations data Have with database table to realize.Thus SOA Service names just can be obtained and is serviced with SOA The mapping relations data of identifier (PID), can obtain finally by above-mentioned mapping relations data Obtain the mapping relations data of SOA service requesters and SOA ISPs.
S103, the mapping that SOA service requesters and SOA ISPs are passed through by reading Relation data generates SOA service call graphs of a relation.
Specifically, if called side (ISP) services entitled sky, then it is assumed that be External service is called;If called side's Service name is not sky, then it is assumed that be that internal services are called, Above-mentioned different services can use different graphic mark.
By performing the SOA service call carding methods based on HTTP that the present invention is provided, can Finally to realize the call graph between each SOA service, developer and architect is set to exist Data are not only obtained in real work more accurately and comprehensive, and significantly discharge developer Labour, be greatly shortened in test process expend time, improve operating efficiency.
Fig. 2 is the SOA service call combing system schematics based on HTTP of the present invention.Such as Shown in Fig. 2, the system includes:
Pitching pile module 10, for carrying out to the HTTP request that each SOA service requester sends Self-defined pitching pile;
Network monitoring module 20, for according to the HTTP request, obtaining the SOA service requests Person and the first mapping relations data of SOA ISPs;
Report generation module 30, for according to the first mapping relations data, generating the SOA Call graph between service requester and the SOA ISPs.
The present invention is specifically described with reference to a specific embodiment, but is merited attention Be the specific embodiment merely to preferably describing the present invention, do not constitute to the present invention's Improper restriction.
Pitching pile module 10, network monitoring module 20, report generation module 30 and data update mould Block 40.Wherein, network monitoring module 20 is specifically included:First mapping block 201, second are reflected Penetrate the mapping block 203 of module 202 and the 3rd.
Each is increased from the HTTP request that SOA service requesters send by pitching pile module 10 Plus self-defining HTTP heads (including allocating stack information), just it is so each SOA service Process carries out global pitching pile.
First, according to the HTTP request, obtaining the SOA services please for the first mapping block 201 The person of asking and IP address, the second mapping relations data of port information of the SOA ISPs.
Secondly, the second mapping block 202 is ordered according to the shell that Windows operating system is carried Order obtains the 3rd mapping relations of the IP address, the port information and SOA service processes identifiers Data;Wherein, data update module 40 can regularly update and store the SOA service processes marks Know the mapping relations data of symbol and SOA server.3rd mapping block 203 second reflects according to this Relation and the 3rd mapping relations are penetrated, the SOA service requesters is obtained and is carried with the SOA services First mapping relations data of donor.Due to identical with preceding method principle, therefore here is not repeated.
Finally, report generation module 30 is by above-mentioned mapping relations data SOA service requester With the first mapping relations data genaration SOA service call graphs of a relation of SOA ISPs.
The SOA service calls carding method provided by the present invention and system so that developer Data are not only obtained in real work more accurately and comprehensively with architect, and is significantly released The labour of developer is put, the time expended in test process is reduced, work effect is improve Rate.
Particular embodiments described above, to the purpose of the present invention, technical scheme and beneficial effect Further described, should be understood that and the foregoing is only the concrete of the present invention Embodiment, the protection domain being not intended to limit the present invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements done etc. should be included in the present invention Protection domain within.

Claims (8)

1. a kind of SOA service call carding methods based on HTTP, it is characterised in that institute The method of stating includes:
Step A, self-defined inserting is carried out to the HTTP request that each SOA service requester sends Stake;
Step B, according to the HTTP request, obtains the SOA service requesters and SOA The first mapping relations data of ISP;
Step C, according to the first mapping relations data, generates the SOA service requesters With the call graph between the SOA ISPs.
2. method according to claim 1, it is characterised in that step A includes:
Self-defining is increased to the HTTP request that the SOA service requesters send HTTP heads.
3. method according to claim 1, it is characterised in that step B includes:
Step D, by the HTTP request, obtain the SOA service requesters with it is described The IP address of SOA ISPs, the second mapping relations data of port information;
Step E, the shell-command carried by operating system obtains the IP address, the end Message ceases the 3rd mapping relations data with SOA service processes identifiers;
Step F, by the second mapping relations data and the 3rd mapping relations data, Obtain the first mapping relations number of the SOA service requesters and the SOA ISPs According to.
4. method according to claim 1, it is characterised in that methods described also includes:
Regularly update and store the mapping of the SOA service processes identifier and SOA server Relation data.
5. a kind of SOA service call combing systems based on HTTP, it is characterised in that institute The system of stating includes:
Pitching pile module, for carrying out certainly to the HTTP request that each SOA service requester sends Define pitching pile;
Network monitoring module, please for according to the HTTP request, obtaining the SOA services The person of asking and the first mapping relations data of SOA ISPs;
Report generation module, for according to the first mapping relations data, generating the SOA Call graph between service requester and the SOA ISPs.
6. system according to claim 5, it is characterised in that the pitching pile module is logical Cross increases self-defining HTTP to the HTTP request that the SOA service requesters send Head carries out pitching pile.
7. system according to claim 5, it is characterised in that the network monitoring module Also include:
First mapping block, based on the HTTP request, obtains the SOA service requesters Second mapping relations data of IP address, port information with the SOA ISPs;
Second mapping block, the shell-command acquisition IP address carried based on operating system, 3rd mapping relations data of the port information and SOA service processes identifiers;
3rd mapping block, based on second mapping relations and the 3rd mapping relations, obtains Take the first mapping relations data of the SOA service requesters and the SOA ISPs.
8. system according to claim 5, it is characterised in that the system also includes:
Data update module, for regularly update and store the SOA service processes identifier with The mapping relations data of SOA server.
CN201510751960.6A 2015-11-06 2015-11-06 HTTP-based SOA service calling arrangement method and system Pending CN106686027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510751960.6A CN106686027A (en) 2015-11-06 2015-11-06 HTTP-based SOA service calling arrangement method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510751960.6A CN106686027A (en) 2015-11-06 2015-11-06 HTTP-based SOA service calling arrangement method and system

Publications (1)

Publication Number Publication Date
CN106686027A true CN106686027A (en) 2017-05-17

Family

ID=58862930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510751960.6A Pending CN106686027A (en) 2015-11-06 2015-11-06 HTTP-based SOA service calling arrangement method and system

Country Status (1)

Country Link
CN (1) CN106686027A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039773A (en) * 2018-09-06 2018-12-18 掌阅科技股份有限公司 Network communication monitoring method, electronic equipment, storage medium
CN112492021A (en) * 2020-11-25 2021-03-12 北京宝兰德软件股份有限公司 Service calling relation path detection method based on network data
CN113392347A (en) * 2021-08-18 2021-09-14 北京安普诺信息技术有限公司 Instrumentation-based Web backend API (application program interface) acquisition method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1941771A (en) * 2005-09-27 2007-04-04 国际商业机器公司 Web service data managing method and system for use of service oriented system structure
CN101441561A (en) * 2007-11-23 2009-05-27 国际商业机器公司 Method and device for generating service-oriented architecture strategy based on context model
JP2011170636A (en) * 2010-02-18 2011-09-01 Nec Corp Soa system, service bus device, transmission definition generating method, and computer program
CN104932895A (en) * 2015-06-26 2015-09-23 南京邮电大学 Middleware based on SOA (Service-Oriented Architecture) and information publishing method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1941771A (en) * 2005-09-27 2007-04-04 国际商业机器公司 Web service data managing method and system for use of service oriented system structure
CN101441561A (en) * 2007-11-23 2009-05-27 国际商业机器公司 Method and device for generating service-oriented architecture strategy based on context model
JP2011170636A (en) * 2010-02-18 2011-09-01 Nec Corp Soa system, service bus device, transmission definition generating method, and computer program
CN104932895A (en) * 2015-06-26 2015-09-23 南京邮电大学 Middleware based on SOA (Service-Oriented Architecture) and information publishing method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039773A (en) * 2018-09-06 2018-12-18 掌阅科技股份有限公司 Network communication monitoring method, electronic equipment, storage medium
CN109039773B (en) * 2018-09-06 2019-08-09 掌阅科技股份有限公司 Network communication monitoring method, electronic equipment, storage medium
CN112492021A (en) * 2020-11-25 2021-03-12 北京宝兰德软件股份有限公司 Service calling relation path detection method based on network data
CN112492021B (en) * 2020-11-25 2023-12-01 北京宝兰德软件股份有限公司 Service calling relation path detection method based on network data
CN113392347A (en) * 2021-08-18 2021-09-14 北京安普诺信息技术有限公司 Instrumentation-based Web backend API (application program interface) acquisition method and device and storage medium
CN113392347B (en) * 2021-08-18 2021-11-09 北京安普诺信息技术有限公司 Instrumentation-based Web backend API (application program interface) acquisition method and device and storage medium

Similar Documents

Publication Publication Date Title
US10693746B2 (en) Instrumentation and monitoring of service level agreement (SLA) and service policy enforcement
US9414215B2 (en) System and method for orchestrating mobile data networks in a machine-to-machine environment
CN108809857A (en) A method of the traffic monitoring based on SDN and service quality securing strategy
CN104092755B (en) A kind of method and device for capturing of cloud service origination data
Garriga et al. Web services composition mechanisms: a review
CN103246606B (en) The performance test methods of ESB platform and system
CN103248512A (en) Method and system for generating topological structure of application layer in communication network
CN106686027A (en) HTTP-based SOA service calling arrangement method and system
CN104601408A (en) Website data statistics and analysis method and system used for non-open network environment
CN111200523B (en) Method, device, equipment and storage medium for configuring middle platform system
CN106464584A (en) Providing router information according to a programmatic interface
WO2015149531A1 (en) Internet of things terminal firmware management method, device and general service entity
CN117751567A (en) Dynamic process distribution for utility communication networks
CN106874371A (en) A kind of data processing method and device
JP2012510125A5 (en)
CN105516269A (en) Application configuration method and application configuration device
CN108833328B (en) Cloud management method and device, storage medium and processor
CN104793924B (en) The processing method and processing device of calculating task
CN110287070B (en) ESB special protocol interface test method, server and computer readable storage medium
CN109194717B (en) OSS-based customer collecting service implementation method and device
CN108694040A (en) Calling processing method and device, communication system
CN111625866A (en) Authority management method, system, equipment and storage medium
Terazono et al. Service oriented architecture realized by a messaging network
CN112217852A (en) Platform-as-a-service system and method based on workflow engine
CN104219146B (en) Method and apparatus based on ANCP label allocations in access net

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170517