CN104092778A - Data processing method and device for web service - Google Patents

Data processing method and device for web service Download PDF

Info

Publication number
CN104092778A
CN104092778A CN201410364837.4A CN201410364837A CN104092778A CN 104092778 A CN104092778 A CN 104092778A CN 201410364837 A CN201410364837 A CN 201410364837A CN 104092778 A CN104092778 A CN 104092778A
Authority
CN
China
Prior art keywords
website
list
type
user information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410364837.4A
Other languages
Chinese (zh)
Inventor
王丽兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING LIANJIA ZHONGYING NETWORK TECHNOLOGY CO., LTD.
Original Assignee
Beijing Connection Time-Space Network Communication Facilities Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Connection Time-Space Network Communication Facilities Co Ltd filed Critical Beijing Connection Time-Space Network Communication Facilities Co Ltd
Priority to CN201410364837.4A priority Critical patent/CN104092778A/en
Publication of CN104092778A publication Critical patent/CN104092778A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a data processing method and device for web service. The data processing method for the web service comprises the steps that a first website obtains agent user information, wherein the agent user information is the information of users accessing a second website through the first website, and comprises the request information and the identity information of the users; the first website sends the agent user information to the second website; the first website receives the response information from the second website, wherein the response information is generated by the second website according to the request information; the first website sends the response information to the users corresponding to the identity information. According to the method and the device, the problem that efficiency is low when butt joint of the web service is carried out in the prior art is solved, and therefore the effect of improving the efficiency of butt joint of the web service can be improved.

Description

