Skip to Content
Cloud Computing, 2nd Edition
book

Cloud Computing, 2nd Edition

by Kris Jamsa
March 2022
Intermediate to advanced
400 pages
10h 10m
English
Jones & Bartlett Learning
Content preview from Cloud Computing, 2nd Edition

Web Service Interoperability

One of the biggest advantages of web services is their interoperability. They can be called from programs using a variety of programming languages, in other words. Consider, for example, the following web service that provides two methods, Uppercase and Lowercase, that return the uppercase or lowercase equivalents of the character strings they receive:

The program reads as follows: Line 1: using System semicolon. Line 2: using System dot Web dot Services semicolon. Line 3: open bracket Web Service open parenthesis Name space equals double quote h t t p colon double slash tempura dot o r g slash double quote close parenthesis close bracket. Line 4: open bracket Web Service Binding open parenthesis Conforms To equals W s i Profiles dot Basic Profile 1 underscore 1 close parenthesis close bracket. Line 5: public class Service colon System dot Web dot Services dot Web Service. Line 6: open brace. Line 7: public Service open parenthesis close parenthesis open brace. Line 8: double slash Uncomment the following line if using designed components. Line 9: double slash Initialize Component open parenthesis close parenthesis semicolon. Line 10: close brace. Line 11: open bracket Web Method close bracket. Line 12: public string Uppercase open parenthesis string source close parenthesis. Line 13: open brace. Line 14: return source dot To Upper open parenthesis close parenthesis semicolon. Line 15: close brace. Line 16: open bracket Web Method close bracket. Line 17: public string Lowercase open parenthesis string source close parenthesis. Line 18: open brace. Line 19: return source dot To Lower open parenthesis close parenthesis semicolon. Line 20: close brace. Line 21: close brace.The program reads as follows: Line 1: using System semicolon. Line 2: using System dot Web dot Services semicolon. Line 3: open bracket Web Service open parenthesis Name space equals double quote h t t p colon double slash tempura dot o r g slash double quote close parenthesis close bracket. Line 4: open bracket Web Service Binding open parenthesis Conforms To equals W s i Profiles dot Basic Profile 1 underscore 1 close parenthesis close bracket. Line 5: public class Service colon System dot Web dot Services dot Web Service. Line 6: open brace. Line 7: public Service open parenthesis close parenthesis open brace. Line 8: double slash Uncomment the following line if using designed components. Line 9: double slash Initialize Component open parenthesis close parenthesis semicolon. Line 10: close brace. Line 11: open bracket Web Method close bracket. Line 12: public string Uppercase open parenthesis string source close parenthesis. Line 13: open brace. Line 14: return source dot To Upper open parenthesis close parenthesis semicolon. Line 15: close brace. Line 16: open bracket Web Method close bracket. Line 17: public string Lowercase open parenthesis string source close parenthesis. Line 18: open brace. Line 19: return source dot To Lower open parenthesis close parenthesis semicolon. Line 20: close brace. Line 21: close brace.

This particular web service was written using the C# programming language within a .Net environment. The following C# program uses the methods the web service provides: ...

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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Cloud Computing

Cloud Computing

Gopal Shyam
Cloud Computing For Dummies, 2nd Edition

Cloud Computing For Dummies, 2nd Edition

Judith S. Hurwitz, Daniel Kirsch

Publisher Resources

ISBN: 9781284233988