CN103023947B - Service based on World Wide Web (WWW) is converted to the method and apparatus of Web service - Google Patents

Service based on World Wide Web (WWW) is converted to the method and apparatus of Web service Download PDF

Info

Publication number
CN103023947B
CN103023947B CN201110305755.9A CN201110305755A CN103023947B CN 103023947 B CN103023947 B CN 103023947B CN 201110305755 A CN201110305755 A CN 201110305755A CN 103023947 B CN103023947 B CN 103023947B
Authority
CN
China
Prior art keywords
http
parameter
message
results messages
browser
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.)
Expired - Fee Related
Application number
CN201110305755.9A
Other languages
Chinese (zh)
Other versions
CN103023947A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to CN201110305755.9A priority Critical patent/CN103023947B/en
Priority to JP2012205884A priority patent/JP6003443B2/en
Publication of CN103023947A publication Critical patent/CN103023947A/en
Application granted granted Critical
Publication of CN103023947B publication Critical patent/CN103023947B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides a kind of method and apparatus service based on World Wide Web (WWW) being converted to Web service, and the method comprises: obtain user by the HTML (Hypertext Markup Language) HTTP message sequence mutual between browser and worldwide website of the viability based on World Wide Web (WWW) of browser access worldwide website; According to comprising the HTTP results messages of result of the service based on World Wide Web (WWW) and result parameter wherein in HTTP message sequence, analyze HTTP message sequence, to identify parameter in the HTTP request message that associates with HTTP results messages and source thereof, and parameter in the http response message associated with HTTP results messages and destination thereof; And according to the order recorded in HTTP message sequence, the sequence of the HTTP request message associated with HTTP results messages and http response message is packaged into Web service, wherein, the input parameter of Web service comprises the parameter deriving from browser, and the output parameter of Web service comprises the result parameter in HTTP results messages.

Description

