• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Usage of webservices in a Application

 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The answer is simple if you know why we need xml when there is html.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This might help. So might this.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?


 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Manhar
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic