BENDU_APPARAO

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

Recommended Posts

BENDU_APPARAO
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

Share this post


Link to post
Share on other sites
king420
Steps to develop a REST web service kuda raayi baa just like in SOAP

we need a WSDL, Service Package, Request, Response pages

Share this post


Link to post
Share on other sites
Maximus
[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..

Share this post


Link to post
Share on other sites
king420
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]

Share this post


Link to post
Share on other sites
BENDU_APPARAO
[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

Share this post


Link to post
Share on other sites
BENDU_APPARAO
[quote name='nagchiru' timestamp='1328821466' post='1301395643']
baga rasavu koddiga REST teesko
[/quote]

emi mama nacha ledhaaa :(

Share this post


Link to post
Share on other sites
king420
[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]
()>> ()>>

Share this post


Link to post
Share on other sites
dennis
[quote name='BENDU_APPARAO' timestamp='1328824717' post='1301395970']

emi mama nacha ledhaaa :(
[/quote]
its nice baa..satire veyyali ani try chesadu le...lite lelo :)

Share this post


Link to post
Share on other sites
pavan_613
bookmarked bendaapparao u awesome bhayya

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now