Service based on World Wide Web (WWW) is converted to the method and apparatus of Web service
Technical field
The application relates generally to the field that service and Web (World Wide Web (WWW)) based on World Wide Web (WWW) serve, and more specifically, relates to a kind of method and apparatus service based on World Wide Web (WWW) being converted to Web service.
Background technology
Web service is industrial standard conventional at present, and its interface document defined by WSDL (WSDL, Web Services Description Language) is made can facilitate between the system of isomery and mutually calls quickly.Web service provides a kind of interface of Machine To Machine, therefore in Service-Oriented Architecture Based (SOA, Service-Oriented Architecture), plays important role.And, all support Web service in the programming language that major part is popular.
Along with the fast development of World Wide Web (WWW), many services are published on worldwide website such as, as the service based on World Wide Web (WWW), translation service, search service etc.But these services based on World Wide Web (WWW) are user oriented, do not provide the interface of Machine To Machine, do not adopt Web service to describe interface yet.Therefore, other system directly cannot call the above-mentioned service based on World Wide Web (WWW).In order to enable other system directly call the above-mentioned service based on World Wide Web (WWW), need to convert these user oriented services based on World Wide Web (WWW) to Web service.
In prior art, in order to convert these user oriented services based on World Wide Web (WWW) to Web service, generally needing to change existing system, such as, revising source code, increasing the interface of Web service, and redeploy.This method generally compares to waste time and energy, and even unfeasible under many circumstances.Therefore, there is such demand: when substantially not changing existing system, simple and convert the service based on World Wide Web (WWW) to Web service efficiently.
According to the embodiment of the application, provide a kind of method service based on World Wide Web (WWW) being converted to Web service, comprising: obtain user by HTTP (HTTP) message sequence mutual between browser and worldwide website of the viability based on World Wide Web (WWW) of browser access worldwide website; According to comprising the HTTP results messages of result of the service based on World Wide Web (WWW) and result parameter wherein in HTTP message sequence, analyze HTTP message sequence, to identify parameter in the HTTP request message that associates with HTTP results messages and source thereof, and parameter in the http response message associated with HTTP results messages and destination thereof; And according to the order recorded in HTTP message sequence, the sequence of the HTTP request message associated with HTTP results messages and http response message is packaged into Web service, wherein, the input parameter of Web service comprises the parameter deriving from browser, and the output parameter of Web service comprises the result parameter in HTTP results messages.
According to the embodiment of the application, obtaining step can comprise: for each user in user generates corresponding thread marks; Thread marks is inserted in corresponding user HTTP message mutual between browser and worldwide website; And the HTTP message sequence that each user to distinguish in recording user according to thread marks is mutual between browser and worldwide website.
According to embodiments of the invention, analytical procedure comprises: receive the result that user specifies the concurrent service based on World Wide Web (WWW) sent in HTTP results messages; And extract the positional information of result parameter in HTTP results messages.
According to embodiments of the invention, wherein, the http response message that the source of the parameter in the HTTP request message associated with HTTP results messages comprises browser and associates with HTTP results messages; And the HTTP request message that the destination of parameter in the http response message to associate with HTTP results messages comprises browser and associates with HTTP results messages.
According to embodiments of the invention, wherein, parameter is the right of tag name in HTTP message and value thereof, and the value of tag name one of is at least specified by following: browser, Cookie and other http response message.
According to the embodiment of the application, provide a kind of equipment service based on World Wide Web (WWW) being converted to Web service, this equipment can comprise: obtaining means, for obtaining user by the HTML (Hypertext Markup Language) HTTP message sequence mutual between browser and worldwide website of the viability based on World Wide Web (WWW) of browser access worldwide website; Analytical equipment, for according to comprising the HTTP results messages of result of the service based on World Wide Web (WWW) and result parameter wherein in HTTP message sequence, analyze HTTP message sequence, to identify parameter in the HTTP request message that associates with HTTP results messages and source thereof, and parameter in the http response message associated with HTTP results messages and destination thereof; And packaging system, for according to the order recorded in HTTP message sequence, the sequence of the HTTP request message associated with HTTP results messages and http response message is packaged into Web service, wherein, the input parameter of Web service comprises the parameter deriving from browser, and the output parameter of Web service comprises the result parameter in HTTP results messages.
According to embodiments of the invention, obtaining means can comprise: generating apparatus, for generating corresponding thread marks for each user in user; Insertion apparatus, for inserting in corresponding user HTTP message mutual between browser and worldwide website by thread marks; And tape deck, for distinguishing each user in recording user HTTP message sequence mutual between browser and worldwide website according to thread marks.
According to embodiments of the invention, analytical equipment can comprise: reception result device, specifies the result of the concurrent service based on World Wide Web (WWW) sent for receiving user in HTTP results messages; And extraction element, for extracting the positional information of result parameter in HTTP results messages.
According to embodiments of the invention, wherein, the http response message that the source of the parameter in the HTTP request message associated with HTTP results messages comprises browser and associates with HTTP results messages; And the HTTP request message that the destination of parameter in the http response message to associate with HTTP results messages comprises browser and associates with HTTP results messages.
According to embodiments of the invention, wherein, parameter is the right of tag name in HTTP message and value thereof, and the value of tag name one of is at least specified by following: browser, Cookie and other http response message.
Summary of the invention
To provide about brief overview of the present invention hereinafter, to provide about the basic comprehension in some of the present invention.Should be appreciated that this general introduction is not summarize about exhaustive of the present invention.It is not that intention determines key of the present invention or pith, and nor is it intended to limit the scope of the present invention.Its object is only provide some concept in simplified form, in this, as the preorder in greater detail discussed after a while.
Accompanying drawing explanation
The present invention can be better understood by reference to hereinafter given by reference to the accompanying drawings description, wherein employs same or analogous Reference numeral in all of the figs to represent identical or similar parts.Described accompanying drawing comprises in this manual together with detailed description below and forms the part of this specification, and is used for illustrating the preferred embodiments of the present invention further and explaining principle and advantage of the present invention.In the accompanying drawings:
Fig. 1 illustrates the flow chart service based on World Wide Web (WWW) being converted to the process of the method for Web service according to an embodiment of the invention;
Fig. 2 illustrates the schematic diagram to the process that HTTP message sequence is analyzed;
Fig. 3 is the schematic diagram that the process analysis result of HTTP message sequence being packaged into Web service is shown;
Fig. 4 illustrates the flow chart of the process of acquisition HTTP message sequence according to an embodiment of the invention;
Fig. 5 illustrates the flow chart of the process of the result based on web services in mark HTTP results messages according to an embodiment of the invention;
Fig. 6 is the schematic diagram of the process of the result based on web services illustrated in mark HTTP results messages;
Fig. 7 illustrates the flow chart calling the process of packaged Web service according to an embodiment of the invention;
Fig. 8 A illustrates the block diagram service based on World Wide Web (WWW) being converted to the equipment of Web service according to an embodiment of the invention;
Fig. 8 B illustrates the block diagram service based on World Wide Web (WWW) being converted to the equipment of Web service according to another embodiment of the present invention;
Fig. 9 illustrates the block diagram of the obtaining means for obtaining HTTP message sequence according to an embodiment of the invention;
Figure 10 illustrates the block diagram of the analytical equipment for analyzing HTTP message sequence according to an embodiment of the invention; And
Figure 11 shows the schematic block diagram that can be used for as implementing messaging device according to an embodiment of the invention.
Embodiment
To be described one exemplary embodiment of the present invention by reference to the accompanying drawings hereinafter.For clarity and conciseness, all features of actual execution mode are not described in the description.But should understand, can make in the process of any this actual execution mode of exploitation much specific to the decision of execution mode, to realize the objectives of developer, and these decisions may change to some extent along with the difference of execution mode.
At this, also it should be noted is that, in order to avoid the present invention fuzzy because of unnecessary details, illustrate only in the accompanying drawings with according to the closely-related apparatus structure of the solution of the present invention, and eliminate other details little with relation of the present invention.
Fig. 1 illustrates the flow chart service based on World Wide Web (WWW) being converted to the process of the method for Web service according to an embodiment of the invention.Applicant notices, although various based on the type service of World Wide Web (WWW), but from the angle of underlying protocol, the service based on World Wide Web (WWW) is all be made up of a series of fixing HTTP message substantially, just the value of each parameter entrained by HTTP message is different.Such as, parameter can be included in inquiry Query part, the Cookie of uniform resource position mark URL (Uniform ResourceLocator) and be sent in the character string of server by " notice (post) " method.If the sequence of the HTTP message that HTTP results messages interested with user associates can be identified from a series of fixing HTTP message, then also can compose with different parameter values by the sequence of the HTTP message associated from user interested HTTP results messages of resetting, reappear the whole process based on web services, namely the sequence of the HTTP message associated with the interested HTTP results messages of user can be packaged into Web service, when Web service packaged by other system call, whole process based on web services can be accessed on a web browser by analog subscriber.Therefore, can when substantially not changing existing system, simple and convert the service based on World Wide Web (WWW) to Web service efficiently.
When changing the service based on World Wide Web (WWW) by the method according to an embodiment of the invention service based on World Wide Web (WWW) being converted to Web service, as shown in Figure 1, the method starts in step 100.
In step 102, obtain user by the HTML (Hypertext Markup Language) HTTP message sequence mutual between browser and worldwide website of the viability based on World Wide Web (WWW) of browser access worldwide website.
As mentioned above, along with the develop rapidly of World Wide Web (WWW), many services are published on worldwide website as the service based on World Wide Web (WWW).User, by browser access worldwide website, just can use the service based on World Wide Web (WWW) on worldwide website.Such as, user can visit translation web site by browser, and input the language of a state user after, by the translation service in this translation web site, user just can obtain the language of another country corresponding with the language of a state inputted.This translation service is user oriented, such as, needs user's manual unlocking browser to visit this translation web site, and manually the language of input a state, clicks translate button etc., and then manually the speech reproduction of another country obtained out is used for other object.
Use the viability based on World Wide Web (WWW) on worldwide website user by browser access worldwide website, from the angle of underlying protocol, be actually and carried out the mutual of a series of HTTP message between browser and worldwide website.HTTP message comprises the HTTP request message sent by browser and the http response message returned by worldwide website.Can carry parameter in HTTP message, this parameter is the right of tag name in HTTP message and its value.Such as, the URL of HTTP request message Query part " GET/translate_a/t? client=t & text=go%home & hl=zh-CN & sl=en & tl=zh-CN & multires=1... " in, " client=t " is parameter, wherein " client " is tag name, and " t " is the value of tag name " client ".Similarly, " text=go%home ", " hl=zh-CN ", " sl=en ", " tl=zh-CN " and " multires=1 " are also parameter, wherein, the equal sign left side be tag name, on the right of equal sign is the value of corresponding tag name.Again such as, at the Cookie " SINAGLOBAL=121.236.25.106.150781292069345446 of HTTP request message; ... " in, " SINAGLOBAL=121.236.25.106.150781292069345446 " is parameter, and wherein " SINAGLOBAL " is tag name, and " 121.236.25.106.150781292069345446 " is the value of tag name " SINAGLOBAL ".Again such as, be sent in the character string " service=miniblog & client=ssologin.js%28v1.3.12%29 & entry=miniblog... " of server in HTTP request message by " notice (post) " method, " service=miniblog " is parameter, wherein, " service " is tag name, and " miniblog " is the value of tag name " service ".Similarly, " client=ssologin.js%28v1.3.12%29 " and " entry=miniblog " is also parameter, wherein, the equal sign left side be tag name, and be the value of corresponding tag name on the right of equal sign.
Hereinafter, for convenience of description, only representation parameter is carried out with the tag name in parameter.Such as, for parameter " client=t ", only carry out representation parameter " client=t " with tag name " client " wherein.
Below, composition graphs 2 is described in detail in HTML (Hypertext Markup Language) HTTP message sequence mutual between browser and worldwide website.Fig. 2 illustrates the schematic diagram to the process that HTTP message sequence is analyzed.
Suppose with " * " representation parameter; The HTTP request message of parameter " * " is comprised with " (*) " representative; Represent the parameter " # " be included in http response message with " # (*) ", wherein parameter " # " obtains according to parameter " * ".Such as, as shown in Figure 2, input parameter 203 comprises " a, b, c, d " four parameters, its parameter inputted by browser for user.HTTP request message " (a) " represents the HTTP request message comprising parameter " a "; Correspondingly, " j (a) " represents the parameter " j " be included in http response message 304, and wherein, parameter " j " obtains according to parameter " a ".Similarly, HTTP request message " (a, b) " represents the HTTP request message comprising parameter " a, b "; Correspondingly, " e (a, b) " represents the parameter " e " be included in http response message 205, and wherein, parameter " e " obtains according to parameter " a, b ".Similarly, HTTP request message " (b, c) " represents the HTTP request message comprising parameter " b, c "; Correspondingly, " f (b, c) " represents the parameter " f " be included in http response message 206, and wherein, parameter " f " obtains according to parameter " b, c ".Similarly, HTTP request message " (e, f) " represents the HTTP request message comprising parameter " e, f "; Correspondingly, " m (e, f) " represents the parameter " m " be included in http response message 207, and wherein, parameter " m " obtains according to parameter " e, f ".Similarly, HTTP request message " (f, d) " represents the HTTP request message comprising parameter " f, d "; Correspondingly, " g (f, d) " represents the parameter " g " be included in http response message 208, and wherein, parameter " g " obtains according to parameter " f, d ".Similarly, HTTP request message " (e, g) " represents the HTTP request message comprising parameter " e, g "; Correspondingly, " h (e, g) " represents the parameter " h " be included in http response message 209, and wherein, parameter " h " obtains according to parameter " e, g ".Then, http response message 207 and 209 is returned to browser by worldwide website.
Therefore, as shown in Figure 2, the viability based on World Wide Web (WWW) on worldwide website is used by browser access worldwide website user, by HTTP message sequence " HTTP request message " (a) ", http response message 204 " j (a) ", HTTP request message " (a, b) ", http response message " e (a, b) ", HTTP request message " (b, c) ", http response message 206 " f (b, c) ", HTTP request message " (e, f) ", http response message 207 " m (e, f) ", HTTP request message " (f, d) ", http response message 208 " g (f, d) ", HTTP request message " (e, " and http response message 209 " h (e f), what g) " " constitute between browser and worldwide website is mutual.
Referring back to Fig. 1.After step 102, the method proceeds to step 104.In step 104, according to comprising the HTTP results messages of result of the service based on World Wide Web (WWW) and result parameter wherein in HTTP message sequence, analyze HTTP message sequence, to identify parameter in the HTTP request message that associates with HTTP results messages and source thereof, and parameter in the http response message associated with HTTP results messages and destination thereof.
Worldwide website can return multiple http response message.In the multiple http response message returned by worldwide website, some is the interested content of user, and some is not the interested content of user.Can using the http response message that is used for corresponding to interested content as HTTP results messages, and to ignore be not http response message corresponding to the interested content of user.In addition, the parameter parameter as a result will comprised in HTTP results messages.
Or for Fig. 2, worldwide website can return http response message 207 " m (e, f) " and http response message 209 " h (e, g) ".In above-mentioned HTTP response message 207 " m (e; f) " and http response message 209 " h (e; g) ", http response message 209 " h (e; g) " be the interested content of user, and http response message 207 " m (e, f) " is not the interested content of user.Therefore, using http response message 209 " h (e, g) " as HTTP results messages, and http response message 207 " m (e, f) " can be ignored.In addition, using as parameter " h " parameter as a result in the http response message 209 " h (e, g) " of HTTP results messages.
Known according to describing above, between browser and worldwide website, there is fixing HTTP message sequence.In the HTTP message of above-mentioned HTTP message sequence, some HTTP message is associated with HTTP results messages, some HTTP message then with HTTP results messages onrelevant.If for showing that HTTP results messages needs to depend on a certain HTTP message, then this HTTP message is associated with HTTP results messages.Otherwise if for showing that HTTP results messages does not need to depend on another HTTP message, then this HTTP message is exactly uncorrelated with HTTP results messages.As mentioned above, HTTP message comprises HTTP request message and http response message.Therefore, the HTTP message be associated with HTTP results messages specifically comprises the HTTP request message be associated with HTTP results messages and the http response message be associated with HTTP results messages.
Particularly, whether can have corresponding relation by between the parameter that comprises in the parameter that comprises in a HTTP message and other HTTP message, judge whether be associated between these HTTP message.If have corresponding relation between the parameter comprised in the parameter comprised in a HTTP message and other HTTP message, then these HTTP message are associated.Otherwise, be then uncorrelated between these HTTP message.Such as, if the parameter in a HTTP request message derives from other http response message, then HTTP request message is associated with other http response message.Again such as, if parameter in a http response message is for the purpose of other HTTP request message, if the parameter namely in a http response message is by as the parameter in other HTTP request message, then http response message and other HTTP request message are associated.Also such as, if the parameter in a HTTP request message causes the parameter in other http response message, then HTTP request message is associated with other http response message.Again such as, if the parameter in a http response message obtains according to the parameter in other HTTP request message, then http response message is associated with other HTTP request message.
With reference to figure 2, such as, HTTP request message " (e, g) " comprises two parameters " e " and " g ", wherein parameter " e " derives from http response message 205 " e (a; b) ", and parameter " g " derives from http response message 208 " g (f, d) ", therefore HTTP request message " (e; g) " and http response message 205 " e (a, b) ", http response message 208 " g (f, d) " are associated.Again such as, http response message 208 " g (f; d) " comprise parameter " g ", wherein parameter " g " is with for the purpose of HTTP request message " (e, g) ", and namely parameter " g " is by as the parameter in HTTP request message " (e; g) ", therefore http response message 208 " g (f, d) " and HTTP request message " (e, g) " are associated.Also such as, HTTP request message " (f; d) " comprise parameter " f " and " d ", wherein parameter " f " and " d " cause the parameter " g " in http response message 208 " g (f; d) ", therefore HTTP request message " (f, d) " and http response message 208 " g (f, d) " are associated.Again such as, http response message 208 " g (f; d) " comprise parameter " g ", wherein parameter " g " obtains according to the parameter " f " in HTTP request message " (f; d) " and " d ", therefore http response message 208 " g (f, d) " and HTTP request message " (f, d) " are associated.
From HTTP results messages, according to the corresponding relation between the parameter in different HTTP message, the HTTP request message and http response message that are associated with HTTP results messages can be identified.Particularly, can according to the result parameter in HTTP results messages, recognition result parameter is caused by the parameter in which HTTP request message, identify which http response message is the parameter in these HTTP request message derive from again, then identify that the parameter in these http response message is again caused by the parameter in which HTTP request message, so constantly circulation, till the input that the source of parameter is identified as from browser or user.
Then with reference to figure 2, can start from the http response message 209 " h (e, g) " as HTTP results messages, identify and the HTTP message that http response message 209 " h (e, g) " is associated.Because http response message 209 " h (e; g) " comprises parameter " h ", wherein parameter " h " obtains according to the parameter " e " in HTTP request message " (e; g) " and " g ", therefore http response message 209 " h (e; g) " is associated with HTTP request message " (e, g) ".
Then, start from HTTP request message " (e, g) ", identify and the HTTP message that HTTP request message " (e, g) " is associated.Because HTTP request message " (e; g) " comprises two parameters " e " and " g ", wherein parameter " e " derives from http response message 205 " e (a; b) ", and parameter " g " derives from http response message 208 " g (f, d) ", therefore HTTP request message " (e; g) " and http response message 205 " e (a, b) ", http response message 208 " g (f, d) " are associated.
Then, start from http response message 205 " e (a; b) ", http response message 208 " g (f; d) " respectively, identify the HTTP message be associated with http response message 205 " e (a; b) ", the HTTP message be associated with http response message 208 " g (f, d) ".Because http response message 205 " e (a; b) " comprises parameter " e ", wherein parameter " e " obtains according to the parameter " a " in HTTP request message " (a; b) " and " b ", therefore http response message 205 " e (a; b) " is associated with HTTP request message " (a, b) ".In addition, because http response message 208 " g (f; d) " comprises parameter " g ", wherein parameter " g " obtains according to the parameter " f " in HTTP request message " (f; d) " and " d ", therefore http response message 208 " g (f, d) " and HTTP request message " (f, d) " are associated.
Then, start from HTTP request message " (a; b) ", HTTP request message " (f; d) " respectively, identify the HTTP message be associated with HTTP request message " (a; b) ", the HTTP message be associated with HTTP request message " (f, d) ".Because HTTP request message " (a; b) " comprises parameter " a " and " b ", wherein parameter " a " and " b " are the inputs deriving from browser or user, so there is no the HTTP message be associated with HTTP request message " (a; b) ", thus terminate the identification carried out according to parameter " a " and " b ".Because HTTP request message " (f; d) " comprises parameter " f " and " d ", wherein parameter " f " derives from http response message 206 " f (b; c) ", and parameter " d " derives from the input of browser or user, therefore HTTP request message " (f, d) " and http response message 206 " f (b; c) " are associated, and terminate the identification carried out according to parameter " d " in addition.
Then, start from http response message 206 " f (b, c) ", identify and the HTTP message that http response message 206 " f (b, c) " is associated.Because http response message 206 " f (b; c) " comprises parameter " f ", wherein parameter " f " obtains according to the parameter " b " in HTTP request message " (b; c) " and " c ", therefore http response message 206 " f (b; c) " is associated with HTTP request message " (b, c) ".
Then, start from HTTP request message " (b, c) ", identify and the HTTP message that HTTP request message " (b, c) " is associated.Because HTTP request message " (b; c) " comprises parameter " b " and " c ", wherein parameter " b " and " c " are the inputs deriving from browser or user, so there is no the HTTP message be associated with HTTP request message " (b; c) ", thus terminate the identification carried out according to parameter " b " and " c ".
As can be seen here, the http response message that the source of the parameter in the HTTP request message associated with HTTP results messages comprises browser and associates with HTTP results messages.Such as, in the figure 2 example, the parameter " a " in HTTP request message " (a, b) " and " b " come from browser; And parameter " e " in HTTP request message " (e; f) " and " f " come from respectively be associated with the http response message 209 " h (e; g) " as HTTP results messages http response message 205 " e (a; b) ", http response message 206 " f (b; c) " in addition, the HTTP request message that the destination of the parameter in the http response message associated with HTTP results messages comprises browser and associates with HTTP results messages.Such as, in the figure 2 example, the destination as the parameter " h " in the http response message 209 " h (e, g) " of HTTP results messages is browser; And the destination of parameter " f " in http response message 206 " f (b, c) " is HTTP request message " g (f, d) ".
Therefore, from the HTTP message sequence " HTTP request message " (a) " between browser and worldwide website, http response message 204 " j (a) ", HTTP request message " (a, b) ", http response message " e (a, b) ", HTTP request message " (b, c) ", http response message 206 " f (b, c) ", HTTP request message " (e, f) ", http response message 207 " m (e, f) ", HTTP request message " (f, d) ", http response message 208 " g (f, d) ", HTTP request message " (e, f) ", http response message 209 " h (e, g) " ", the http response message 209 " h (e for drawing as HTTP results messages can be identified, g) the following HTTP request message relied on " and http response message: HTTP request message " (a, b) ", http response message " e (a, b) ", HTTP request message " (b, c) ", http response message 206 " f (b, c) ", HTTP request message " (f, d) ", http response message 208 " g (f, d) ", HTTP request message " (e, f) ".Therefore, in the figure 2 example, " HTTP request message " (a, b) ", http response message " e (a, b) "; HTTP request message " (b, c) ", http response message 206 " f (b, c) ", HTTP request message " (f, d) ", http response message 208 " g (f, d) "; HTTP request message " (e, f) " " be all the HTTP message be associated with the http response message 209 " h (e, g) " as HTTP results messages.On the other hand, in the figure 2 example, for drawing the http response message 209 " h (e; g) " as HTTP results messages, do not need to depend on " HTTP request message " (a) ", http response message 204 " j (a) " ", therefore " HTTP request message " (a) ", http response message 204 " j (a) " " is and http response message 209 " h (e, g) " the uncorrelated HTTP message as HTTP results messages.
Referring back to Fig. 1.After step 104, the method proceeds to step 106.In step 106, according to the order recorded in HTTP message sequence, the sequence of the HTTP request message associated with HTTP results messages and http response message is packaged into Web service, wherein, the input parameter of Web service comprises the parameter deriving from browser, and the output parameter of Web service comprises the result parameter in HTTP results messages.
As mentioned above, is carry out according to the order of a series of fixing HTTP message alternately between browser and worldwide website.In other words, from the input parameter that browser receives user's input, HTTP request message is sent according to input parameter to worldwide website by browser.Worldwide website generates http response message after receiving HTTP request message, these http response message can return to browser, also can send other HTTP request message further as the source of the parameter in other HTTP request message, constantly repeat this process until obtain the HTTP results messages corresponding with user's content of interest.Finally, HTTP results messages is returned to browser by worldwide website.
In addition, from HTTP message sequence mutual between browser with worldwide website, the sequence of HTTP request message and the http response message be associated with HTTP results messages has been have identified according to above-mentioned steps 104.The HTTP request message that these can be associated with HTTP results messages and http response message are called crucial HTTP message (HTTP request message and http response message), and are called useless HTTP message (HTTP request message and http response message) by with the uncorrelated HTTP request message of HTTP results messages and http response message.After identifying crucial HTTP message, can by the HTTP message of key according to its being linked in sequence in original fixing HTTP message sequence, thus the critical path formed the result parameter the HTTP results messages from the input parameter of browser to worldwide website, and then this critical path can be packaged into Web service.The input parameter of this Web service comprises the parameter deriving from browser or user's input, and the output parameter of this Web service service comprises the result parameter in HTTP results messages.
Owing to the critical path comprising crucial HTTP message can be packaged into Web service, to the parameter of browser or user's input be derived from as input parameter, and using the result parameter in HTTP results messages as output parameter, therefore can when not revising existing system, Web service is converted thereof into by simulating the existing service based on World Wide Web (WWW), thus a large amount of manpower and materials can be saved, and be easy to realize and application.In addition, owing to only comprising crucial HTTP message in the Web service after conversion, and eliminate useless HTTP message, the operational efficiency of the Web service therefore after conversion can be significantly improved.
Composition graphs 3 illustrates the process analysis result of HTTP message sequence being packaged into Web service.Fig. 3 is the schematic diagram that the process analysis result of HTTP message sequence being packaged into Web service is shown.
As shown in Figure 3, after receiving the parameter " a; b; c, d " inputted from browser or user, HTTP request message " (a) " can be sent according to parameter " a ", send HTTP request message " (a; b) " according to parameter " a " and " b ", send HTTP request message " (b, c) " according to parameter " b " and " c ".Receiving HTTP request message " (a) ", after " (a; b) " and " (b; c) ", http response message 204 " j (a) " can be generated according to HTTP request message " (a) ", generate http response message 205 " e (a; b) " according to HTTP request message " (a, b) ", http response message 206 " f (b, c) " is generated according to HTTP request message " (b, c) ".Wherein, http response message 204 " j (a) " can return to browser, http response message 205 " e (a, " and http response message 206 " f (b b), c) " can respectively as HTTP request message " (e, f) parameter " e " " and the source of " f " and send HTTP request message " (e further, f) ", http response message 206 " f (b, c) " and browser can respectively as HTTP request message " (f, d) parameter " f " " and the source of " d " and send HTTP request message " (f further, d) ".Then, http response message 207 " m (e, f) " can be generated according to HTTP request message " (e, f) ", generate http response message 208 " g (f, d) " according to HTTP request message " (f, d) ".Wherein, http response message 207 " m (e; f) " can browser be returned to, http response message 205 " e (a; b) " and http response message 208 " g (f; d) " can send HTTP request message " (e, g) " further respectively as the source of the parameter " e " in HTTP request message HTTP request message " (e, g) " and " g " in addition.Then, http response message 209 can be generated according to HTTP request message " (e, g) ".Finally, http response message 209 can be returned to browser as HTTP results messages.
In addition, according to above-mentioned steps 104, from the HTTP message sequence " HTTP request message " (a) " between browser and worldwide website, http response message 204 " j (a) ", HTTP request message " (a, b) ", http response message " e (a, b) ", HTTP request message " (b, c) ", http response message 206 " f (b, c) ", HTTP request message " (e, f) ", http response message 207 " m (e, f) ", HTTP request message " (f, d) ", http response message 208 " g (f, d) ", HTTP request message " (e, f) ", http response message 209 " h (e, g) " ", the HTTP message of following key can be identified: HTTP request message " (a, b) ", http response message " e (a, b) ", HTTP request message " (b, c) ", http response message 206 " f (b, c) ", HTTP request message " (f, d) ", http response message 208 " g (f, d) ", HTTP request message " (e, f) ", following useless HTTP message can be identified in addition: HTTP request message " (a) ", http response message 204 " j (a) ", HTTP request message " (e, f) ", http response message 207 " m (e, f) ".Then, as shown in the dotted line frame in Fig. 3, by the HTTP message of key according to " (HTTP request message " (a shown in dotted line frame, b) " → http response message " e (a, b) ", HTTP request message " (b, c) " → http response message 206 " f (b, c) " → HTTP request message " (f, d) " → http response message 208 " g (f, d) ") → HTTP request message " (e, f) " → http response message " h (e, being linked in sequence f) " ", thus formed from input parameter " a, b, c, d " to the critical path between the result parameter " h " in HTTP results messages 209, and then this critical path can be packaged into Web service 300.The input parameter of this Web service 300 comprises the parameter " a, b, c, d " deriving from browser or user's input, and the output parameter of this Web service 300 comprises the result parameter " h " in HTTP results messages 209.
It should be appreciated by those skilled in the art that the HTTP message in Fig. 2 and Fig. 3, parameter and between order and incidence relation etc. be only exemplary, can also adopt other HTTP message, parameter and between order and incidence relation etc.
Finally, the method terminates in step 108 place.
Below, the embodiment obtaining HTTP message sequence is described in detail according to Fig. 4.Fig. 4 illustrates the flow chart of the process of acquisition HTTP message sequence according to an embodiment of the invention.
As shown in Figure 4, in step 402, for each user in user generates corresponding thread marks.
When user passes through the service based on World Wide Web (WWW) on browser access worldwide website, browser can generate different thread marks for different users.Each thread marks corresponds to a user, thus can distinguish the HTTP message sequence of different user according to thread marks.
Then, in step 404, thread marks is inserted in corresponding user HTTP message mutual between browser and worldwide website.
Be after different users generates different thread marks in step 402, the thread marks of generation can be inserted in corresponding user HTTP message mutual between browser and worldwide website by browser.Particularly, the insertion of thread marks to HTTP message can be realized by browser plug-in.It will be understood by those skilled in the art that and other mode can also be adopted to realize the insertion of thread marks to HTTP message.Then, the HTTP message inserting thread marks is sent to worldwide website by browser.
Then, in step 406, the HTTP message sequence that each user distinguished in recording user according to thread marks is mutual between browser and worldwide website.
Can arrange proxy server between browser and worldwide website, this proxy server receives the HTTP message that browser sends and is also transmitted to worldwide website, and this proxy server receives HTTP message that worldwide website returns and is transmitted to browser.Proxy server is when the HTTP that the HTTP message or worldwide website that receive browser transmission return, according to thread marks entrained in HTTP message, judge this user belonging to HTTP message, then by this HTTP Message Record in the HTTP message sequence of the user belonging to it.
Finally, the method terminates in step 408 place.
According to the present embodiment, the present invention can support multi-user, thus can significantly improve the disposal ability of system, and can expand application of the present invention.
The detailed process of the process of the result based on web services in mark HTTP results messages is described in detail below in conjunction with Fig. 5 and Fig. 6.Fig. 5 illustrates the flow chart of the process of the result based on web services in mark HTTP results messages according to an embodiment of the invention; Fig. 6 is the schematic diagram of the process of the result based on web services illustrated in mark HTTP results messages.
As shown in Figure 5, in step 502, receive the result that user specifies the concurrent service based on World Wide Web (WWW) sent in HTTP results messages.
Return at worldwide website in the HTTP results messages of browser and can there is multiple content, wherein some content is the interested content of user, be namely user access on worldwide website based on World Wide Web (WWW) service desired by the result that obtains; Some is not then the interested content of user.Specify in multiple contents that user can comprise in HTTP results messages or the content of mark interested to user, namely specify or mark the result of the desired service based on World Wide Web (WWW) obtained of user.Can specify or mark by various mode the result obtained desired by user, such as, can realize above-mentioned appointment or marking Function by browser plug-in.After user specifies or marked the result of the service based on World Wide Web (WWW) obtained desired by it, the result based on web services that is specified or mark can be sent to the proxy server be arranged between browser and worldwide website.Proxy server can receive and preserve the result based on web services specified by user or mark of user's transmission.As an alternative, can user send to proxy server specified by user or mark based on the result of web services in insert thread tag, it, after the result based on web services specified by user or mark receiving user's transmission, is saved in the memory location of the user belonging to thread marks according to the thread tag of wherein carrying by proxy server respectively.
Below, composition graphs 6 illustrates the process of the result based on web services of to be specified by browser plug-in or in standard HTTP results messages.The display page 602 returning to the HTTP results messages of browser at worldwide website shows multiple content, such as, indicate the type identification 603 (being " translation " service in this example) based on the COS of World Wide Web (WWW), source language character string 604 (being English character string " go home " in this example), and object language character string 606 (" going home " for Chinese character string in this example) etc.Browser plug-in can detect the position of pointer (not shown) on the page 602.When pointer (not shown) is placed near the content on the page 602 by user, content near the pointer position detected according to the pointer position detected, can be specified or is labeled as the result of the interested service based on World Wide Web (WWW) of user by browser plug-in.Such as, when pointer (not shown) is placed near object language character string 606 (" going home " for Chinese character string in this example) by user, the result of the interested service based on World Wide Web (WWW) of user can be specified or be labeled as to object language character string 606 (" going home " for Chinese character string in this example) by browser plug-in, and with square frame, object language character string 606 (" going home " for Chinese character string in this example) can be surrounded, to represent the result of the service specified or marked based on World Wide Web (WWW).
After specifying or having marked the result based on the service of World Wide Web (WWW), browser plug-in can eject a dialog box 608.The result of the service based on World Wide Web (WWW) of having specified before can showing in dialog box 608 or mark, such as, " goes home " 614 for Chinese character string in this example.In dialog box 608, " sending mark " button 610 and " not sending " button 612 can also be shown.When user clicks " sending mark " button 610, the result (" going home " 614 for Chinese character string in this example) of the service based on World Wide Web (WWW) specified or mark can be sent to the proxy server be arranged between browser and worldwide website.If user clicks " not sending " button 612, then do not send the result (" going home " 614 for Chinese character string in this example) of the service based on World Wide Web (WWW) specified or marked.
Those skilled in the art are to be understood that, browser plug-in can also adopt other specific implementation to realize, as long as it can be specified or mark the result based on the service of World Wide Web (WWW) and the result of the service based on World Wide Web (WWW) specified or mark can be sent to proxy server.
Then, in step 504, the positional information of result parameter in HTTP results messages is extracted.
Proxy server, can result parameter corresponding to this result after the result that have received the service based on World Wide Web (WWW) specified by user or mark sent by browser, extracts the positional information of this result parameter in HTTP results messages.Positional information according to extracted result parameter can find result parameter exactly in HTTP results messages.Such as, this positional information can be the routing information of result parameter in HTTP results messages, such as relative path information or absolute path information etc.
Finally, the method terminates in step 506.
According to the present embodiment, user can be easy to the result of specifying or marking based on the service of World Wide Web (WWW), and can be easy to the position of positioning result parameter in HTTP results messages.
An embodiment of the process of calling packaged Web service is described in detail below in conjunction with Fig. 7.Fig. 7 illustrates the flow chart calling the process of packaged Web service according to an embodiment of the invention.
As shown in Figure 7, in step 702, receive calling Web service, wherein, the parameter deriving from browser is comprised to the input parameter called of Web service.
Or for Fig. 3, when other system needs to call packaged Web service 300, for the input parameter " a, b, c, d " of Web service 300 provides new parameter value respectively.
Then, in step 704, by upgrading the parameter in the HTTP request message that associates with HTTP results messages according to the parameter in current source, according to the order recorded in HTTP message sequence, repeat the sequence of HTTP request message and the http response message associated with HTTP results messages, until obtain current HTTP results messages.
Then the example of Fig. 3, according to input parameter " a; b; c " current parameter value, upgrade HTTP request message " (a, b) ", " b; c respectively " in parameter, and then obtain the currency of the parameter in http response message 205 " e (a, b) ", http response message 206 " f (b, c) "; The parameter in HTTP request message " (f; d) " is upgraded respectively according to the currency of the parameter in the current parameter value of input parameter " d " and http response message 206 " f (b; c) ", and then obtain the currency of the parameter in http response message 208 " g (f, d) "; According to the currency of the parameter in http response message 205 " e (a; b) ", http response message 208, upgrade the parameter in HTTP request message " (e; g) " respectively, and then obtain the currency of the parameter in http response message 209 " h (e; g) ", that is, finally obtain the currency of the parameter in HTTP results messages.
Then, in step 706, the result parameter in current HTTP results messages is returned to the called side of called Web service.
Then the example of Fig. 3, returns to the called side of Web service by the currency of the parameter in http response message 209 " h (e, g) ".
Finally, the method terminates in step 708 place.
As can be seen here, the value of the tag name in parameter one of at least can be specified by following: browser, Cookie and other http response message.Such as, in the example of fig. 3, the value of parameter " a, b, c, d " can be inputted by the user from browser and specify or specified by the value stored in Cookie; And the value of parameter " e " in HTTP request message " e, g " and " g " is specified by HTTP request message 205 " e (a, b) " and http response message 208 " g (f, d) " respectively.
According to the present embodiment, after converting the service based on World Wide Web (WWW) to Web service, this Web service can be called arbitrarily by other system, thus convert user oriented service the service of Machine To Machine to.
The configuration service based on World Wide Web (WWW) being converted to the equipment of Web service according to an embodiment of the invention is described in detail below in conjunction with Fig. 8 A.Fig. 8 A illustrates the block diagram service based on World Wide Web (WWW) being converted to the equipment of Web service according to an embodiment of the invention.
The equipment 800 service based on World Wide Web (WWW) being converted to Web service comprises: obtaining means 802, for obtaining user by the HTML (Hypertext Markup Language) HTTP message sequence mutual between browser and worldwide website of the viability based on World Wide Web (WWW) of browser access worldwide website; Analytical equipment 804, for according to comprising the HTTP results messages of result of the service based on World Wide Web (WWW) and result parameter wherein in HTTP message sequence, analyze HTTP message sequence, to identify parameter in the HTTP request message that associates with HTTP results messages and source thereof, and parameter in the http response message associated with HTTP results messages and destination thereof; And packaging system 806, for according to the order recorded in HTTP message sequence, the sequence of the HTTP request message associated with HTTP results messages and http response message is packaged into Web service, wherein, the input parameter of Web service comprises the parameter deriving from browser, and the output parameter of Web service comprises the result parameter in HTTP results messages.
To it is pointed out that in the embodiment relevant with device during involved relational language or statement and the above embodiment to method are according to an embodiment of the invention set forth the term that uses or state corresponding, not repeating them here.
Fig. 9 illustrates the block diagram of the obtaining means for obtaining HTTP message sequence according to an embodiment of the invention.As shown in Figure 9, obtaining means 802 comprises: generating apparatus 902, for generating corresponding thread marks for each user in user; Insertion apparatus 904, for inserting in corresponding user HTTP message mutual between browser and worldwide website by thread marks; And tape deck 906, for distinguishing each user in recording user HTTP message sequence mutual between browser and worldwide website according to thread marks.
Figure 10 illustrates the block diagram of the analytical equipment for analyzing HTTP message sequence according to an embodiment of the invention.As shown in Figure 10, analytical equipment 804 comprises: reception result device 1002, specifies the result of the concurrent service based on World Wide Web (WWW) sent for receiving user in HTTP results messages; And extraction element 1004, for extracting the positional information of result parameter in HTTP results messages.
Fig. 8 B illustrates the block diagram service based on World Wide Web (WWW) being converted to the equipment of Web service according to another embodiment of the present invention.As shown in Figure 8 B, the equipment 800 ' service based on World Wide Web (WWW) being converted to Web service comprising: obtaining means 802, for obtaining user by the HTML (Hypertext Markup Language) HTTP message sequence mutual between browser and worldwide website of the viability based on World Wide Web (WWW) of browser access worldwide website; Analytical equipment 804, for according to comprising the HTTP results messages of result of the service based on World Wide Web (WWW) and result parameter wherein in HTTP message sequence, analyze HTTP message sequence, to identify parameter in the HTTP request message that associates with HTTP results messages and source thereof, and parameter in the http response message associated with HTTP results messages and destination thereof; Packaging system 806, for according to the order recorded in HTTP message sequence, the sequence of the HTTP request message associated with HTTP results messages and http response message is packaged into Web service, wherein, the input parameter of Web service comprises the parameter deriving from browser, and the output parameter of Web service comprises the result parameter in HTTP results messages; Receiving calling device 808, for receiving calling Web service, wherein, the parameter deriving from browser being comprised to the input parameter called of Web service; Duplicating device 810, for the parameter by upgrading according to the parameter in current source in the HTTP request message that associates with HTTP results messages, according to the order recorded in HTTP message sequence, repeat the sequence of HTTP request message and the http response message associated with HTTP results messages, until obtain current HTTP results messages; And return mechanism 812, for the result parameter in current HTTP results messages being returned to the called side of called Web service.
Each device in above-mentioned Fig. 8 to Figure 10 such as can be configured to operate according to the working method of the corresponding steps in correlation method.Details is see the above-mentioned embodiment set forth for the method for the embodiment according to the application.Do not repeat them here.
Those skilled in the art understand, above-described according to each step in the receipt image processing method of various embodiments of the present invention or each functional device in receipt image processing apparatus, can combine arbitrarily according to actual needs, namely, treatment step in a receipt image processing method embodiment can combine with the treatment step in other receipt image processing method embodiment, or, functional device in a receipt image processing equipment embodiment can combine with the functional device in other receipt image processing equipment embodiment, so that the technical purpose desired by realizing.
In addition, the embodiment of the application also proposed a kind of program product, the executable instruction of this program product carrying machine, when performing instruction on messaging device, instruction makes messaging device execution according to the method service based on World Wide Web (WWW) being converted to Web service of the embodiment of the invention described above.
In addition, the embodiment of the application also proposed a kind of storage medium, this storage medium comprises machine-readable program code, when on messaging device during executive program code, program code makes described messaging device perform the method service based on World Wide Web (WWW) being converted to Web service according to the embodiment of the invention described above.
Correspondingly, be also included within of the present invention disclosing for carrying the above-mentioned storage medium storing the program product of the instruction code of machine-readable.Storage medium includes but not limited to floppy disk, CD, magneto optical disk, storage card, memory stick etc.
The equipment and each building block thereof that according to an embodiment of the invention the service based on World Wide Web (WWW) are converted to Web service are configured by software, firmware, hardware or its mode combined.Configure spendable concrete means or mode is well known to those skilled in the art, do not repeat them here.When being realized by software or firmware, to the messaging device (all-purpose computer 1600 such as shown in Figure 11) with specialized hardware structure, the program forming this software is installed from storage medium or network, this computer, when being provided with various program, can perform various functions etc.
In fig. 11, CPU (CPU) 1601 performs various process according to the program stored in read-only memory (ROM) 1602 or from the program that storage area 1608 is loaded into random access memory (RAM) 1603.In RAM 1603, also store the data required when CPU 1601 performs various process etc. as required.CPU 1601, ROM 1602 and RAM 1603 are connected to each other via bus 1604.Input/output interface 1605 is also connected to bus 1604.
Following parts are connected to input/output interface 1605: importation 1606 (comprising keyboard, mouse etc.), output 1607 (comprise display, such as cathode ray tube (CRT), liquid crystal display (LCD) etc., and loud speaker etc.), storage area 1608 (comprising hard disk etc.), communications portion 1609 (comprising network interface unit such as LAN card, modulator-demodulator etc.).Communications portion 1609 is via network such as internet executive communication process.As required, driver 1610 also can be connected to input/output interface 1605.Detachable media 1611 such as disk, CD, magneto optical disk, semiconductor memory etc. are installed on driver 1610 as required, and the computer program therefrom read is installed in storage area 1608 as required.
When series of processes above-mentioned by software simulating, from network such as internet or storage medium, such as detachable media 1611 installs the program forming software.
It will be understood by those of skill in the art that this storage medium is not limited to wherein having program stored therein shown in Figure 11, distributes the detachable media 1611 to provide program to user separately with equipment.The example of detachable media 1611 comprises disk (comprising floppy disk (registered trade mark)), CD (comprising compact disc read-only memory (CD-ROM) and digital universal disc (DVD)), magneto optical disk (comprising mini-disk (MD) (registered trade mark)) and semiconductor memory.Or hard disk that storage medium can be ROM 1602, comprise in storage area 1608 etc., wherein computer program stored, and user is distributed to together with comprising their equipment.
When instruction code is read by machine and performs, the above-mentioned method according to the embodiment of the present invention can be performed.
Finally, also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.In addition, when not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising key element and also there is other identical element.Moreover by wording " first ", " second ", the technical characteristic that " 3rd " etc. limits or parameter, do not have specific order or priority or importance degree because of the use of these wording.In other words, the use of these wording just in order to distinguish or identify these technical characteristics or parameter without any other restriction implication.
Be not difficult to find out by above description, the technical scheme that embodiments of the invention provide includes but not limited to:
Service based on World Wide Web (WWW) is converted to the method for Web service by remarks 1. 1 kinds, comprising:
Obtain based on the viability of World Wide Web (WWW) described browser and described worldwide website between the mutual HTML (Hypertext Markup Language) HTTP message sequence of user by browser access worldwide website;
According to comprising the described HTTP results messages based on the result of the service of World Wide Web (WWW) and result parameter wherein in described HTTP message sequence, analyze described HTTP message sequence, to identify parameter in the HTTP request message that associates with described HTTP results messages and source thereof, and parameter in the http response message associated with described HTTP results messages and destination thereof; And
According to the order recorded in described HTTP message sequence, the sequence of the described HTTP request message associated with described HTTP results messages and described http response message is packaged into described Web service, wherein, the input parameter of described Web service comprises the parameter deriving from described browser, and the output parameter of described Web service comprises the result parameter in described HTTP results messages.
The method of remarks 2. according to remarks 1, wherein, described acquisition step comprises:
For each user in described user generates corresponding thread marks;
Described thread marks is inserted in corresponding user HTTP message mutual between described browser and described worldwide website; And
The HTTP message sequence that each user recorded respectively in described user according to described thread marks is mutual between described browser and described worldwide website.
The method of remarks 3. according to remarks 1, wherein, described analytical procedure comprises:
Reception user specifies the result based on the service of World Wide Web (WWW) described in concurrent sending in described HTTP results messages; And
Extract the positional information of described result parameter in described HTTP results messages.
The method of remarks 4. according to remarks 3, further comprising the steps of:
Receive calling described Web service, wherein, the parameter deriving from described browser is comprised to the input parameter called of described Web service;
By upgrading the parameter in the described HTTP request message that associates with described HTTP results messages according to the parameter in current source, according to the order recorded in described HTTP message sequence, repeat the sequence of described HTTP request message and the described http response message associated with described HTTP results messages, until obtain current HTTP results messages; And
Result parameter in described current HTTP results messages is returned to the called side calling described Web service.
The method of remarks 5. according to remarks 4, wherein, described in return step and comprise:
According to described positional information, from described current HTTP results messages, obtain the result parameter in described current HTTP results messages.
The method of remarks 6. according to any one of remarks 1-5, wherein,
The described http response message that the source of the parameter in the described HTTP request message associated with described HTTP results messages comprises browser and associates with described HTTP results messages; And
The described HTTP request message that the destination of the parameter in the described http response message associated with described HTTP results messages comprises browser and associates with described HTTP results messages.
The method of remarks 7. according to any one of remarks 1-5, wherein, described parameter is the right of tag name in described HTTP message and value thereof, and the value of described tag name one of is at least specified by following: browser, Cookie and other http response message.
Service based on World Wide Web (WWW) is converted to the equipment of Web service by remarks 8. 1 kinds, comprising:
Obtaining means, for obtaining based on the viability of World Wide Web (WWW) described browser and described worldwide website between the mutual HTML (Hypertext Markup Language) HTTP message sequence of user by browser access worldwide website;
Analytical equipment, for according to comprising the described HTTP results messages based on the result of the service of World Wide Web (WWW) and result parameter wherein in described HTTP message sequence, analyze described HTTP message sequence, to identify parameter in the HTTP request message that associates with described HTTP results messages and source thereof, and parameter in the http response message associated with described HTTP results messages and destination thereof; And
Packaging system, for according to the order recorded in described HTTP message sequence, the sequence of the described HTTP request message associated with described HTTP results messages and described http response message is packaged into described Web service, wherein, the input parameter of described Web service comprises the parameter deriving from described browser, and the output parameter of described Web service comprises the result parameter in described HTTP results messages.
The equipment of remarks 9. according to remarks 8, wherein, described obtaining means comprises:
Generating apparatus, for generating corresponding thread marks for each user in described user;
Insertion apparatus, for inserting in corresponding user HTTP message mutual between described browser and described worldwide website by described thread marks; And
Tape deck, for recording each user in described user HTTP message sequence mutual between described browser and described worldwide website respectively according to described thread marks.
The equipment of remarks 10. according to remarks 8, wherein, described analytical equipment comprises:
Reception result device, specifies result based on the service of World Wide Web (WWW) described in concurrent sending for receiving user in described HTTP results messages; And
Extraction element, for extracting the positional information of described result parameter in described HTTP results messages.
Remarks 11. equipment according to claim 10, also comprises:
Receiving calling device, for receiving calling described Web service, wherein, the parameter deriving from described browser being comprised to the input parameter called of described Web service;
Duplicating device, for the parameter by upgrading according to the parameter in current source in the described HTTP request message that associates with described HTTP results messages, according to the order recorded in described HTTP message sequence, repeat the sequence of described HTTP request message and the described http response message associated with described HTTP results messages, until obtain current HTTP results messages; And
Return mechanism, for returning to the result parameter in described current HTTP results messages the called side calling described Web service.
The equipment of remarks 12. according to remarks 11, wherein, described return mechanism comprises:
Acquisition device, for according to described positional information, obtains the result parameter in described current HTTP results messages from described current HTTP results messages.
The equipment of remarks 13. according to any one of remarks 8-12, wherein,
The described http response message that the source of the parameter in the described HTTP request message associated with described HTTP results messages comprises browser and associates with described HTTP results messages; And
The described HTTP request message that the destination of the parameter in the described http response message associated with described HTTP results messages comprises browser and associates with described HTTP results messages.
The equipment of remarks 14. according to any one of remarks 8-12, wherein, described parameter is the right of tag name in described HTTP message and value thereof, and the value of described tag name one of is at least specified by following: browser, Cookie and other http response message.
Remarks 15. 1 kinds of program products, the executable instruction of this program product carrying machine, when performing described instruction on messaging device, described instruction makes the method that service based on World Wide Web (WWW) converted Web service of described messaging device execution according to any one of remarks 1-7.
Remarks 16. 1 kinds of storage mediums, this storage medium comprises machine-readable program code, when performing described program code on messaging device, described program code makes the method that service based on World Wide Web (WWW) converted Web service of described messaging device execution according to any one of remarks 1-7.
Although describe embodiments of the invention in detail by reference to the accompanying drawings above, it should be understood that execution mode described above is just for illustration of the present invention, and be not construed as limiting the invention.For a person skilled in the art, can make various changes and modifications above-mentioned execution mode and not deviate from the spirit and scope of the invention.Therefore, scope of the present invention is only limited by appended claim and equivalents thereof.

