Posts

Showing posts from February, 2016

JAVA embedding in Oracle SOA 12c

Image
In this post we will explore how to EMBED Java or call Java API from Oracle SOA BPEL process. In order to demonstrated this, I have created a simple JAVA project with 3 classes. 1.        Account.java -> This class represent Account DTO       2.       Party.java -> This class represent a party (customer) DTO       3.       GetNumber.java -> This class contains the method that takes Party DTO as input and apply some business logic and return party’s AccountDTO in response. public Account getNumber(Party party) The above classes are created to simulate the calling of actual business logic API’s. Account.java Party.java GetNumber.java public class Account {     public Account() {         super();     }     String account;     public void setAccount(String account) {         this.account = account;     }     public String getAccount() {         return account;     } } public class Party {     public Part

configuring the http proxy in weblogic

To configure the proxy in weblogic configure the below properties in setDomainEnv: -DproxySet=true -Dweblogic.webservice.transport.http.proxy.host=proxy -Dweblogic.webservice.transport.http.proxy.port=80 -Dweblogic.webservice.transport.https.proxy.host=proxy -Dweblogic.webservice.transport.https.proxy.port=80 -Dhttp.proxyHost=proxy -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts="172.16.40.84|172.16.40.63" -Dhttps.proxyHost=proxy -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts="172.16.40.84|172.16.40.63" If the proxy is accepting username/password Or if you face the below issue, weblogic.net.http.HttpUnauthorizedException: Auth scheme Negotiate is not supported! then you may need to write the custom authenticator for calling the service behind proxy. Please find the below example for custom proxy authenticator: Write the class that extends java.net.Authenticator. *** import java.net.Authenticator; import java.net.PasswordAuthentication; public class P