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
Related
Is there any way to restrict access to the REST API provided by Apache Flink, e.g. using Basic Auth, Api-Key, etc.?
I refer to the "Monitoring REST API" (which is confusingly not only monitoring but also job control).
One solution others have used is to put nginx in front of the Flink REST API as a secure proxy.
There is a FLIP about custom netty handlers (https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=184616200) that comes with sample use cases such as authentication.
For instance, basic auth = https://issues.apache.org/jira/browse/FLINK-23273 (https://github.com/cloudera/flink-basic-auth-handler)
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.
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.
Can anyone give me a sample source code where i can use restful jax-rs web service as an interface to message broker using active mq. The requirement is traffic comes to application through jax-rs webservice and the message is transferred to active mq which is processed asynchronously and the consumer on active mq inserts data into db. Can anyone please provide sample code, that would be great
The question is very fuzzy. There are multiple concerns to take into account when doing this kind of interfaces as jax-rs is a http interface (synchronous, non transcational, non persistent, non guaranteed delivery) while activemq (jms) is the other way around, asynchronous, transactional and persistent.
I suggest you take a look at Apache Camel which is a lightweight integration framework that works really good with ActiveMQ. It supports JAX-RS as well. There are multiple code examples over at the Camel website and connecting rest with activemq is rather easy given you have your case fully designed.
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.