System and method for web services Java API-based invocation
First Claim
1. A storage medium including software system applications for providing access to web services, comprising:
- a protocol adapter thatintercepts a web service invoke request wherein the invoke request is a web service message that has a message format and includes parameters,converts the message format of the invoke request,creates an initial message context including the invoke request, a placeholder for a response, and information about a transport, androutes the invoke request with the initial message context to an appropriate web services container based on a target of the invoke request;
a container driver, at the web services container, that receives the invoke request and initial message context from the protocol adapter;
a plurality of interceptors, utilized by the container driver to access inbound and outbound web service messages;
wherein the container driver forwards the initial message context to one of the plurality of interceptors thatreceives the initial message context which includes a plurality of parts, wherein each part includes corresponding content,modifies the content of one or more of the parts of the initial message context to produce modified message context, andreturns the modified message context to the container driver;
an invocation handler that receives the modified message context from said container driver, passes the parameters from the modified message context to the target of the request, processes values returned from the target, and passes the values to the container driver, such that the container driver can formulate a response to the invoke request; and
an invocation context that stores context data for processing the invoke request including a conversation ID, a message sequence number, and a security token, wherein the invocation context is an inheritable, thread local object which is accessible to the protocol adapter, interceptors and invocation handler, and wherein the invocation handler controls read/write access to the invocation context.
2 Assignments
0 Petitions
Accused Products
Abstract
A runtime architecture for web services utilizes a container driver to accept an invoke request for web services, such as from a protocol adapter. The container driver performs any necessary data binding and unbinding required to process the invoke request and associated message context, utilizing an appropriate plugin component. An interceptor receives the context information from the container driver and modifies the message context for web service compatibility. An invocation handler receives the formatted context information from the container driver and passes parameters from the message context to the target of the request. The invocation handler processes values returned from the target and passes these values to the container driver. The container driver can then formulate a response to the invoke request, and return the response and message context to the client or protocol adapter.
89 Citations
23 Claims
-
1. A storage medium including software system applications for providing access to web services, comprising:
-
a protocol adapter that intercepts a web service invoke request wherein the invoke request is a web service message that has a message format and includes parameters, converts the message format of the invoke request, creates an initial message context including the invoke request, a placeholder for a response, and information about a transport, and routes the invoke request with the initial message context to an appropriate web services container based on a target of the invoke request; a container driver, at the web services container, that receives the invoke request and initial message context from the protocol adapter; a plurality of interceptors, utilized by the container driver to access inbound and outbound web service messages; wherein the container driver forwards the initial message context to one of the plurality of interceptors that receives the initial message context which includes a plurality of parts, wherein each part includes corresponding content, modifies the content of one or more of the parts of the initial message context to produce modified message context, and returns the modified message context to the container driver; an invocation handler that receives the modified message context from said container driver, passes the parameters from the modified message context to the target of the request, processes values returned from the target, and passes the values to the container driver, such that the container driver can formulate a response to the invoke request; and an invocation context that stores context data for processing the invoke request including a conversation ID, a message sequence number, and a security token, wherein the invocation context is an inheritable, thread local object which is accessible to the protocol adapter, interceptors and invocation handler, and wherein the invocation handler controls read/write access to the invocation context. - View Dependent Claims (2, 3, 4, 5, 6, 7, 16, 17, 18, 19, 20)
-
-
8. A method for use in providing access to web services, comprising:
-
intercepting at a web server computer a web service invoke request using a protocol adapter, wherein the invoke request is a web service message having a message format and where the invoke request includes parameters; converting the message format of the invoke request by the protocol adapter; creating an initial message context including the invoke request, a placeholder for a response, and information about a transport; routes the invoke request with the initial message context to an appropriate web services container based on a target of the invoke request; receiving, at a container driver, the invoke request and the initial message context from the protocol adapter; forwarding the initial message context for the invoke request for a web service to one of a plurality of interceptors, wherein the plurality of interceptors are utilized by the container driver to access inbound and outbound web service message, and wherein the initial message context includes a plurality of parts, wherein each part includes corresponding content; modifying the content of one or more of the parts of the initial message context to produce modified message context; returning the modified message content to the container driver; receiving the modified message context from the container driver at an invocation handler, wherein the invocation handler passes the parameters from the modified message context to the target of the request, processes values returned from the target, and passes the values to the container driver such that the container driver can formulate a response to the invoke request; storing, in an invocation context, context data for processing the invoke request including a conversation ID, a message sequence number, and a security token, wherein the invocation context is an inheritable, thread local object which is accessible to the protocol adapter, interceptors and invocation handler, and wherein an invocation handler controls read/write access to the invocation context. - View Dependent Claims (9, 10, 11, 12, 13, 14, 21, 22)
-
-
15. A computer readable medium, including instructions stored thereon which when executed by the computer cause the computer to perform the steps of:
-
intercepting a web service invoke request using a protocol adapter, wherein the invoke request is a web service message having a message format and wherein the invoke request includes parameters; converting the message format of the invoke request by the protocol adapter; creating an initial message context including the invoke request, a placeholder for a response, and information about a transport; routes the invoke request with the initial message context to an appropriate web services container based on a target of the invoke request; receiving, at a container driver, the invoke request and the initial message context from the protocol adapter; forwarding the initial message context for the invoke request for the web service from the container driver to one of a plurality of interceptors, wherein the plurality of interceptors are utilized by the container driver to access inbound and outbound web service message, and wherein the initial message context includes a plurality of parts, wherein each part includes corresponding content; modifying, at the interceptor, the content of one or more of the parts of the initial message context to produce modified message context for the web service; returning the modified message content to the container driver; receiving, at an invocation handler, the modified message context from the container driver, wherein the invocation handler passes the parameters from the modified message context to the target of the request, processes values returned from the target, and passes the values to the container driver such that the container driver can formulate a response to the invoke request; storing, at an invocation context, context data for processing the invoke request including a conversation ID, a message sequence number, and a security token, wherein the invocation context is an inheritable, thread local object which is accessible to the protocol adapter, interceptors and invocation handle, and wherein the invocation handler controls read/write access to the invocation context; passing, from the invocation handler to a target of the request, parameters from the modified message context; processing, at the invocation handler, values returned from the target; passing the values from the invocation handler to the container driver; and formulating, at the container driver, a response to the invoke request.
-
-
23. A storage medium including software system applications for providing access to web services, comprising:
-
a protocol adapter that intercepts a web service invoke request wherein the invoke request is a web service message that has a message format and includes parameters, converts the message format of the invoke request, creates an initial message context including the invoke request, a placeholder for a response, and information about a transport, and routes the invoke request with the initial message context to an appropriate web services container based on a target of the invoke request; a container driver, at the web services container, that receives the invoke request and initial message context from the protocol adapter; a plurality of interceptors, utilized by the container driver to access inbound and outbound web service messages; wherein the container driver forwards the initial message context to one of the plurality of interceptors that receives the initial message context which includes a plurality of parts, wherein each part includes corresponding content, modifies the content of one or more of the parts of the initial message context to produce modified message context, and returns the modified message context to the container driver; a plurality of codecs utilized by the container driver to perform data binding; an invocation handler that receives the modified message context from said container driver, passes the parameters from the modified message context to the target of the request, processes values returned from the target, and passes the values to the container driver, such that the container driver can formulate a response to the invoke request; and an invocation context that stores context data for processing the invoke request including a conversation ID, a message sequence number, and a security token, wherein the invocation context is an inheritable, thread local object which is accessible to the protocol adapter, interceptors and invocation handler, and wherein the invocation handler controls read/write access to the invocation context.
-
Specification