Claims (8)

1. the service based on World Wide Web (WWW) is converted to a method for Web service, comprising:
Obtain based on the viability of World Wide Web (WWW) described browser and described worldwide website between the mutual HTML (Hypertext Markup Language) HTTP message sequence of user by browser access worldwide website;
According to comprising the described HTTP results messages based on the result of the service of World Wide Web (WWW) and result parameter wherein in described HTTP message sequence, analyze described HTTP message sequence, to identify parameter in the HTTP request message that associates with described HTTP results messages and source thereof, and parameter in the http response message associated with described HTTP results messages and destination thereof; And
According to the order recorded in described HTTP message sequence, the sequence of the described HTTP request message associated with described HTTP results messages and described http response message is packaged into described Web service, wherein, the input parameter of described Web service comprises the parameter deriving from described browser, and the output parameter of described Web service comprises the result parameter in described HTTP results messages
Wherein, the step analyzing described HTTP message sequence comprises:
Reception user specifies the result based on the service of World Wide Web (WWW) described in concurrent sending in described HTTP results messages; And
Extract the positional information of described result parameter in described HTTP results messages.
2. method according to claim 1, wherein, the step obtaining described HTTP message sequence comprises:
For each user in described user generates corresponding thread marks;
Described thread marks is inserted in corresponding user HTTP message mutual between described browser and described worldwide website; And
The HTTP message sequence that each user recorded respectively in described user according to described thread marks is mutual between described browser and described worldwide website.
3. method according to claim 1 and 2, wherein,
The described http response message that the source of the parameter in the described HTTP request message associated with described HTTP results messages comprises browser and associates with described HTTP results messages; And
The described HTTP request message that the destination of the parameter in the described http response message associated with described HTTP results messages comprises browser and associates with described HTTP results messages.
4. method according to claim 1 and 2, wherein, described parameter is the right of tag name in described HTTP message and value thereof, and the value of described tag name one of is at least specified by following: browser, Cookie and other http response message.
5. the service based on World Wide Web (WWW) is converted to an equipment for Web service, comprising:
Obtaining means, for obtaining based on the viability of World Wide Web (WWW) described browser and described worldwide website between the mutual HTML (Hypertext Markup Language) HTTP message sequence of user by browser access worldwide website;
Analytical equipment, for according to comprising the described HTTP results messages based on the result of the service of World Wide Web (WWW) and result parameter wherein in described HTTP message sequence, analyze described HTTP message sequence, to identify parameter in the HTTP request message that associates with described HTTP results messages and source thereof, and parameter in the http response message associated with described HTTP results messages and destination thereof; And
Packaging system, for according to the order recorded in described HTTP message sequence, the sequence of the described HTTP request message associated with described HTTP results messages and described http response message is packaged into described Web service, wherein, the input parameter of described Web service comprises the parameter deriving from described browser, and the output parameter of described Web service comprises the result parameter in described HTTP results messages
Wherein, described analytical equipment comprises:
Reception result device, specifies result based on the service of World Wide Web (WWW) described in concurrent sending for receiving user in described HTTP results messages; And
Extraction element, for extracting the positional information of described result parameter in described HTTP results messages.
6. equipment according to claim 5, wherein, described obtaining means comprises:
Generating apparatus, for generating corresponding thread marks for each user in described user;
Insertion apparatus, for inserting in corresponding user HTTP message mutual between described browser and described worldwide website by described thread marks; And
Tape deck, for recording each user in described user HTTP message sequence mutual between described browser and described worldwide website respectively according to described thread marks.
7. the equipment according to claim 5 or 6, wherein,
The described http response message that the source of the parameter in the described HTTP request message associated with described HTTP results messages comprises browser and associates with described HTTP results messages; And
The described HTTP request message that the destination of the parameter in the described http response message associated with described HTTP results messages comprises browser and associates with described HTTP results messages.
8. the equipment according to claim 5 or 6, wherein, described parameter is the right of tag name in described HTTP message and value thereof, and the value of described tag name one of is at least specified by following: browser, Cookie and other http response message.
CN201110305755.9A 2011-09-23 2011-09-23 Service based on World Wide Web (WWW) is converted to the method and apparatus of Web service Expired - Fee Related CN103023947B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110305755.9A CN103023947B (en) 2011-09-23 2011-09-23 Service based on World Wide Web (WWW) is converted to the method and apparatus of Web service
JP2012205884A JP6003443B2 (en) 2011-09-23 2012-09-19 Method and apparatus for converting a web-based service into a web service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110305755.9A CN103023947B (en) 2011-09-23 2011-09-23 Service based on World Wide Web (WWW) is converted to the method and apparatus of Web service

Publications (2)

Publication Number Publication Date
CN103023947A CN103023947A (en) 2013-04-03
CN103023947B true CN103023947B (en) 2015-09-30

Family

ID=47972075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110305755.9A Expired - Fee Related CN103023947B (en) 2011-09-23 2011-09-23 Service based on World Wide Web (WWW) is converted to the method and apparatus of Web service

Country Status (2)

Country Link
JP (1) JP6003443B2 (en)
CN (1) CN103023947B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043522A (en) * 2006-03-22 2007-09-26 腾讯科技(深圳)有限公司 Web server based communication method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008117339A (en) * 2006-11-08 2008-05-22 Hitachi Ltd Method and device for defining shortcut to optional function of web application
JP5387061B2 (en) * 2009-03-05 2014-01-15 沖電気工業株式会社 Information conversion apparatus, information conversion method, information conversion program, and relay apparatus
WO2011058676A1 (en) * 2009-11-13 2011-05-19 パナソニック株式会社 Client terminal, content utilizing system, data transmitting/receiving method, program, and recording medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043522A (en) * 2006-03-22 2007-09-26 腾讯科技(深圳)有限公司 Web server based communication method and system

Also Published As

Publication number Publication date
JP2013069284A (en) 2013-04-18
JP6003443B2 (en) 2016-10-05
CN103023947A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN111274760B (en) Rich text data processing method and device, electronic equipment and computer storage medium
CN101946248B (en) Method and apparatus for providing API service and making API mash-up, and computer readable recording medium thereof
US8375362B1 (en) Wizard for web service search adapter
US20190179965A1 (en) Method and apparatus for generating information
CN111988171B (en) Method, proxy server and system for calling SOAP Web service based on RESTful style request
CN101089856A (en) Method for abstracting network data and web reptile system
CN1971563A (en) Method and apparatus for displaying web page conveniently
CN106951270B (en) Code processing method, system and server
CN112311654A (en) Instant messaging message processing method, device, medium and electronic equipment
CN105955946B (en) The circulation method and system of electronic document
CN111159590A (en) Serial connection method and device based on front-end and back-end service call links
CN114254661A (en) Method and system for translating application international language, electronic device and storage medium
CN114443905A (en) Interface document updating method and device, electronic equipment and readable storage medium
CN107870765B (en) Message splicing method and terminal
CN103023947B (en) Service based on World Wide Web (WWW) is converted to the method and apparatus of Web service
CN116346660A (en) Data processing method, device, equipment and medium based on dependent replacement service
CN101772196A (en) Method and system for processing message sent by mobile terminal and acting server
CN104239452A (en) Method and device for resource acquisition
CN101145936A (en) A method and system for adding tags in Web pages
JP2003196269A (en) Method for analyzing document represented in markup language
CN107463690B (en) Method and system for realizing quick link
JP2004295252A (en) Automatic authentication data input program and device
US20150363370A1 (en) System and Method of Email Document Classification
CN102135970A (en) Method and device for downloading website content
US7590634B2 (en) Detection of inaccessible resources

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150930

Termination date: 20200923

CF01 Termination of patent right due to non-payment of annual fee