aspose file tools*
The moose likes Web Services and the fly likes Usage of webservices in a Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Usage of webservices in a Application" Watch "Usage of webservices in a Application" New topic
Author

Usage of webservices in a Application

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Can anybody please help i am newbie to webservices " while going through tutorials it says that as the example of webservice"

"Customers can search for books based on certain search criteria (ISBN, author name, etc.)."

This can be done by a normal java web application also know then why to use webservices for this .

Thanks

Save India From Corruption - Anna Hazare.
rakesh sugirtharaj
Ranch Hand

Joined: Dec 16, 2007
Posts: 151
The answer is simple if you know why we need xml when there is html.


Cheers!
RSR
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

No man it doesn't suit . (anyways XML as data carrier and html for look and feel)

See as i said "can be done by a normal java web application also know then why to use webservices for this . "

I mean a simple search on to web application and on to web services we need to look at the wsdl file and then pass appropiate parametrs . why so ?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

This might help. So might this.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Is Interoperability among distributed applications the main reason for using Webservices in a Application ?
If an application is not using two different technologies , then is it still good to use Web services ?


Manhar Puri
Ranch Hand

Joined: Aug 23, 2005
Posts: 41
If an application is not using two different technologies , then is it still good to use Web services ?


Sure why not. Imagine the case where there are 5 Java applications in an organization developed by different teams and all require a search feature.

You can build a central search feature and expose this as a WebService for all five of them.

The above one a very simple example but can be expanded to create shared services architecture for complex applications.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you Manhar
chatchai chailuecha
Greenhorn

Joined: Dec 14, 2006
Posts: 18
Ravi Pavan wrote:
Is Interoperability among distributed applications the main reason for using Webservices in a Application ?


Web Services is all about system integration. It doesn't care about the implementation and it doesn't necessary make your program gain higher throughput.

Ravi Pavan wrote:
If an application is not using two different technologies , then is it still good to use Web services ?


If the system peers are deployed across the world then I think text-based message over HTTP protocol is still more compelling than binary message over proprietary protocol.

Ravi Pavan wrote:
"Customers can search for books based on certain search criteria (ISBN, author name, etc.)."
This can be done by a normal java web application also know then why to use webservices for this .


While I was in my university days, there was a popular question about web services which went like : "What's the difference between web service and web application?". The considered correct answer is "Web application is human to machine communication but web services is machine to machine". Me and my friends just memorized the quote without knowing much of it meaning.

You may implement the book searching system as a web application which users can open the searching web page. A user may see a text field with "Criteria" label in front , he type it some criteria and click submit button. This communication is between human and your web application. But if you choose to implement your application as a web services then you may expect users to write a piece of code to connect to your system and call the search service programmatically. A user may be building a book price comparing system which connect to various book provider.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Usage of webservices in a Application