Embodiment
Describe the feature and embodiment of the present invention in detail below with reference to drawings and Examples, content is enough to make any
Those skilled in the art can fully understand that the present invention solves the technological means applied of technical problem and implemented according to this easily,
Attainable effect of the invention is realized whereby.
The present invention is applied on web page server, when client sends the service request of mistake, according to client institute
The service catalogue corresponding to service request and destination service sent, judges client it is desirable that the approximate clothes of request
Business.
The destination service that the present invention is carried is the program that web page server can be allowed to perform.When web page server receives visitor
After the service request that family end is sent, web page server can be attempted to perform destination service corresponding with service request, so as to producing
Respond to the webpage of client.In general, destination service is a web page files or one section of program, but the present invention not with
This is limited.
The approximate service that is carried of the present invention is similar to destination service, is all the program performed by web page server, and target
The title of service is similar with the approximate title serviced.For example, if destination service is web page files, approximate service also can be one
Web page files, and the file name of destination service is similar with the approximate file name serviced, and if destination service is procedure code,
Approximate service also can be a procedure code, and the program name of destination service is similar with the approximate program name serviced.In this hair
In bright, the title of destination service is similar with the approximate title serviced the composition structure for being probably letter, it is similar etc. to pronounce, but this hair
It is bright to be not limited thereto.
The foundation service catalogue and destination service that following elder generation is carried with Fig. 1 present invention judge the system architecture approximately serviced
Figure come illustrate the present invention system operation.As shown in figure 1, the system of the present invention contains transport module 110, service state and judges mould
Block 120, service catalogue detection module 130, approximate directory lookup module 150, destination service judge module 160, approximate service are searched
Seek module 170 and performing module 180.
Transport module 110 is responsible for receiving the service request that client 400 is transmitted.
Service state judge module 120 is responsible for judging target clothes corresponding with the service request that transport module 110 is received
Whether business cannot respond to the service request.Service state judge module 120 can detect the system information of web page server, if net
Page server produces the system information of request error, then it represents that destination service corresponding with service request cannot respond to the service please
Ask, service state judge module 120 can also intercept the data that web page server responds to client 400, if web page server
Respond to and error message is included in the data of client 400, such as represent the error message of 404,500 error codes, same table
Show whether destination service corresponding with service request cannot respond to the service request.
Service catalogue detection module 130 is responsible for judging target corresponding with service request in service state judge module 120
Service cannot respond to after service request, detect that service catalogue corresponding with service request whether there is.
Approximate directory lookup module 150 is responsible for detecting clothes corresponding with service request in service catalogue detection module 130
After business catalogue is not present, the title approximate catalogue close with service catalogue is searched.Wherein, can by approximate directory lookup module 150
It can not hunt out approximate catalogue, it is also possible to hunt out one or more approximate catalogues.
In general, service catalogue hair similar or title with the approximate catalogue alphabetical composition structure for being probably title
Sound is similar etc., and approximate directory lookup module 150 can use the judgment technology of close words, judges that letter composition structure is similar
Approximate catalogue, approximate directory lookup module 150 can also use the judgment technology of approximate pronunciations, using corresponding with service request
The title of service catalogue compares the title of all catalogues in the server comprising the present invention one by one, so as to judging that pronunciation is close
Approximate catalogue, but the service catalogue that is carried of the present invention is similar with the title of approximate catalogue is not to constitute structure and pronounce
Limit.
Destination service judge module 160 is responsible for searching title in approximate directory lookup module 150 similar to service catalogue
Approximate catalogue after, judge in the approximate catalogue that approximate directory lookup module 150 is hunted out whether there is destination service.
Destination service judge module 160 also is responsible for detecting in service catalogue detection module 130 corresponding with service request
After service catalogue is present, judge that destination service whether there is in service catalogue.
Approximate service discovery module 170 is responsible for judging approximate directory lookup module 150 in destination service judge module 160
All it is not present in the approximate catalogue searched after destination service, title is searched in each approximate catalogue similar to destination service
Approximate service.
Approximate service discovery module 170 also is responsible for judging in destination service judge module 160 corresponding with service request
It is not present in service catalogue after destination service corresponding with service request, title is searched in service catalogue similar to destination service
Approximate service.
In the present invention, though approximate service discovery module 170 be by approximate directory lookup module 150 searched it is near
Like searching approximate service in catalogue, or in service catalogue corresponding with service request, searchs is approximate services, and approximately service is searched
Seeking module 170 all possibly can not hunt out approximate service, it is also possible to hunt out one or more approximate services.
Performing module 180 is responsible for passing the webpage for responding service request back client 400 by transport module 110.Wherein,
Performing module 180 is searched in approximate service discovery module 170 in the approximate catalogue that approximate directory lookup module 150 is searched
To after approximate service, or searched in service catalogue corresponding with service request in approximate service discovery module 170 approximate
After service, the approximate service in approximate catalogue or service catalogue is performed, and approximate service when institute will be performed by transport module 110
The response page of generation passes client 400 back.
It is near that performing module 180 also judges that approximate directory lookup module 150 is searched in destination service judge module 160
Like existing in catalogue after destination service, the destination service in approximate catalogue is performed, and performance objective is taken by transport module 110
Produced response page passes client 400 back during business.
What performing module 180 can not also be searched in approximate service discovery module 170 by approximate directory lookup module 150
Searched in approximate catalogue after approximate service, or judge target corresponding with service request in destination service judge module 160
After service is present in service catalogue corresponding with service request, by transport module 110 by the guidance to website page pre-established
Pass client 400 back.Wherein, transport module 110 pass back client 400 the guidance to website page would generally include website in own
The link (link) of service.
In practice, if approximate service discovery module 170 hunts out multiple approximate clothes in approximate catalogue or service catalogue
Business, then performing module 180 client 400 back can be passed the services selection page by transport module 110.Wherein, services selection page
Bread is containing all titles approximately serviced hunted out by approximate service discovery module 170, so as to providing making for client 400
User selects one of them approximately to service.And an approximate clothes are selected in the services selection page in the user of client 400
After business, client 400 can be passed back approximate services corresponding services selection data with selected.Transport module 110 is being received
After the services selection data that client 400 is passed back, performing module 180 can be performed selected near according to services selection data
Client 400 is passed back like response page produced when servicing, then approximately servicing execution by transport module 110.
Then the operation system and method for the present invention are explained with one embodiment, and refer to what Fig. 2A present invention was carried
The method flow diagram for judging approximately to service according to service catalogue and destination service.
If it is correct that user have input domain name in client 400, but service catalogue or the net of destination service mistake
Network address (url), it is assumed that be " http://www.ivt.com/html/dect ", then client 400 can be by the network with mistake
The corresponding service request in address is sent to the web page server for performing and having the present invention, wherein, perform the web service for having the present invention
The domain name of device is identical with the domain name that user is inputted in client 400.
After transport module 110 receives the service request (step 202) that client 400 is transmitted, service state judges
Module 120 can first judge whether destination service corresponding with service request can respond service request, if with service request pair
The destination service answered can respond service request, then it represents that the corresponding destination service of service request is correctly performed.
And if service state judge module 120 judges that destination service corresponding with service request cannot respond to service request
(step 206), service catalogue detection module 130 can detect that service catalogue corresponding with service request whether there is (step
210), rather than by transport module 110 by error message client 400 is passed back.In this example, it is assumed that corresponding with service request
Service catalogue be "/html ", but the present invention is not limited thereto.
If service catalogue detection module 130 detects that "/html " is not present service catalogue corresponding with service request, closely
The title approximate catalogue (step 220) close with service catalogue can be searched like directory lookup module 150.In the present embodiment,
Assuming that approximate directory lookup module 150 hunt out a letter composition and service catalogue " close/html " approximate catalogue "
Htm ", but the present invention is not limited thereto.
After approximate directory lookup module 150 hunts out the title approximate catalogue (step 220) close with service catalogue, mesh
Mark service judge module 160, which may determine that, whether there is target in the approximate catalogue that approximate directory lookup module 150 is hunted out
Service (step 230).In this example, it is assumed that entitled " dect " of destination service, but the present invention is not limited thereto.
If destination service judge module 160 judges there is destination service in approximate catalogue, performing module 180 can be held
Destination service " dect " in the approximate catalogue " htm " of row so that destination service " dect " produces corresponding according to service request
Response page, and pass the response page produced by destination service " dect " back client 400 (step as transport module 110
290)。
And if destination service judge module 160 is judged destination service is not present in approximate catalogue, approximate service discovery
Module 170 can be attempted to search title and destination service phase in the approximate catalogue that approximate directory lookup module 150 is hunted out
As approximately service (step 240).
If approximate service discovery module 170 does not search approximate service in approximate catalogue, performing module 180 can be with
By transport module 110 by guidance to website page response to client 400 (step 250), but, in this example, it is assumed that
The pronunciation that approximate service discovery module 170 searches a title in approximate catalogue " htm " is similar to destination service " dect "
Approximate service " dict ", but the present invention is not limited thereto.
After approximate service discovery module 170 searches approximate service in approximate catalogue, performing module 180 can be performed
Approximate service " dict " in approximate catalogue " htm " so that approximate service " dict " produces corresponding sound according to service request
The page is answered, then, the response page produced by transport module 110 can approximately service " dict " passes (step of client 400 back
280)。
Wherein, if approximate service discovery module 170 is in approximate catalogue " htm ", except hunting out approximate service " dict "
Outside, also hunt out other approximate services, such as the approximate service of entitled " doct ", then by shown in the flow such as Fig. 2 B,
Performing module 180, which can first pass through transport module 110, to pass client 400 (step 282) back comprising the services selection page, be passed
Return in the services selection page of client 400 to include and all approximately serviced by what approximate service discovery module 170 was hunted out
Title, that is, the information of " dict " and " doct " is included in the services selection page, the use so as to inquiring client 400
Person is intended to which is selected approximately service, and provides one of user's selection of client 400.
And client 400 user after an approximate service is selected in the services selection page, it is for example, entitled "
Dict " approximate service, client 400 can be passed back and the corresponding services selection data of selected approximate service " dict ".Such as
This, transport module 110 just can receive the services selection data that client 400 is passed back, then, and performing module 180 can be according to
According to the services selection data received by transport module 110, selected approximate service " dict " is performed, then, passes through transmission
Module 110 passes response page produced when performing approximate service " dict " back client 400 (step 286).
Be subsequently returning to service catalogue detection module 130, if service catalogue detection module 130 detect it is corresponding with service request
Service catalogue there is (step 210), then destination service judge module 160, which may determine that, judges destination service with the presence or absence of in clothes
In catalogue of being engaged in (step 260).In the present embodiment, be also judged as service catalogue " in/html " with the presence or absence of destination service "
dect」。
Because existing service state judge module 120 has determined that destination service corresponding with service request cannot respond to
Service request, therefore, if destination service judge module 160 judges there is destination service in service catalogue, then it represents that target takes
Business can not normally perform, so performing module 180 can by transport module 110 by guidance to website page response to client
400 (steps 250).
In this example, it is assumed that destination service judge module 160 judges that " target is not present in service catalogue in/html "
Service " dect ", in this way, approximate service discovery module 170 can be attempted to search title and destination service phase in service catalogue
As approximately service (step 270).If approximate service discovery module 170 can not search title in service catalogue and be taken with target
The similar approximate service of business, then performing module 180 equally can by transport module 110 by guidance to website page response to client
400 (steps 250).But, in this example, it is assumed that approximate service discovery module 170 in service catalogue " in/html " really
Search the title approximate service " dict " similar with destination service " dect ", then performing module 180 can perform approximate catalogue "
Approximate service " dict " in htm " so that approximate service " dict " produces corresponding response page according to service request, and
Afterwards, the response page produced by transport module 110 can approximately service " dict " passes client 400 (step 280) back.
Wherein, if approximate service discovery module 170 is in service catalogue " html ", except hunting out approximate service " dict "
Outside, other approximate services are also hunted out, then performing module 180 equally can first pass through transmission as shown in Fig. 2 B flow
Module 110 passes the services selection page of the title comprising all approximate services being searched out back client 400 (step
282), and after transport module 110 just can receive the services selection data that client 400 is passed back, according to transport module
Services selection data received by 110, perform selected approximate service, then will perform approximate clothes by transport module 110
Produced response page passes client 400 (step 286) back during business.
In this way, even if the service request that client 400 is sent can not be responded by destination service corresponding with service request,
But the user that the present invention can attempt to find out client 400 originally expects the service " dict " asked, even if the present invention can not be looked for
Go out user expect request service, the present invention also can by transport module 110 by guidance to website page response to client 400,
Rather than client 400 is passed in error message of leaving back.
In summary, it is known that the present invention is to have with the difference between prior art judges mesh corresponding with service request
Mark service cannot respond to after service request, to service catalogue corresponding with service request or similar to the title of service catalogue near
Like the similar approximate service of the title that destination service corresponding with service request is searched in catalogue, and it is produced to respond approximate service
Response page technological means, can solve present in prior art draw when network address mistake by this technological means
The problem of user is to the approximate page is led, and then reaches technology effect of the seamless jump page.
Furthermore, foundation service catalogue of the invention and destination service judge the method approximately serviced, can be achieved in hardware,
In the combination of software or hardware and software, also it can realize or be interspersed among with different elements some in a centralised manner in computer system
The dispersing mode of the computer system of interconnection is realized.
While it is disclosed that embodiment as above, simply described content and be not used to directly limit the present invention
Scope of patent protection.Any those skilled in the art, on the premise of spirit and scope disclosed in this invention are not departed from, to this
Make a little variation retouching in the formal and details of the implementation of invention, belong to the scope of patent protection of the present invention.The present invention
Scope of patent protection, must be still defined by the appended claims scope person of defining.