the Perl Webservices book? Anyway:

Think of SOAP (and webservices) as a method for doing RPC over exisiting protocols such as HTTP using platform independent data (i.e. embed everything as XML)

This changes the question to be "why would I want RPC?" -- Which is all down to the problems you're trying to solve. To pick a problem at 'random'; Let's say you want to find events near a UK postcode -- you may not want to try and collect this data locally, and might want to pull data off an existing website like local.angle - they offer a webservice that allows you to get a list of events based on your postcode with their permission -- you could just pull the data off their website, but you do have some morals, right?

For the data providers (in the case of web services that merely retrieve data) it's a lot more efficient to give the raw data, instead of the data dispersed through the virtually manditory 30kb of navigational fluff that is merely presentational.

Now, expand this to the cases where you want them to do something with your request (like order some books) and it becomes even more of a saving, as you're not having to "fake" form filling, etc.

Other examples I've seen (and used) are the ability to query the Amazon catalogue, find out about DSL and cable modem availability in the UK and getting exchange rate data.

At then end of the day, it's up to you to decide whether web services will solve your problems, and whether you'd like to reuse the services out there.

--
RatArsed


In reply to Re: Perl Webservices...whats it good for? by RatArsed
in thread Perl Webservices...whats it good for? by ergowolf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.