The data processing method of web services and device
Technical field
The present invention relates to internet arena, in particular to a kind of data processing method and device of web services.
Background technology
Now between a lot of websites due to the needs of development and business cooperation of self, often by program, the web services of different web sites is docking together, to realize the sharing of web services of website.When prior art is carried out web services docking, be access in direction website access side by website the related resources such as web interface, docking document and docking technique support staff are provided, website access square tube is crossed and is read docking document, coding calls the web interface of the website side of being access in, undertaken, after uniting and adjustment test, corresponding web services being carried out to docking operation by docking technique support staff.
But, in docking operation, not only need the side of being access in that web interface is provided, also need the side's of access coding to call the web interface of the side of being access in.In addition, both sides coordinate under complete mating operation, make to have expended a large amount of human costs and time cost in the process of both sides' communication and coordination, also may due to design the unreasonable interface variation that causes, thereby make docking time long.
For carrying out the lower problem of web services when docking efficiency in prior art, effective solution is not yet proposed at present.
Summary of the invention
Main purpose of the present invention is to provide a kind of data processing method and device of web services, the lower problem of efficiency while carrying out web services docking in prior art to solve.
To achieve these goals, according to an aspect of the present invention, provide a kind of data processing method of web services.Comprise according to the data processing method of web services of the present invention: the first website obtains proxy user information, wherein, described proxy user information is by the user's of described first website visiting the second website information, and described proxy user information comprises described user's solicited message and described user's identity information; Described proxy user information is sent to described the second website by described the first website; Described the first website receives the response message from described the second website, and wherein, described response message is that described the second website is according to the response message of described request Information generation; And described response message is sent to the user that described identity information is corresponding by described the first website.
Further, before described proxy user information is sent to described the second website by described the first website, described data processing method also comprises: described the first website obtains the type of temporary file in described the second website, wherein, described temporary file is for storage agent user profile, and the type of described temporary file comprises the first kind and Second Type; The type that detects temporary file in described the second website is the first kind or Second Type; If the temporary file type of described the second website is the first kind, described proxy user information is saved as to first kind file, wherein, the first kind file of preservation is sent to described the second website by described the first website; And if the temporary file type of described the second website is Second Type, described proxy user information is saved as to Second Type file, wherein, the Second Type file of preservation is sent to described the second website by described the first website.
Further, before described proxy user information is sent to described the second website by described the first website, described data processing method also comprises: described proxy user information is saved as to first kind file and Second Type file; The type that detects the temporary file of described the second website is the first kind or Second Type, wherein, in the time that the type of the temporary file of described the second website is the first kind, the first kind file of preservation is sent to described the second website; In the time that the type of the temporary file of described the second website is Second Type, the Second Type file of preservation is sent to described the second website.
Further, described the first website comprises the first list, described the second website comprises the second list, wherein, described the first website generates described the first list according to described the second list, described the first list is collected and is used for filling in to described the second list proxy user information, and the first website obtains proxy user information and comprises: described the first website obtains described proxy user information by described the first list; Described proxy user information is preserved in described the first website; Described the first website is sent to described the second website by described proxy user information and comprises: obtain described the second list; Described the first website is filled to the proxy user information of preservation in described the second list.
Further, described the first website generates described the first list according to described the second list and comprises: described the first website obtains the form information of the second list described in described the second website; The parameter in described form information is resolved in described the first website; And described the first website simulates described the second list according to described parameter, obtain the first list.
To achieve these goals, according to a further aspect in the invention, provide a kind of data processing equipment of web services.Comprise according to the data processing equipment of web services of the present invention: the first acquiring unit, for obtaining proxy user information by the first website, wherein, described proxy user information is by the user's of described first website visiting the second website information, and described proxy user information comprises described user's solicited message and described user's identity information; The first transmitting element, for being sent to described the second website by described the first website by described proxy user information; Receiving element, for receiving the response message from described the second website by described the first website, wherein, described response message is that described the second website is according to the response message of described request Information generation; And second transmitting element, for described response message being sent to the user that described identity information is corresponding by described the first website.
Further, described data processing equipment also comprises: second acquisition unit, for before described proxy user information is sent to described the second website by described the first website, obtain the type of temporary file in described the second website by described the first website, wherein, described temporary file is for storage agent user profile, and the type of described temporary file comprises the first kind and Second Type; The first detecting unit is the first kind or Second Type for detection of the type of temporary file in described the second website; The first storage unit, in the time that the temporary file type of described the second website is the first kind, saves as first kind file by described proxy user information, and wherein, the first kind file of preservation is sent to described the second website by described the first website; And second storage unit, in the time that the temporary file type of described the second website is Second Type, described proxy user information is saved as to Second Type file, wherein, the Second Type file of preservation is sent to described the second website by described the first website.
Further, described data processing equipment also comprises: the 3rd storage unit, before described proxy user information being sent to described the second website in described the first website, saves as first kind file and Second Type file by described proxy user information; The second detecting unit, type for detection of the temporary file of described the second website is the first kind or Second Type, wherein, in the time that the type of the temporary file of described the second website is the first kind, the first kind file of preservation is sent to described the second website; In the time that the type of the temporary file of described the second website is Second Type, the Second Type file of preservation is sent to described the second website.
Further, described the first website comprises the first list, described the second website comprises the second list, wherein, described data processing equipment also comprises generation unit, and for generating described the first list by described the first website according to described the second list, described the first list is identical with described the second list, described the first acquiring unit comprises: the first acquisition module, for obtaining described proxy user information by described the first list; Preserve module, for preserving described proxy user information by described the first website; Described the first transmitting element comprises: the second acquisition module, for obtaining described the second list; Fill in module, for the proxy user information of preservation being filled to described the second list by described the first website.
Further, described generation unit comprises: the 3rd acquiring unit, for obtain the form information of the second list described in described the second website by described the first website; Resolution unit, for resolving the parameter of described form information by described the first website; And analogue unit, for described the second list being simulated according to described parameter by described the first website, obtain the first list.
By the present invention, adopt the first website to obtain proxy user information, wherein, proxy user information is by the user's of first website visiting the second website information, proxy user information comprises user's solicited message and user's identity information; Proxy user information is sent to the second website by the first website; The first website receives the response message from the second website, and wherein, response message is the response message that the second website generates according to solicited message; And first website response message is sent to the user that identity information is corresponding, solved the lower problem of efficiency while carrying out web services docking in prior art, and then reached the effect that improves web services docking efficiency.
Brief description of the drawings
The accompanying drawing that forms the application's a part is used to provide a further understanding of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the flow chart of the data processing method of the web services of the embodiment of the present invention;
Fig. 2 is the flow chart of the data processing method of web services according to the preferred embodiment of the invention;
Fig. 3 is the list schematic diagram according to the embodiment of the present invention;
Fig. 4 is the flow chart of the data processing method of the web services of another preferred embodiment according to the present invention
Fig. 5 is according to the schematic diagram of the data processing equipment of the web services of the embodiment of the present invention; And
Fig. 6 is the schematic diagram of the data processing equipment of web services according to the preferred embodiment of the invention.
Embodiment
It should be noted that, in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
In order to make those skilled in the art person understand better the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and needn't be used for describing specific order or precedence.The data that should be appreciated that such use suitably can exchanged in situation, so as embodiments of the invention described herein can with except diagram here or describe those order enforcement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, for example, those steps or unit that process, method, system, product or the equipment that has comprised series of steps or unit is not necessarily limited to clearly list, but can comprise clearly do not list or for these processes, method, product or equipment intrinsic other step or unit.
The embodiment of the present invention provides a kind of data processing method of web services.
Fig. 1 is according to the flow chart of the data processing method of the web services of the embodiment of the present invention.As shown in the figure, this data processing method comprises the steps:
Step S102, the first website obtains proxy user information, and wherein, proxy user information is by the user's of first website visiting the second website information, and proxy user information comprises user's solicited message and user's identity information.
User can pass through first website visiting the second website, the first website is as proxy web site, act on behalf of the second website and accept user's access request, and send response message to user, the response message of returning is the information obtaining that user's request responded by the second website, and the first website is acted on behalf of the second website response message is sent to user.
Which the website no matter user accesses is, all carried identity information and the solicited message of this calling party in the time of access websites.For example, the second website offers the service that gas filling card is supplemented with money, and user supplements with money to gas filling card by first website visiting the second website, so, user first website in the process of supplementing with money obtains user's IP address, and obtains number 100RMB that user need to supplement with money and the card number of gas filling card.
Step S104, proxy user information is sent to the second website by the first website.
Because the first website is as agency, do not need user's request to make response, after therefore the first website obtains user's proxy user information, the information of obtaining is sent to the second website, by the second website, user's request is processed.
For example, user's IP address and the proxy user information such as number 100RMB, oiling card number 1234567 of supplementing with money are sent to the second website by the first website.
Step S106, the first website receives the response message from the second website, and wherein, response message is the response message that the second website generates according to solicited message.
Proxy user information is sent to the second website by the first website, and the second website generates response message according to the solicited message of proxy user information.For example, the gas filling card that it is 1234567 that user asks to card number is supplemented 100RMB with money, and the gas filling card that the second website is card number 1234567 according to this request is supplemented with money, and the information of successful recharging is sent to the first website.
Step S108, response message is sent to the user that identity information is corresponding by the first website.
First the first website receives the response message that the second website sends, and the user that this response message is corresponding is determined according to proxy user information in the first website, and response message is sent to the user that identity information is corresponding.
Pass through above-described embodiment, utilize the first website to obtain proxy user information, and proxy user information is sent to the second website, the second website responds user's request, and response message is sent to the first website, the first website is transmitted to user by response message again, user's solicited message and identity information collected in the first website, and send to the second website to process these information, and without directly response user's request, by obtaining proxy user information and proxy user information being transmitted to the second website, make the web services of the second website to offer user by the first website, in this process, do not need the second website that website interface and technical data are provided, do not need the first website to call the interface routine of the second website yet, thereby the efficiency that the web services that has improved the first website docks with the web services of the second website, and then reduce the cost of web services docking.
Preferably, in order to ensure that the proxy user information that the first website sends to the second website can correctly be received by the second website, the object of docking with the web services of the second website to realize the web services of the first website, before proxy user information is sent to the second website by the first website, can first determine that the file type whether file type of the proxy user information that sends to the second website can receive with the second website is identical, method is as follows:
The first, first obtains the temporary file type of the second website, then according to the temporary file type of the second website, the proxy user information of obtaining is stored as to the temporary file corresponding with the temporary file type of the second website.
Particularly, before proxy user information is sent to the second website by the first website, this data processing method also comprises:
The first website obtains the type of temporary file in the second website, and wherein, temporary file is for storage agent user profile, and the type of temporary file comprises the first kind and Second Type.
The type that detects temporary file in the second website is the first kind or Second Type.
If the temporary file type of the second website is the first kind, proxy user information is saved as to first kind file, wherein, the first kind file of preservation is sent to the second website by the first website.And
If the temporary file type of the second website is Second Type, proxy user information is saved as to Second Type file, wherein, the Second Type file of preservation is sent to the second website by the first website.
Obtain the type of temporary file in the second website, for example, the type of temporary file is cookies or session etc., and wherein, the first kind can be cookies, and Second Type can be session.In temporary file, store proxy user information, from temporary file, can parse the user's of access websites identity information etc.Temporary file be website in order to distinguish user identity, carry out identity tracking and the data of storing.As an example of cookies example, temporary file is introduced below.Cookies is generated by server end, send to User-Agent (being generally browser), and preserved by browser, the Cookie that browser just sends this preservation when the same website of request next time is to server, server can know whether this user is validated user and whether needs again to login etc. like this, server can arrange or read inclusion information in Cookies, and maintenance customer is with the session status of server whereby.Because server can arrange or read the information comprising in cookies, also can preserve the information in cookies, as user's identity information etc., server can keep and user's session status by temporary file.
Detect the type of temporary file in the second website, according to the type of temporary file in the second website detecting, the proxy user information of obtaining is saved as to the file of respective type, and the file of this preservation is sent to the second website.
For example, in the second website detecting, temporary file type is cookies, proxy user information is saved as to cookies file, and in the time sending proxy user information to the second website, cookies file is sent to the second website, thereby the object that reaches the proxy user information that the first website is obtained and send to the second website, the second website can parse user's the content such as solicited message and identity information from cookies.
In like manner, in the second website detecting, temporary file type is session, proxy user information is saved as to session file, and in the time sending proxy user information to the second website, session file is sent to the second website, thereby the object that reaches the proxy user information that the first website is obtained and send to the second website, the second website can parse user's the content such as solicited message and identity information from session.
The second, the proxy user information of obtaining is saved as to dissimilar temporary file, detect again the type of the temporary file of the second website, and select to send to the second website with the corresponding temporary file of temporary file type of the second website, thereby the proxy user information that the first website is obtained in realization sends to the object of the second website.
Particularly, before proxy user information is sent to the second website by the first website, data processing method also comprises:
Proxy user information is saved as to first kind file and Second Type file.The type that detects the temporary file of the second website is the first kind or Second Type, wherein, in the time that the type of the temporary file of the second website is the first kind, the first kind file of preservation is sent to the second website.In the time that the type of the temporary file of the second website is Second Type, the Second Type file of preservation is sent to the second website.
Obtaining after proxy user information, proxy user information is being saved as to first kind file and Second Type file, sending for the file of the type selecting respective type of the temporary file of the second different websites.For example, after obtaining proxy user information, proxy user information is saved as to cookies and session, if the temporary file type of the second website of user's access is cookies, the cookies the first website being preserved sends to the second website, if the temporary file type of the second website of user's access is session, the session the first website being preserved sends to the second website, like this, if when a user initiates request for different user, can select corresponding temporary file to send, and without the temporary file type that reselects preservation.
Pass through above-described embodiment, after obtaining proxy user information, proxy user information is saved as corresponding type by temporary file type according to the second website, and the temporary file after preserving is sent to the second website, or after proxy user information is saved as to different temporary file types, select the temporary file identical with the temporary file type of the second website to send to the second website, no matter be above-mentioned which kind of mode, in the time that sending, the second website all can select the temporary file identical with the temporary file type of the second website, thereby ensure that the proxy user information that the first website sends can be received and identified out identity information and the solicited message etc. in file by the second website, after the second website receives proxy user information, user is used as in the first website and solicited message is responded, and send response message to the first website, thereby without calling interface in the situation that, just can carry out the docking of web services and share, and then improve docking efficiency.
When website provides web services, the list that user provides by website is submitted demand for services to website, website is received user's demand for services and is responded by list, and as shown in Figure 2, Fig. 2 shows the flow chart of the data processing method of web services according to the preferred embodiment of the invention.The first website comprises the first list, and the second website comprises the second list, and wherein, the first website generates the first list according to the second list, and the first list is collected and is used for filling in to the second list proxy user information, and as shown in the figure, this data processing method comprises:
Step S202, the first website obtains proxy user information by the first list.The first list is collected and is used for filling in to the second list proxy user information, and user can obtain with user identical when the second form request web services and experience when by the first form request web services.User fills in the first list in the first website and submits service request to, and therefore, the list that the first website can be submitted to by user obtains proxy user information.For example, the first list is the list that gas filling card is supplemented with money, user has filled in and has supplemented number 100RMB with money in the first list, oiling card number 1234567, can also before supplementing with money or while supplementing with money, submit user account information to, as login account, login IP address etc., the first list that fill in by user the first website is collected these proxy user information.
Step S2044, proxy user information is preserved in the first website.The proxy user information getting is preserved in the first website, because proxy user information has been preserved in the first website, therefore the first website can send request information and identity information to the second website with user's identity, and can after receiving from the response message of the second website, determine identity information corresponding to this response message, and response message is sent to the user that identity information is corresponding.
Step S206, obtains the second list.
Step S208, the first website is filled to the proxy user information of preservation in the second list.
The first website obtains the list of the second website, i.e. the second list, because the first list and the second list are identical list, so the content that the second list need to be filled in can be obtained by the first list, utilize after the first list obtains proxy user information, the content of analysis agent user profile, and corresponding contents is filled up in the second list.For example, the second list need to be filled in and refuels card number and supplement number with money, be 1234567 and the first list has obtained oiling card number, supplementing number with money is 100RMB, and fill in these data to the second list, now the first website, the first website is used as user by the second website, the request that the first website is sent is processed, and the gas filling card that is 1234567 to oiling card number is supplemented 100RMB with money, sends the message of successful recharging after successful recharging to the first website.
In above-described embodiment, the first website is by preserving proxy user information, and fill in proxy user information in the second list, make the second website that user is used as in the first website, the i.e. data interaction of the second website and the first website is equivalent to the second website and user's data interaction, proxy user information is transmitted to the second website by the first website, the response message of the second website is transmitted to user, and the first website itself does not process and responds user's request, the web services of not only having realized the second website can carry out in the first website, can also avoid complicated interface interchange, not only improve the docking efficiency of web services, also save a large amount of costs such as human cost and time cost.
For example: user carries out gas filling card by website B and supplements with money, the gas filling card existing on the B of website is supplemented list and the gas filling card on the A of website with money, and to supplement list with money identical, user is filled in and is supplemented with money number by the list of website B, after website B obtains user's charging request, the identity informations such as user's IP information and solicited message are sent to website A, website A is receiving after the request that website B sends out, website B is used as to user and returns to response message (as successful recharging) for solicited message, website B receives after the response message of website A, according to user's IP information, response message is sent to user, successful recharging is shown to user in the first website.
Further, in order to make the proxy user information of the first website collection meet the needs of the second list, require the first list identical with the second list, in order to generate first list identical with the second list, the first website generates the first list according to the second list and comprises: the first website obtains the form information of the second list in the second website.The parameter in form information is resolved in the first website.And first website according to parameter, the second list is simulated, obtain the first list.
The form information of the second list comprises the frame information of the second list etc., also comprise for example gauge outfit information such as " account ", " password ", resolve the parameter in form information by the second list of showing, as the relation between various piece in the second list, parameter by the second list is simulated the second list, obtains the first list.
For example, the second list is that gas filling card is as shown in Figure 3 supplemented list with money.The first website obtains the frame structure of the second list, and generates the first list according to the title of each input frame and position relationship, and first form fields the second list of generation is identical, and the first list of showing by the first website as shown in Figure 3.
Because the first list shown in Fig. 3 is the list of showing to user, the first list is identical with the second list again, so, when passing through the first web site requests web services, user passes through the second web site requests web services as schemed, not only ensure that the web services docking between the first website and the second website is shared, also promoted user's experience.
Fig. 4 is the flow chart of the data processing method of the web services of another preferred embodiment according to the present invention.As shown in the figure, this data processing method is carried out in such a way:
1. submission form, user 100 submits the first presentate to the first website 200.
2. analog subscriber submission form, the first website 200 analog subscribers 100 are submitted the first list to the second website 300.
3. process form request, the request in the first list, for example charging request are processed in the second website 300.
4. return data and session, response data is returned to the first website 200 in the second website 300, and returns to the session of the second website and the first website.
5. data processing keep session, user's proxy user information is preserved in the first website 200, resolves the identity information in proxy user information, and return information is sent to the user that identity information is corresponding, keeps session.
6. returned content, response message is returned to user in the first website, as pointed out user's successful recharging or supplementing with money unsuccessful.
7. show content, show response message etc. by the first website to user, for example, show that " successful recharging " is to point out user successfully to supplement with money.
Pass through above-described embodiment, user's proxy user information is collected in the first website by list, and proxy user information is kept on the first website, the first website forwards user's solicited message to the second website, response is made according to solicited message in the second website, and response message is sent to the first website, the first website is transmitted to user by response message again, in this process, data interaction is carried out with user's identity and the second website in the first website, and user's request is not made to response, just transmitted response information is to user, not only having realized the first website docks with the web services of the second website, can also avoid complicated mating operation, only need be to the second website Forward Proxy user profile, forward the response message from the second website to user, thereby save cost, improve docking efficiency.
The data processing equipment of the web services that the data processing method of the web services of the embodiment of the present invention can provide by the embodiment of the present invention is carried out, the data processing method of the web services that the data processing equipment of the web services of the embodiment of the present invention also can provide for the execution embodiment of the present invention.
Fig. 5 is according to the schematic diagram of the data processing equipment of the web services of the embodiment of the present invention.As shown in the figure, this data processing equipment comprises the first acquiring unit 20, the first transmitting element 40, receiving element 60 and the second transmitting element 80.
The first acquiring unit 20 is for obtaining proxy user information by the first website, and wherein, proxy user information is by the user's of first website visiting the second website information, and proxy user information comprises user's solicited message and user's identity information.
User can pass through first website visiting the second website, the first website is as proxy web site, act on behalf of the second website and accept user's access request, and send response message to user, the response message of returning is the information obtaining that user's request responded by the second website, and the first website is acted on behalf of the second website response message is sent to user.
Which the website no matter user accesses is, all carried identity information and the solicited message of this calling party in the time of access websites.For example, the second website offers the service that gas filling card is supplemented with money, and user supplements with money to gas filling card by first website visiting the second website, so, user first website in the process of supplementing with money obtains user's IP address, and obtains number 100RMB that user need to supplement with money and the card number of gas filling card.
The first transmitting element 40 is for being sent to the second website by the first website by proxy user information.
Because the first website is as agency, do not need user's request to make response, after therefore the first website obtains user's proxy user information, the information of obtaining is sent to the second website, by the second website, user's request is processed.
For example, user's IP address and the proxy user information such as number 100RMB, oiling card number 1234567 of supplementing with money are sent to the second website by the first website.
Receiving element 60 is for receiving the response message from the second website by the first website, and wherein, response message is the response message that the second website generates according to solicited message.
Proxy user information is sent to the second website by the first website, and the second website generates response message according to the solicited message of proxy user information.For example, the gas filling card that it is 1234567 that user asks to card number is supplemented 100RMB with money, and the gas filling card that the second website is card number 1234567 according to this request is supplemented with money, and the information of successful recharging is sent to the first website.
The second transmitting element 80 is for sending to by response message the user that identity information is corresponding by the first website.
First the first website receives the response message that the second website sends, and the user that this response message is corresponding is determined according to proxy user information in the first website, and response message is sent to the user that identity information is corresponding.
Pass through above-described embodiment, utilize the first website to obtain proxy user information, and proxy user information is sent to the second website, the second website responds user's request, and response message is sent to the first website, the first website is transmitted to user by response message again, user's solicited message and identity information collected in the first website, and send to the second website to process these information, and without directly response user's request, by obtaining proxy user information and proxy user information being transmitted to the second website, make the web services of the second website to offer user by the first website, in this process, do not need the second website that website interface and technical data are provided, do not need the first website to call the interface routine of the second website yet, thereby the efficiency that the web services that has improved the first website docks with the web services of the second website.
Preferably, in order to ensure that the proxy user information that the first website sends to the second website can correctly be received by the second website, the object of docking with the web services of the second website to realize the web services of the first website, before proxy user information is sent to the second website by the first website, can first determine that the file type whether file type of the proxy user information that sends to the second website can receive with the second website is identical, carry out by following data processing equipment:
The first, first obtains the temporary file type of the second website by following data processing equipment, then according to the temporary file type of the second website, the proxy user information of obtaining is stored as to the temporary file corresponding with the temporary file type of the second website.
Second acquisition unit, for before proxy user information is sent to the second website by the first website, obtain the type of temporary file in the second website by the first website, wherein, temporary file is for storage agent user profile, and the type of temporary file comprises the first kind and Second Type.
The first detecting unit is the first kind or Second Type for detection of the type of temporary file in the second website.
The first storage unit, in the time that the temporary file type of the second website is the first kind, saves as first kind file by proxy user information, and wherein, the first kind file of preservation is sent to the second website by the first website.And
The second storage unit, in the time that the temporary file type of the second website is Second Type, saves as Second Type file by proxy user information, and wherein, the Second Type file of preservation is sent to the second website by the first website.
Obtain the type of temporary file in the second website, for example, the type of temporary file is cookies or session etc., and wherein, the first kind can be cookies, and Second Type can be session.In temporary file, store proxy user information, from temporary file, can parse the user's of access websites identity information etc.Temporary file be website in order to distinguish user identity, carry out identity tracking and the data of storing.As an example of cookies example, temporary file is introduced below.Cookies is generated by server end, send to User-Agent (being generally browser), and preserved by browser, the Cookie that browser just sends this preservation when the same website of request next time is to server, server can know whether this user is validated user and whether needs again to login etc. like this, server can arrange or read inclusion information in Cookies, and maintenance customer is with the session status of server whereby.Because server can arrange or read the information comprising in cookies, also can preserve the information in cookies, as user's identity information etc., server can keep and user's session status by temporary file.
Detect the type of temporary file in the second website, according to the type of temporary file in the second website detecting, the proxy user information of obtaining is saved as to the file of respective type, and the file of this preservation is sent to the second website.
For example, in the second website detecting, temporary file type is cookies, proxy user information is saved as to cookies file, and in the time sending proxy user information to the second website, cookies file is sent to the second website, thereby the object that reaches the proxy user information that the first website is obtained and send to the second website, the second website can parse user's the content such as solicited message and identity information from cookies.
In like manner, in the second website detecting, temporary file type is session, proxy user information is saved as to session file, and in the time sending proxy user information to the second website, session file is sent to the second website, thereby the object that reaches the proxy user information that the first website is obtained and send to the second website, the second website can parse user's the content such as solicited message and identity information from session.
The second, by following apparatus, the proxy user information of obtaining is saved as to dissimilar temporary file, detect again the type of the temporary file of the second website, and select to send to the second website with the corresponding temporary file of temporary file type of the second website, thereby the proxy user information that the first website is obtained in realization sends to the object of the second website.
The 3rd storage unit, before proxy user information being sent to the second website in the first website, saves as first kind file and Second Type file by proxy user information.
The second detecting unit, is the first kind or Second Type for detection of the type of the temporary file of the second website, wherein, in the time that the type of the temporary file of the second website is the first kind, the first kind file of preservation is sent to the second website.
In the time that the type of the temporary file of the second website is Second Type, the Second Type file of preservation is sent to the second website.
Proxy user information is saved as to first kind file and Second Type file.The type that detects the temporary file of the second website is the first kind or Second Type, wherein, in the time that the type of the temporary file of the second website is the first kind, the first kind file of preservation is sent to the second website.In the time that the type of the temporary file of the second website is Second Type, the Second Type file of preservation is sent to the second website.
Obtaining after proxy user information, proxy user information is being saved as to first kind file and Second Type file, sending for the file of the type selecting respective type of the temporary file of the second different websites.For example, after obtaining proxy user information, proxy user information is saved as to cookies and session, if the temporary file type of the second website of user's access is cookies, the cookies the first website being preserved sends to the second website, if the temporary file type of the second website of user's access is session, the session the first website being preserved sends to the second website, like this, if when a user initiates request for different user, can select corresponding temporary file to send, and without the temporary file type that reselects preservation.
Pass through above-described embodiment, after obtaining proxy user information, proxy user information is saved as corresponding type by temporary file type according to the second website, and the temporary file after preserving is sent to the second website, or after proxy user information is saved as to different temporary file types, select the temporary file identical with the temporary file type of the second website to send to the second website, no matter be above-mentioned which kind of mode, in the time that sending, the second website all can select the temporary file identical with the temporary file type of the second website, thereby ensure that the proxy user information that the first website sends can be received and identified out identity information and the solicited message etc. in file by the second website, after the second website receives proxy user information, user is used as in the first website and solicited message is responded, and send response message to the first website, thereby without calling interface in the situation that, just can carry out the docking of web services and share, and then improve docking efficiency.
When website provides web services, the list that user provides by website is submitted demand for services to website, website is received user's demand for services and is responded by list, and as shown in Figure 6, Fig. 6 shows the schematic diagram of the data processing equipment of web services according to the preferred embodiment of the invention.The first website comprises the first list, the second website comprises the second list, and wherein, the first website generates the first list according to the second list, the first list is collected and is used for filling in to the second list proxy user information, and this data processing equipment comprises: the first acquiring unit 20 and the first transmitting element 40.
The first acquiring unit 20 comprises: the first acquisition module 201, and for obtaining proxy user information by the first list.Preserve module 202, for preserving proxy user information by the first website.
The first list is collected and is used for filling in to the second list proxy user information, and user can obtain with user identical when the second form request web services and experience when by the first form request web services.User fills in the first list in the first website and submits service request to, and therefore, the list that the first website can be submitted to by user obtains proxy user information.For example, the first list is the list that gas filling card is supplemented with money, user has filled in and has supplemented number 100RMB with money in the first list, oiling card number 1234567, can also before supplementing with money or while supplementing with money, submit user account information to, as login account, login IP address etc., the first list that fill in by user the first website is collected these proxy user information.
The proxy user information getting is preserved in the first website, because proxy user information has been preserved in the first website, therefore the first website can send request information and identity information to the second website with user's identity, and can after receiving from the response message of the second website, determine identity information corresponding to this response message, and response message is sent to the user that identity information is corresponding.
The first transmitting element 40 comprises: the second acquisition module 401, and for obtaining the second list.Fill in module 402, for the proxy user information of preservation being filled to the second list by the first website.
The first website obtains the list of the second website, i.e. the second list, because the first list and the second list are identical list, so the content that the second list need to be filled in can be obtained by the first list, utilize after the first list obtains proxy user information, the content of analysis agent user profile, and corresponding contents is filled up in the second list.For example, the second list need to be filled in and refuels card number and supplement number with money, be 1234567 and the first list has obtained oiling card number, supplementing number with money is 100RMB, and fill in these data to the second list, now the first website, the first website is used as user by the second website, the request that the first website is sent is processed, and the gas filling card that is 1234567 to oiling card number is supplemented 100RMB with money, sends the message of successful recharging after successful recharging to the first website.
In above-described embodiment, the first website is by preserving proxy user information, and fill in proxy user information in the second list, make the second website that user is used as in the first website, the i.e. data interaction of the second website and the first website is equivalent to the second website and user's data interaction, proxy user information is transmitted to the second website by the first website, the response message of the second website is transmitted to user, and the first website itself does not process and responds user's request, the web services of not only having realized the second website can carry out in the first website, can also avoid complicated interface interchange, not only improve the docking efficiency of web services, also save a large amount of costs such as human cost and time cost.
For example: user carries out gas filling card by website B and supplements with money, the gas filling card existing on the B of website is supplemented list and the gas filling card on the A of website with money, and to supplement list with money identical, user is filled in and is supplemented with money number by the list of website B, after website B obtains user's charging request, the identity informations such as user's IP information and solicited message are sent to website A, website A is receiving after the request that website B sends out, website B is used as to user and returns to response message (as successful recharging) for solicited message, website B receives after the response message of website A, according to user's IP information, response message is sent to user, successful recharging is shown to user in the first website.
Further, in order to make the proxy user information of the first website collection meet the needs of the second list, require the first list identical with the second list, in order to generate first list identical with the second list, generation unit comprises: the 3rd acquiring unit, resolution unit and analogue unit.
The 3rd acquiring unit, for obtaining the form information of second website the second list by the first website.
Resolution unit, for resolving the parameter of form information by the first website.And
Analogue unit, for the second list being simulated according to parameter by the first website, obtains the first list.
The form information of the second list comprises the frame information of the second list etc., also comprise for example gauge outfit information such as " account ", " password ", resolve the parameter in form information by the second list of showing, as the relation between various piece in the second list, parameter by the second list is simulated the second list, obtains the first list.
For example, the second list is that gas filling card is as shown in Figure 3 supplemented list with money.The first website obtains the frame structure of the second list, and generates the first list according to the title of each input frame and position relationship, and first form fields the second list of generation is identical, and the first list of showing by the first website as shown in Figure 3.
Because the first list shown in Fig. 3 is the list of showing to user, the first list is identical with the second list again, so, when passing through the first web site requests web services, user passes through the second web site requests web services as schemed, not only ensure that the web services docking between the first website and the second website is shared, also promoted user's experience.
Pass through above-described embodiment, user's proxy user information is collected in the first website by list, and proxy user information is kept on the first website, the first website forwards user's solicited message to the second website, response is made according to solicited message in the second website, and response message is sent to the first website, the first website is transmitted to user by response message again, in this process, data interaction is carried out with user's identity and the second website in the first website, and user's request is not made to response, just transmitted response information is to user, not only having realized the first website docks with the web services of the second website, can also avoid complicated mating operation, only need be to the second website Forward Proxy user profile, forward the response message from the second website to user, thereby save cost, improve docking efficiency.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a data processing method for web services, is characterized in that, comprising:
The first website obtains proxy user information, and wherein, described proxy user information is by the user's of described first website visiting the second website information, and described proxy user information comprises described user's solicited message and described user's identity information;
Described proxy user information is sent to described the second website by described the first website;
Described the first website receives the response message from described the second website, and wherein, described response message is that described the second website is according to the response message of described request Information generation; And
Described response message is sent to the user that described identity information is corresponding by described the first website.
2. data processing method according to claim 1, is characterized in that, before described proxy user information is sent to described the second website by described the first website, described data processing method also comprises:
Described the first website obtains the type of temporary file in described the second website, and wherein, described temporary file is for storage agent user profile, and the type of described temporary file comprises the first kind and Second Type;
The type that detects temporary file in described the second website is the first kind or Second Type;
If the temporary file type of described the second website is the first kind, described proxy user information is saved as to first kind file, wherein, the first kind file of preservation is sent to described the second website by described the first website; And
If the temporary file type of described the second website is Second Type, described proxy user information is saved as to Second Type file, wherein, the Second Type file of preservation is sent to described the second website by described the first website.
3. data processing method according to claim 1, is characterized in that, before described proxy user information is sent to described the second website by described the first website, described data processing method also comprises:
Described proxy user information is saved as to first kind file and Second Type file;
The type that detects the temporary file of described the second website is the first kind or Second Type,
Wherein, in the time that the type of the temporary file of described the second website is the first kind, the first kind file of preservation is sent to described the second website;
In the time that the type of the temporary file of described the second website is Second Type, the Second Type file of preservation is sent to described the second website.
4. data processing method according to claim 1, it is characterized in that, described the first website comprises the first list, described the second website comprises the second list, wherein, described the first website generates described the first list according to described the second list, and described the first list is collected and is used for filling in to described the second list proxy user information
The first website obtains proxy user information and comprises: described the first website obtains described proxy user information by described the first list; Described proxy user information is preserved in described the first website;
Described the first website is sent to described the second website by described proxy user information and comprises: obtain described the second list; Described the first website is filled to the proxy user information of preservation in described the second list.
5. data processing method according to claim 4, is characterized in that, described the first website generates described the first list according to described the second list and comprises:
Described the first website obtains the form information of the second list described in described the second website;
The parameter in described form information is resolved in described the first website; And
Simulate described the second list according to described parameter described the first website, obtains the first list.
6. a data processing equipment for web services, is characterized in that,
The first acquiring unit, for obtaining proxy user information by the first website, wherein, described proxy user information is by the user's of described first website visiting the second website information, and described proxy user information comprises described user's solicited message and described user's identity information;
The first transmitting element, for being sent to described the second website by described the first website by described proxy user information;
Receiving element, for receiving the response message from described the second website by described the first website, wherein, described response message is that described the second website is according to the response message of described request Information generation; And
The second transmitting element, for sending to by described response message the user that described identity information is corresponding by described the first website.
7. data processing equipment according to claim 6, is characterized in that, described data processing equipment also comprises:
Second acquisition unit, for before described proxy user information is sent to described the second website by described the first website, obtain the type of temporary file in described the second website by described the first website, wherein, described temporary file is for storage agent user profile, and the type of described temporary file comprises the first kind and Second Type;
The first detecting unit is the first kind or Second Type for detection of the type of temporary file in described the second website;
The first storage unit, in the time that the temporary file type of described the second website is the first kind, saves as first kind file by described proxy user information, and wherein, the first kind file of preservation is sent to described the second website by described the first website; And
The second storage unit, in the time that the temporary file type of described the second website is Second Type, saves as Second Type file by described proxy user information, and wherein, the Second Type file of preservation is sent to described the second website by described the first website.
8. data processing equipment according to claim 6, is characterized in that, described data processing equipment also comprises:
The 3rd storage unit, before described proxy user information being sent to described the second website in described the first website, saves as first kind file and Second Type file by described proxy user information;
The second detecting unit, is the first kind or Second Type for detection of the type of the temporary file of described the second website,
Wherein, in the time that the type of the temporary file of described the second website is the first kind, the first kind file of preservation is sent to described the second website;
In the time that the type of the temporary file of described the second website is Second Type, the Second Type file of preservation is sent to described the second website.
9. data processing equipment according to claim 6, it is characterized in that, described the first website comprises the first list, described the second website comprises the second list, wherein, described data processing equipment also comprises generation unit, for generating described the first list by described the first website according to described the second list, described the first list is identical with described the second list
Described the first acquiring unit comprises: the first acquisition module, for obtaining described proxy user information by described the first list; Preserve module, for preserving described proxy user information by described the first website;
Described the first transmitting element comprises: the second acquisition module, for obtaining described the second list; Fill in module, for the proxy user information of preservation being filled to described the second list by described the first website.
10. data processing equipment according to claim 9, is characterized in that, described generation unit comprises:
The 3rd acquiring unit, for obtaining the form information of the second list described in described the second website by described the first website;
Resolution unit, for resolving the parameter of described form information by described the first website; And
Analogue unit, for described the second list being simulated according to described parameter by described the first website, obtains the first list.
CN201410364837.4A 2014-07-28 2014-07-28 Data processing method and device for web service Pending CN104092778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410364837.4A CN104092778A (en) 2014-07-28 2014-07-28 Data processing method and device for web service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410364837.4A CN104092778A (en) 2014-07-28 2014-07-28 Data processing method and device for web service

