Adaptation method, adapter and adapter system for network service communication
Abstract
A method for adaptation, an adapter and adapter system for the network service communication are provided in the present invention. Said method includes: transforming a network service request received from a first entity into a network service request comprehended by a second entity; sending the transformed network service request to the second entity; receiving a returned network service response responded by the second entity for said network service request; transforming the received network service response into a network service response comprehended by the first entity; returning the transformed network service response to the first entity. A client application system can send a network service request in its own format, a network service request corresponding to a third party system is not needed, and the repeated compiling of such network service code is avoided.
Claims
exact text as granted — not AI-modified1 . A method for adaptation for the network service communication between a first entity and a second entity, comprising:
transforming a first network service request received from a first entity into a second network service request comprehended by a second entity, wherein said transformation of the first network service request includes:
identifying operations involved in the first network service request; and
depending on correspondences between operations used by the second entity and the identified operations, mapping the identified operations into the operations used by the second entity;
sending the transformed second network service request to the second entity; receiving a first returned network service response responded by the second entity for the first network service request; transforming the received first network service response into a second network service response comprehended by the first entity; and returning the transformed second network service response to the first entity; wherein the transformation of the received first network service response includes:
parsing data in the received first network service response; and
generating the second network service response with response format comprehended by the first entity based on the parsed data and correspondences between the response format comprehended by the first entity and response format received by the first entity;
wherein parsing data in the received first network service response includes parsing the data based on information carried by the received first network service response and linking relations between the data.
2 . The method of claim 1 , further comprising:
depending on correspondences between content format comprehended by the second entity and content format carried by the first network service request, transforming the content format carried by the network service request into the content format comprehended by the second entity.
3 . The method of claim 1 , further comprising:
extracting login information from the first network service request, so as to certify the first network service request according to certification information.
4 . The method of claim 2 , wherein said content transformation includes:
parsing data in the first network service request; and generating content with content format comprehended by the second entity based on the parsed data and correspondences between the content format comprehended by the second entity and the content format carried by the first network service request.
5 . The method of claim 4 , wherein parsing data in the first network service request includes:
parsing the data based on information carried in the content in the first network service request and linking relations between the data.
6 . The method of claim 1 , wherein the linking relations between the data in the received first network service response are based on a single-level XML structure of plane structure format.
7 . The method of claim 5 , wherein the linking relations between the data in the first network service request are based on a single-level XML structure of plane structure format.
8 . The method of claim 1 , further comprising at least one of the following:
configuring correspondences between the operations used by the second entity and operations used by the first entity; configuring certification information; configuring correspondences between the response format comprehended by the first entity and the response format comprehended by the second entity; and configuring correspondences between content format comprehended by the second entity and the response format comprehended by the first entity.
9 . The method of claim 1 , wherein the first entity is a client application system or a data application object, and the second entity is a third party system.
10 . The method of claim 1 , wherein the first entity is a third party system, and the second entity is a client application system or a data application object.
11 . An adapter for the network service communication between a first entity and a second entity, comprising:
a request conversion device for transforming a first network service request received from a first entity into a second network service request comprehended by a second entity, wherein said transformation of the first network service request includes:
identifying operations involved in the first network service request; and
depending on correspondences between operations used by the second entity and the identified operations, mapping the identified operations into the operations used by the second entity;
a transceiver for sending the transformed second network service request to the second entity, and for receiving a first returned network service response responded by the second entity for the first network service request; a response conversion device for transforming the received first network service response into a second network service response comprehended by the first entity; said transceiver is also used for returning the transformed second network service response to the first entity; wherein the response conversion device includes:
a first data parsing device for parsing data in the received first network service response; and
a response generation device for generating the second network service response with response format comprehended by the first entity based on the parsed data and correspondences between the response format comprehended by the first entity and response format received by the first entity;
wherein parsing data in the received first network service response includes parsing the data based on information carried by the received first network service response and linking relations between the data.
12 . The adapter of claim 11 , wherein said request conversion device also includes a content conversion device, which is used for:
depending on correspondences between content format comprehended by the second entity and content format carried by the first network service request, transforming the content format carried by the network service request into the content format comprehended by the second entity.
13 . The adapter of claim 10 , wherein said request conversion device also includes a certification device, which is used for:
extracting login information from the first network service request, so as to certify the first network service request according to certification information.
14 . The adapter of claim 12 , wherein the content conversion device includes a second data parsing device for parsing data in the first network service request, and for generating content with content format comprehended by the second entity based on the parsed data and correspondences between the content format comprehended by the second entity and the content format carried by the first network service request.
15 . The adapter of claim 14 , wherein said second data parsing device is also used for parsing the data based on information carried in the content in the first network service request and linking relations between the data.
16 . The adapter of claim 11 , wherein the linking relations between the data in the received first network service response are based on a single-level XML structure of plane structure format.
17 . The adapter of claim 15 , wherein the linking relations between the data in the received first network service response are based on a single-level XML structure of plane structure format.
18 . The adapter of claim 11 , further comprising a configurator, which is used for at least one of the following:
configuring correspondences between the operations used by the second entity and operations used by the first entity; configuring certification information; configuring correspondences between the response format comprehended by the first entity and the response format comprehended by the second entity; and configuring correspondences between content format comprehended by the second entity and the response format comprehended by the first entity.
19 . The adapter of claim 11 , wherein the first entity is a client application system or a data application object, and the second entity is a third party system.
20 . The adapter of claim 11 , wherein the first entity is a third party system, and the second entity is a client application system or a data application object.Join the waitlist — get patent alerts
Track US2012173679A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.