Oracle ADF and SalesForce Integration - salesforce

I am trying to integrate ADF application to SalesForce. I have my enterprise URL and api-token and password. I am able to call services and get results from soapUI.
Now the challenge is I'd like to integrate salesforce and get data to ADF application. I have created datacontrol for SOAP web service. But this'll not work as SalesForce follows a secured approach. First we need to call Login() service which'll return a dynamic serviceURL and a sessionId. Then we need to call the desired service with serviceURL as endpoint and sessionId as one of the request attributes. How could I implement this in declarative approach.
Please do not ask me to write a java client to access SalesForce which I already aware and I am doing.
-V

Create a Java Client Proxy for the various services you want to invoke.
Then create a class with a method that streamline calling those proxies - and expose that class as a data control to use in ADF.
Another approach is to use BPEL with the Oracle SOA suite to orchestrate the sequence of services you are calling.

Related

how to consume download file rest (JSON) web service in adf

I am new in adf. I have to consume a web service for download document in ADF. It will return an InputStream object and I don't have sample JSON response. Could any one help me.
Kind of depends on what exactly you want to do in ADF.
In general you can create a Java class that interact with your REST service, and then expose that Java class as a data control that you can bind to an ADF UI.
One more thing you can try is using the Web Service Data Control (assuming you are on the latest JDEV) - it can consume REST services - https://tompeez.wordpress.com/2017/07/29/blog-using-external-rest-servies-part-1/

Consuming Salesforce outbound message using Spring Integration

I want to consume Salesforce Outbound Message using Spring and process them sequentially and persist the data in MySQL database. Also I have to send a success response back to Salesforce after processing. I have the WSDL from Salesforce.Could any one provide me an approach on which Spring framework to use. Any examples or links would help me great.
Since you gave WSDL, that means you work with SOAP WebService.
For this purpose Spring Integration provides WeService Adapters support: http://docs.spring.io/spring-integration/docs/4.3.7.RELEASE/reference/html/ws.html
What you need is called WebService Inbound Gateway and here is some sample: https://github.com/spring-projects/spring-integration-samples/tree/master/basic/ws-inbound-gateway
For storing data into RDBMS you need JDBC adapters: http://docs.spring.io/spring-integration/docs/4.3.7.RELEASE/reference/html/jdbc.html
And here is a sample: https://github.com/spring-projects/spring-integration-samples/tree/master/basic/jdbc

How to distribute your own data on Salesforce?

I will work on a new project related to salesforce. Actually what we want to do is to have a salesforce API that contains our database and this API will accept connections from our clients. Once we establish the connection the user will have the access to our database too. Since I dont know anything about salesforce right now, I just wanted to ask you if you have some ideas on how to do that ? Is there any existing API doing that ? or We need to implement our new API for salesforce ?
Salesforce provides several APIs out of the box that can be used to access the data stored in your Organization.
Have a look at the REST API, Enterprise API and the Partner API. See Which API Should I Use?.
If none of those suit your needs you can use Apex to create your own REST or SOAP based services.

Is there a way to access an external database using the force.com platform?

My organization wants to be able to regularly read in data from an external web service which provides an ODBC interface, and update our salesforce data with that information. I've been hunting around Salesforce's documentation, and it seems like there's no way to do this except by using the Apex Data Loader's batch functionality. Unfortunately, this means that my organization would have to maintain a local computer to run the data loader nightly, which we're trying to avoid doing.
What we'd like to do is create an Apex Schedulable class or something similar and run code that can access the ODBC interface from our external data source on the salesforce platform itself. Is it possible to do this?
There's no support for making outbound ODBC connections from salesforce. If the external service has an HTTP based API, then you use the http client in apex to make the api calls and get the data.
Outbound as mentioned you'd have to make wrap your database in a webservice. You could load the data in using data loader/Talend/Informatica/etc.

Visualforce and VPN

I'm looking to integrate my Salesforce implementation with an external database. I know that in most circumstances I would use Visualforce with an Apex controller/extension to access the data, however the external database will require a VPN connection. Since Visualforce and any controllers or extensions are processed server-side, is there any way to do this through a VPN?
The simplest solution that occurs to me would be to expose the data via a web service and then write an Apex webservice class to call the data. I've done this several times when data was behind a firewall.
For more complex integrations, where you actually wanted to store the external data in Salesforce with more complex logic it could be useful to use an integration tool like Jitterbit or Cast Iron to do this for you.

Resources