Returning Simple Data from Web Services
Chapter 13 demonstrated the technologies that support Web Services and how to implement a very basic Web Service, the Commissions Web Service. I will pick up from there and show you how to create a Web Service that returns simple data in a practicable way.
Prime numbers—numbers divisible only by themselves or by the number 1—are useful in a tremendous variety of mathematics equations as well as encryption. (Unbreakable encryption relies on huge numbers that are the product of two very large primes. The idea is that by the time any known algorithm can factor the product, the data is no longer relevant.) The Web Service in Listing 14.1 demonstrates how to determine whether a number is prime by using a 2,000-year-old ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access