Link to home
Start Free TrialLog in
Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden

asked on

A question to convince me regarding restful web services.

Hi there;

I need to convince myself that I need a restful web service in a specific circumstance. Tell me why should I use restful service?

I also appreciate a simple meaningful implementation that proves your point.

Please, do it in your own words.

Regards.
SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jazzIIIlove

ASKER

Hi;

There is no detail. I actually know soap but not rest. I want to startup from somewhere. I appreciate a scenario convincing for the need within a example.

Regards.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Ray;

Sorry for the late reply. I test your code. Of course, it's working. My issue is that. I couldn't visualize the web service logic. I mean, is the whole code a restful service? I saw the XML exchange but I couldn't get where REST relies in the code.

Can you explain your code further so the blackholes will be closed?

Regards.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi;

I mean ok, it seems it's HTTP requesting but what is the difference between plain GET/POST requests and Rest requests in implementation? What makes us above code to call as REST service rather than post&get? or I can rephrase, what can't i do with plain POST and GET but do with REST? Any scenario example?

I have a knowledge of WCF and JAX-RPC so you can enhance the scope of the scenario if you want.

Regards.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi;
>> You and the publisher of the service agree on the format
XML only?
>> and content of the URL variables and the response string.
so, WSDL itself again? or any other idea?

Regards.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi;

Thanks.

OK, but how is the data exchange? I mean there should be a file of definition for data exchange. How can this be done in REST? I mean how the service consumer knows the drift (functions etc.) in the service? You can reflect your above example.

Regards.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial