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/
Related
I am having a web application built using JAVA spring which has API feature to read and write into database.
Now i have to develop an ionic mobile app for the same application. How to read and write data into database.
I know Firebase and other alternatives can do the job.
But i need my own API code(written for web app) to be used. Is there any way to achieve that?
I guess calling the respective API when the web application is live is achievable.
But how can i achieve that while developing(When the web app is under construction)
Well depending on how you set up the API this could become quite difficult.
You're saying/guessing that you can call the API when the webapplication is live. This makes me assume you've created a REST API? Or did you create a Spring MVC application?
If the webapplication is directly linked to your Spring application (f.e. going to localhost:8080/my-profile shows a page (not JSON) of your profile) then I'm not sure if you can achieve the above mentioned target.
If you get a JSON response, or are somehow able to retrieve it from the webpage, you can just simply call (in typescript:)
this.http.get('http://localhost:8080/my-profile').map(response => console.log(response.json() );
Else, you probably will have to create a basic REST API (check out Spring boot for a 5 minute setup) and provide it, either with hardcoded data or connect it with your database.
I'm new to GWT. I need to read a text file from the server, display its content in a TextArea widget, allow the user to modify it, and save the updated file back to the server. Can anyone please tell me, is it possible, and what should be the right way to do this?
It is possible.
You can make a service to access the file (read and write) and the GWT client will easily call the service methods and update the user interface (TextArea).
Read here for more details.
Also you can start right away by making a new GWT project in Eclipse and choose to generate sample code. It will generate a simple service and simple GWT page that calls the service. You can add your methods to this service to try it out as a proof of concept.
If you are using Google App Engine server, there's no way to write file to server because of restriction.
To write file to server, you will need to create your own server, create a service (use Java or another server-side language) then use one of these methods to communicate with your server.
If you still want to use GAE server (on appspot.com domain), you can use another method to store your data like Datastore or Google Cloud Storage, see this article for more information.
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.
Am working on a Silverlight integration with SharePoint. I use the Client Object Model to fetch information from list of multiple site collections. To do this successfully, I currently use the ClientAccessPolicy.xml for the Client Object Model to fetch data from multiple Site Collections. Now the problem that I have is, my client does not allow the file ClientAccessPolicy.xml to be put on the Virtual Directory. Is there a workaround to this? Is there a way to fetch the lists from Site Collections without ClientAccessPolicy.xml
I`m fairly sure the only way to bypass the lack of a clientaccesspolicy.xml when using Silverlight is to create your own server-side web service proxy that wraps the SharePoint API/Services calls and exposes whatever you want to send to Silverlight from that web-service, keeping it in the same domain as the Silverlight app.
I saw that ExtGWT has RPC which transfers objects between server and client easily. How can this be achieved in ExtJS? Is there any way to have js classes that get loaded automatically from server's response like ExtGWT does?
The server is Java-based and it uses Jersey REST-based framework.
Thanks.
I'm not familiar with Ext GWT, nor do I work with Java often, but I think you can modify your web service to send you JSON data that describes your objects (using a JSON Serializer).
On the client side, if you want to display your objects into a grid (for example), you can configure your Ext.data.Record to look into your object and pull out the information in a flat form that can be loaded into a store.