Jump to content

***********java Learning Center **************


BENDU_APPARAO

Recommended Posts

Web Services (Restful) Tutorial

IS JAVA PLATFORM INDEPENDENT LANGUAGE ???? --- [url="http://www.andhrafriends.com/topic/258009-is-java-platform-independent/"]http://www.andhrafri...rm-independent/[/url]

[b]ABSTRACT CLASS VS INTERFACE DIFFERENCES (MOST IMP)[/b] ---- [url="http://www.andhrafriends.com/topic/258590-java-abstract-class-vs-interface/"]http://www.andhrafriends.com/topic/258590-java-abstract-class-vs-interface/[/url]

what is an API:

[url="http://www.andhrafriends.com/topic/258012-api-ante-enti/"]http://www.andhrafri...-api-ante-enti/[/url]



Happyness Question:::[url="http://www.andhrafriends.com/topic/257983-difference-bn-web-server-and-application-server/"]http://www.andhrafri...ication-server/[/url]


BendApparao Question:::[url="http://www.andhrafriends.com/topic/257991-oka-java-interview-question-mostly-asked/"]http://www.andhrafri...n-mostly-asked/[/url]


Mama lu ....mana Bujjulu mama ki help gaaa neenu RestFul web services tutorial ni kodigaaa rasaa ( inka example rayaledhu just intraduction ......)

you can access the tutorial here -- [url="http://www.iforerunner.com/sunjava/posts/list/3064.page#3252"]http://www.iforerunn.../3064.page#3252[/url]


[b]What is REST? [/b]

REST is a term introduced by Roy Fielding in his Ph.D. dissertation to describe an architecture style of networked systems. REST is an acronym standing for [b]RE[/b]presentational [b]S[/b]tate [b]T[/b]ransfer.


It relies on a stateless, client-server, cacheable communications protocol -- which is the HTTP protocol so REST basically rely on HTTP for communication.

[b]Why is it called Representational State Transfer? [/b]

The Web is comprised of resources. A resource is any item of interest. For example,
we are accessing a profile in our forum by clicking [url="http://www.andhrafriends.com/user/23132-bendu-apparao/"]http://www.andhrafri...-bendu-apparao/[/url] ....here the base URL is [b] [url="http://www.andhrafriends.com/user"]http://www.andhrafriends.com/user[/url][/b] and [b]/23132-bendu-apparao[/b] is the resource avilable on the server.

Here when we are accessing the resource on the server , that means the State of the resource is transfer over the network ....

[b]REST - An Architectural Style, Not a Standard[/b]

REST is not a standard (Http protocol is stranded which is used by REST) ....it is an STYLE of accessing resources using existing technologies (like AJAX) .

So REST contains below technologies / Standers[list]
[*]HTTP -- (Protocol)
[*]URL - - (Resources)
[*]XML/HTML/GIF/JPEG/etc (Resource Representations)
[*]text/xml, text/html, image/gif, image/jpeg, etc (MIME Types)
SO what are the advantages .......
[*]REST is a lightweight alternative to SOAP Web Services and RPC
[*]Platform-independent (you don't care if the server is Unix, the client is a Mac, or anything else)
[*]Language-independent (C# can talk to Java, etc.)
[*]Standards-based (runs on top of HTTP)
[*]Can easily be used in the presence of firewalls
So What about REST vs SOAP comparison (first interview question on REST web services)


REST Advantages
[*]Lightweight – not a lot of extra xml markup
[*]Human Readable Results
[*]Easy to build – no toolkits required
SOAP Advantages
[*]Rigid – type checking, adheres to a contract (Using WSDL)
[*]Development tools (as it is existing from long back )
[*]Standards available for Security (JAX-WS security) and attachments (SAAJ)
[/list]

  • Upvote 1
Link to comment
Share on other sites

[quote name='HAPPYNESS' timestamp='1328822897' post='1301395835']
Steps to develop a REST web service kuda raayi baa just like in SOAP

we need a WSDL, Service Package, Request, Response pages
[/quote]
[color=#282828][font=helvetica, arial, sans-serif][img]http://lh4.ggpht.com/-jDBzDTpLJzM/TwKNerILAgI/AAAAAAAAF0A/Y-YfkWMkK1o/s150/Mahi-33.gif[/img][/font][/color]shame o shame radaamanukunnaa.. plz do the needful..

Link to comment
Share on other sites

JDBC connection...Connection Pooling...konni frameworks (Hibernate, Struts) gurinchi kuda raayi baa..maa lantii....Java agnanulaki upayoga padutundi repu real time ki Java meda poyinappudu [img]http://www.tollywoodinfo.com/discus/clipart2/brahmam_style13.gif[/img]

Link to comment
Share on other sites

[quote name='HAPPYNESS' timestamp='1328822897' post='1301395835']
Steps to develop a REST web service kuda raayi baa just like in SOAP

we need a WSDL, Service Package, Request, Response pages
[/quote]

REST lo WSDL undadhu baa WADL untundi but that is not contract (not mandatory) .... meegatha vati gurunchi .. steps to develope (using Jersy and Resteasy) kuda rasthaa

Link to comment
Share on other sites

[quote name='BENDU_APPARAO' timestamp='1328824695' post='1301395967']

REST lo WSDL undadhu baa WADL untundi but that is not contract (not mandatory) .... meegatha vati gurunchi .. steps to develope (using Jersy and Resteasy) kuda rasthaa
[/quote]
()>> ()>>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...