1. Edit the
ORACLE_HOME/owsm/config/ccore/ui-config-installer.properties
file.
2. Set the following properties:
Property Name Value
ui.pm.server.httpScheme http or https
ui.pm.server.httpHost Oracle WSM Policy Manager host
ui.pm.server.httpPort Oracle WSM Policy Manager HTTPS port.
Deploy the application using the wsmadmin deploy control command
Setting up the Oracle WSM Gateway
3. Configure the Oracle WSM Gateway with its component ID.
a. Open the following file on vhost1:
ORACLE_HOME/owsm/config/gateway/gateway-config-installer.properties
b. In the following line, replace the component ID with the one you noted in step
gateway.component.id=C0003001
4. Redeploy the Oracle WSM Gateway on vhost1 using the wsmadmin deploy
gateway command. Location (D:\product\10.1.3.1\OracleAS_1\owsm\bin)
1. Create a gateway
http://localhost:8888/gateway
2. Register a service
http://localhost:8888/ccore/TimeService.wsdl
3. Create Policies. Create pipeline requests.
PreRequest Pipeline – The policy steps in this pipeline are executed before the Web service request is processed.
Request Pipeline – The policy steps in this pipeline are executed on the Web service request.
Response Pipeline – The policy steps in this pipeline are executed on the response from the Web service
PostResponse Pipeline – The policy steps in this pipeline are executed after the response from the Web service is sent to the client requestor
4. Configure pipeline
Credentials -- (WS-BASIC)
File Authenticate -- C:\.htpasswd
Create Authentication file
Notepad -- user:password
ORACLE_HOME\owsm\bin\wsmadmin md5encode user_name password .htpasswd
5. Test wsdl
Properties to be added in bpel.xml
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
After we create the gateway -- we need to deploy it
We do so in the command line .
At the location D:\product\10.1.3.1\OracleAS_1\owsm\bin
we first type cd\
then we type d:
then we type cd D:\product\10.1.3.1\OracleAS_1\owsm\bin
We will then be present in the path
we will then type
wsmadmin deploy gateway
We will then be prompted to type
wsmadmin deploy applicationserverPassword component
This is
wsmadmin deploy welcome1 gateway
W---
The gateways are now deployed..
We then Register the service in our desired gateway.
We enter the necessary details and then it will prompt us to enter other screen.
Here we will see --- steps that are self explanatory.
So we now registered the service.
Next we press commit policies
So it says the policies have been committed sucessfully.
----- POLICIES
We now define the policies for the webservice.
In manage policies we will be having
PRerequest , request and response..
Maximum we will have to define policy in the request .....
We then add a policy
of EXTRACT credentials and then we configure that.
WS-BASIC
OK
Then in Extract credentials we then ADD step below...
That is where to pick the credentials from ??/
We select File Authenticate..
Then configure it.
The passwd file location
that is
D:\product\10.1.3.1\OracleAS_1\owsm\bin\encrypt.htpasswd
The format is md5
Save it and deploy it...
No comments:
Post a Comment