일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
You must select HTTP as the transport protocol when you configure any type of business service based on HTTP and the endpoint URI is of the form:
http://<host:port/someService>
Note: | You must specify the following endpoint URI when you configure a business service based on HTTPS. |
Note: | https://<host:port/someService> |
Table 1-2 describes all the parameters you can specify to configure HTTP transport for a business service.
|
|||
Basic authentication instructs WebLogic Server to authenticate the client using a user name and password against the authentication providers configured in the security realm, such as a Lightweight Directory Access Protocol (LDAP) directory service and Windows Active Directory. The client must send its user name and password on the HTTP request header. Basic authentication is strongly discouraged over HTTP because the password is sent in clear text. However, it is safe to send passwords over HTTPS because HTTPS provides an encrypted channel. Warning: By default, all users (authorized and anonymous) can access a business service. To limit the users who can access a business service, create a transport-level authorization policy. See Editing Transport-Level Access Policies in Using the Oracle Service Bus Console. |
|||
A service account is an alias resource for a user name and password. This is a required field if you selected the Basic Authentication Required field.
For more information, see
Service Accounts in Using the Oracle Service Bus Console.
|
|||
Select this check box to specify that HTTP redirects (which are requests with a response code
3xx )
should be automatically followed. A re-direct occurs when you send an
outbound request to the URL of a business service, and that service
returns a response code (for example, 302 ) that says the URL is no longer valid and this request needs to be sent to another URL. If the Follow HTTP Redirects
check box is selected, Oracle Service Bus automatically re-sends the
request to the new URL without any action on your part. Deselect this
check box if you do not want the HTTP redirects to be automatically
followed.
|
|||
Select
the instance of WebLogic Server Work Manager that you want to use for
the dispatch policy for this endpoint. The default Work Manager is used
if no other Work Manager exists. For information about Work Managers,
see
Using Work Managers to Optimize Scheduled Work and
Create Work Manager in the WebLogic Server Administration Console Online Help.
|
|||
For more information on how to configure this transport, see Transport Configuration in Using the Oracle Service Bus Console.
The HTTP transport provides support for working with REST (Representational State Transfer) environments through Oracle Service Bus, whether you have REST clients that need to interact with non-REST service providers, non-REST clients that need to interact with REST-based service providers, or REST-to-REST services you want to expose through Oracle Service Bus.
In a REST pattern, you invoke HTTP methods (such as GET, PUT, HEAD, POST, and DELETE) on resources that are located at specific URLs. For example, when a user updates his own profile information in a Web application that uses REST, a POST action updates the user information in the database through the service’s REST API.
Oracle Service Bus provides the following placeholder variables for handling REST-based requests for inbound and outbound communication:
With an Oracle Service Bus proxy service, you have the flexibility to interact with REST patterns, whether you are receiving REST-based requests or generating REST-based actions.
For example, if your team wants to develop REST-based applications and invoke services in a non-REST service provider, you can send REST operations through a proxy service and transform those operations into a format the service provider understands; or you could transform a non-REST request into a resource URL and invoke an operation in a REST-based service provider.
Following are XQuery examples of URI parsing using HTTP variables in a proxy server.
A proxy service has a URI http://localhost:7001/weather, and you want to capture the relative URI parts of a request. You create the following XQuery:
<relative-URI>
{
for $c in
fn:tokenize($inbound/ctx:transport/ctx:request/http:relative-URI, "/")
where fn:string-length($c) != 0
return
<part>
{$c}
</part>
}
</relative-URI>
If a request comes with the URI of http://localhost:7001/weather/temperature/35457, the relative-URI will be /temperature/35457, and the XQuery output will be:
<relative-URI>
<part>temperature</part>
<part>35457</part>
</relative-URI>
A proxy service has a URI http://localhost:7001/weather, and you want to capture the URL query string. You create the following XQuery:
<query-params>
{
for $c in
fn:tokenize($inbound/ctx:transport/ctx:request/http:query-string, "&")
return
<param name="{fn:substring-before($c,"=")}"
value="{fn:substring-after($c,"=")}"></param>
}
</query-params>
If a request comes with a URI of http://server:7001/weather?operation=temperature&pincode=35457, the query-string will be operation=temperature&pincode=35457, and the XQuery output will be:
<query-params>
<param name=’operation’ value=’temperature’/>
<param name=’pincode’ value=’35457’/>
</query-params>
With an Oracle Service Bus business service, you can invoke REST-based services.
For REST operations, the HTTP transport uses the value in the $outbound/transport/request/http:http-method variable. If that variable does not supply an HTTP method, the HTTP transport lets you select one of the following HTTP Request Methods in the transport configuration: POST, PUT, HEAD, GET, AND DELETE.
Note: | If the business service uses a Service Type of WSDL Web Service, only the POST method is available. |
Using the $outbound/transport/request-http/http-method variable, you can also supply your own methods. For example, you can use COPY, MOVE, and LOCK for WebDAV environments (Web-based Distributed Authoring and Versioning).
Use the following guidelines for setting $outbound variables:
For example, in a business service with a URI of
http://service.com/purchaseOrder
and the following HTTP variables
$outbound/transport/request-http/relative-URI: “/PO12367” and
$outbound/transport/request-http/query-string: “item=NO1&color=black”
http://service.com/purchaseOrder/PO12367?item=NO1&color=black
The HTTP transport provides the following response codes for HTTP methods:
Securing Oracle Service Bus with Oracle Web Services Manager (0) | 2009.03.11 |
---|---|
Working with Split-Join (1) | 2009.03.11 |
Integrating PeopleSoft Integration Broker and Oracle Service Bus (0) | 2009.03.11 |
Integrating PeopleSoft HCM with BPA Suite and SOA Suite (0) | 2009.03.11 |
Creating an Account in Siebel Using BPEL and Web Services (0) | 2009.03.11 |
archidream's Blog is powered by Daum