Publications (1)

Publication Number Publication Date
CN104092778A true CN104092778A (en) 2014-10-08

Family

ID=51640458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410364837.4A Pending CN104092778A (en) 2014-07-28 2014-07-28 Data processing method and device for web service

Country Status (1)

Country Link
CN (1) CN104092778A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127108A (en) * 2006-08-15 2008-02-20 阿里巴巴公司 Method for accessing a information source via a computer system
CN102946396A (en) * 2012-11-26 2013-02-27 北京奇虎科技有限公司 User agent device, host web server and user authentication method
CN103327100A (en) * 2013-06-21 2013-09-25 华为技术有限公司 Resource processing method and site server
US20130283186A1 (en) * 2012-04-23 2013-10-24 Hon Hai Precision Industry Co., Ltd. File uploading method and electronic device for fast file location
CN103581212A (en) * 2012-07-18 2014-02-12 百度在线网络技术(北京)有限公司 Automatic form filling method, system and device based on cloud analysis

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127108A (en) * 2006-08-15 2008-02-20 阿里巴巴公司 Method for accessing a information source via a computer system
US20130283186A1 (en) * 2012-04-23 2013-10-24 Hon Hai Precision Industry Co., Ltd. File uploading method and electronic device for fast file location
CN103581212A (en) * 2012-07-18 2014-02-12 百度在线网络技术(北京)有限公司 Automatic form filling method, system and device based on cloud analysis
CN102946396A (en) * 2012-11-26 2013-02-27 北京奇虎科技有限公司 User agent device, host web server and user authentication method
CN103327100A (en) * 2013-06-21 2013-09-25 华为技术有限公司 Resource processing method and site server

