Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Windows PowerShell for .NET Developers - Second Edition

You're reading from   Windows PowerShell for .NET Developers - Second Edition Efficiently administer and maintain your development environment with Windows PowerShell

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781785287435
Length 330 pages
Edition 2nd Edition
Arrow right icon
Toc

Exploring web services


A web service is generally an XML-based program. Using this, we can exchange data over a network. A web service is nothing but an application component, which works on an open protocol, can be used by other applications, and is reusable.

Web services allow interaction between applications and use standardized XML. Simply put, it's a combination of XML and HTTP. The following components work for all web services:

  • Simple Object Access Protocol (SOAP)

  • Universal Description, Discovery, and Integration (UDDI)

  • Web Services Description Language (WSDL)

In this topic, we will demonstrate the use of web services and complex web services using Windows PowerShell.

Using web services

New-WebServiceProxy is a cmdlet that allows us to create a proxy object of any given valid web service.

For our example, we will use the following web service:

http://www.webservicex.net/CurrencyConvertor.asmx?WSDL

Run the following command:

$var = New-WebServiceProxy -Uri http://www.webservicex.net...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image