API's and services of a website - java

I am developing an app for a website at present, I have obtained the login API for it and successfully implemented this (the login). Now I want to move on further into the rest of the pages in the website. My doubt is, will there be a separate API for each of these pages? Should I use a different url address for each of these pages?
I don't know much about HTML or web development some clarity in this matter would be much appreciated.
Thanks.

You should ask the Webservice developer about its documentation. They should provide you with a well documentation for the Webservice.
Normally a documentation should describe the accessing methods, parameters, response,etc.
W3School Provides a good tutorial about webservices. This link mighe help u.

Related

Web Service from Google App Engine/ Google Web Tool kit?

I am a total beginner to web programming.
I'd like to create a web service using GAE/GWT with Java which functions similarly to how WCF from the .NET platform works. Is this possible?
I've been researching for a while and there are no really good solid examples. If someone could point me to good reading or examples then I'd be happy to take a look.
I checked this out : How to write a Web Service for Google App Engine?
However, that is python.
I'd recommend to read the tutorial at the GWT official site. The StockWatcher example teaches how to write an application, and discusses the different ways to retrieve information from the server. It works in either GAE or any other servlet container, it has even an example about how to create the web service in a php and consume it.
The left index of the tutorial is not correctly sorted because the gwtproject.org site documentation is produced automatically, but clicking on the next step link in each page you go to the next one.
[EDITED]
Index of the GWT project is now correctly sorted after my changes

Interface to communicate to web pages from android application

I am trying to implement a "Doctor Finder" application for android which will have a symptom checker facility like webMD. Since webMD don't have any API's I must create my own expert system (which takes a lot of time) or need to find something similar to webMD which offers public API. I found NIL API from National Library of Medicine US and I doubt it would be useful in my scenario.
Now the actual question, Is it possible to use webMD's online symptoms checker using an interface from android. I don't want to show the HTML page within my app but to send and receive information through it? If not is there any APIs available to serve this purpose?
You can do that by using "selenium".
Its a tool used for automated testing of web applications. you can navigate and enter information in the web page and get results using this.
http://www.seleniumhq.org/

GET VIMEO VIDEO DETAILS USING JAVA - OAUTH2.0/RESTFUL

I registered with "https://developer.vimeo.com/" - (Advanced API) & I have consumer key , secret etc..
I tried to get the list of videos using Scribe, SignPost Libraries. I hope vimeo implemented OAuth1.0a Version so it's asking me to visit AuthURL to produce AuthCode. Same we need to input for authorization. Now Coming to my Implementation, I need to get AuthCode (PIN/Verifier) without human interaction.
Also, Let me know if any RESTFul Service available with Vimeo Developer API.
My Programming Language: JAVA.
Thanks in advance for your inputs.
You may want to have a look at https://vimeo.com/forums/topic:34314, about ACCESS_TOKEN and ACCESS_TOKEN_SECRET. The example is in php, using vimeo.php library, but I'm sure if you look up the phpVimeo function in that library, it may be translated to java.
Hope this helps and regards

HTML Site Inside Java Portlets

I'm a complete noob when it comes to portlet development. I have a task which is to take a fairly small static html site and incorporate it into a portal/portlet environment.
My first thought is to develop one portlet that contains the entire html site within it.
Is this just a terrible idea?
If not, then I know I could make a simple portlet with an iframe to pull in the html for the site, but is there some other way to make a portlet that is a full functional little website?
Any help is greatly appreciated.
That's a pretty vague question, but I don't see why ou can't do what you're trying to do.
The Portlet API is pretty unpleasant, though, and makes the servlet API look fluffy and joyous. I suggest using Spring's Portlet MVC support to make it a bit less painful.
I dont think that you can and want "put" a whole website into a portlet because of the limitations of the api. Even if the website is servlet based that seems not to be a good idea.
From a user perspective you should perhaps focus on your widget idea. Think about a smaller subset that encapsules the functionality of the website that should be embedded or write an aggregator for the information of the site.
Think about why the website should be integrated and which information of the site are the most important ones. Perhaps there are any other information exchange interfaces like rss or atom feeds that you can use.
Another solution would be to use an existing cms-like portlet that can be "filled" with content. Here are some examples: http://www.jboss.org/portletswap/portlets_collab.html

How to show Java portlets in Sharepoint

Does someone know/have experience in showing Java web application generated UI in Sharepoint? We have a Java web application and are evaluating the possibilities to embed Java-generated web UI into Sharepoint. I don't think Sharepoint supports Java portlets, but it might support consuming WSRP?
As previously mentioned, the SharePoint team released the WSRP toolkit a few months back. More details available here.
If that doesn't work out for you (I've never tried it so have no experience to share) depending on the UI requirements you can always use the simple route of the Page Viewer Web Part.
This essentially creates a mini-browser (I believe it uses an iFrame) within a SharePoint page. If you're portlet is simply a data entry/display method it may work out for you and it's definitely less work.
WSRP consumer support is out of the box in SharePoint Enterprise. You can find a WSRP WebPart on your site if you've activated the Enterprise feature.
The WSRP toolkit allow SharePoint to produce WSRP compatible webpart.
SHarepoint does not support WSRP out of the box. However MS released a WSRP Toolkit.
You can find more information here
Actual link
http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=537

Categories