Similar Documents

Publication Publication Date Title
CN106528432B (en) The construction method and device of test scene data bury a test method
US8060616B1 (en) Managing CDN registration by a storage provider
CN108153798B (en) Page information processing method, device and system
RU2589327C2 (en) Method and device for sending message to user or users of group through microblog
CN103369009B (en) A kind of online answering method, equipment and system
CN102655481B (en) A kind of instant messaging chat content inspection method based on webpage and system
CN101930439B (en) The Website processing device of the various model mobile phone of a kind of adaptation and application thereof
CN103124263A (en) Advertisement serving system, advertisement serving device and advertisement server
CN104965690B (en) Data processing method and device
CN102904765B (en) The method and apparatus that data report
CN104980512A (en) Method and equipment for providing target object based on mobile application
CN106790085B (en) Vulnerability scanning method, device and system
CN104410546A (en) Testing method and device of real-time processing system
CN104144206A (en) Method, system and device for loading interface
KR20160011304A (en) System and method for providing advertisement based on web using wifi network
CN103902446A (en) Network server automated testing method and device
CN104394041A (en) Access log generation method and device
CN104780184A (en) Method of using geographical location information for load balancing
CN103618639A (en) Method, device and system for monitoring media data
CN101938427B (en) Re-directing method and device in global load balance
CN105824893A (en) Method and device for accessing and loading two-dimensional link
CN107634854B (en) Service data processing method and device
CN103020241A (en) Dynamic page cache method and system based on session
CN103973819A (en) Method, related device and system for responding to request for community domain name
CN103516665A (en) User data generation method and system, client side and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: BEIJING LIANJIA ZHONGYING NETWORK TECHNOLOGY CO.,

Free format text: FORMER OWNER: NETWORK COMMUNICATIONS EQUIPMENT CO., LTD., BEIJING UNISPACE

Effective date: 20141105

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100124 CHAOYANG, BEIJING TO: 100022 CHAOYANG, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20141105

Address after: 100022 Beijing City, Chaoyang District No. 39 East Third Ring Road, North SOHO office building A Room 302

Applicant after: BEIJING LIANJIA ZHONGYING NETWORK TECHNOLOGY CO., LTD.

Address before: 100124 C building, No. 17, Jin Changan building, 82 Middle East Fourth Ring Road, Beijing, Chaoyang District

Applicant before: Beijing connection time-space network communication facilities company limited

WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141008

WD01 Invention patent application deemed withdrawn after publication