Friday, April 12, 2013

Communicate Secure FusionCRM Service From Oracle BPEL And JAVA

Communicate  Secure  FusionCRM Service From BPEL:
Oracle BPEL supports you to communicate FusionCRM Services. We have to follow same approach how we will call in the Web services in BPEL .
              
Fusion CRM Services are Secured web services and to call these services we need to do some Security configurations. 
Design time Security Settings:
        1. Configure WS-Polices to the Fusion CRM Service .
         Right Click on the Reference service ---> Configure WS-Polices--->For Request 
               
         Then select  oracle/wss_username_token_client_policy and click ok.
 2. Configure the properties for Username/password in the Compoiste.xml under the Reference Service.
 <reference name="FusionCRMOpportunityService" ui:wsdlLocation="OpportunityService.wsdl">
  <property name="oracle.webservices.auth.username" type="xs:string"
              many="false" override="may">SalesMgr</property>
    <property name="oracle.webservices.auth.password" type="xs:string"
              many="false" override="may">Welcome1</property>
  </reference>
Run time Security Settings:
Login to the SOA server and Select Weblogic domain---> SOA_domain--> Credentials
           
      

         2. Create Credentials key and give username and password. by default all the policies refer to basic.credentials to check credentials so create the key with name basic.credentials.
         3.   If we create Key with some other name then we need to mention that new key name in place of Value for csf-key under Property Set of that policy under Web logic domain->Web services->Polices as below:
    4. Now you can deploy your service and test . 

Communicate  Secure FusionCRM Service From JAVA:
  1.   Setting up the Credentials :
                1. Desgin time in the Jdeveloper we need configure the key store value
     Jdeveloper ---> Tools ---> Preferences --> Credentials ---> Client Trusted Certificate keystore
                2. Select the   DemoTrust.jks keystore from Jdeveloper phyiscal path
                    Driver://JDEVELOPER11R1V4\wlserver_10.3\server\lib\DemoTrust.jks
                3.Get the certificate for the Fusion CRM service from browser and import it into the  DemoTrust.jks keystore by using below command :
                 D:\Oracle_11.1.1.3.0\Middleware\wlserver_10.3\server\lib>keytool -v -import -file fusioncrmcoeinstance.cer -keystore cacerts
4.The security settings done now you can write Standalone Java application  to call the Secure Fusion CRM Service.

No comments:

Post a Comment