Wednesday, January 20, 2016

Invoking a web service with Username Password using Credentials Key store - OSB 11g

To invoke a web service protected with Username/Password, Follow the below steps,
We are going to use username-password from Credentials store created in EM console.

1. We will create a key with username-password in EM console.

Open EM console. Navigate to Weblogic Domain -> Security -> Credentials





We have to create the new Key under "Oracle.wsm.security"
Enter the username password like below.
Name of the key can be anything.















2. Now we can use this Key in OSB inside the business service,

Login to sbConsole.

Create a business service. Enter the service Name and select the WSDL web service.





































After creating business service you might get an error(if the wsdl have a security policy already).











In this case, just go to Policies under Businsess Service configuration, And click on Add Compatible or add this policy "oracle/wss_username_token_client_policy". 

If there are more policies, Please remove other policies which are not necessary (But first need to click 
on update button)
























After adding the policy , you can see one more tab called "Security". Navigate to security tab and provide the key information over there.










After providing the key. Click on update and activate the session.

Wednesday, January 13, 2016

Run ant commands in Putty | weblogic server

To Run ant commands in weblogic server. First you need to set the environment variables, only then we can run the commands.
If you don't set the environment variables, you will get error as below,

...bin]$ ant -f build.xml

-bash: ant: command not found

To set, please go to the below path
Oracle/Middleware/wlserver_10.3/server/bin
and run the setWLSEnv.sh like below,

. ./setWLSEnv.sh



Monday, January 11, 2016

How to check the SOA Version Installed in your weblogic server

To check the SOA Suite Version installed in your server.

Please follow the below steps.
- Login to Putty.
- Run command ./soaversion.sh from location $SOA_ORACLE_HOME/bin 

Location will look something like below,





And the Result will display the complete SOA Suite version details.