In this tutorial, I show you the basics of the parse XML file and access website.

Also, I show that with the graphical user interface (GUI) using Windows PowerShell.

It is very easy to use a Web service in PowerShell V2.

We can use that with the new Cmdlet New-WebServiceProxy.

The PowerShell knows how to handle XML. We just need to cast it to an XML object.

Let’s try to get the weather from the internet.

This is the source code:

Run this script with PowerShell or with Windows PowerShell Integrated Scripting Environment (ISE).

Now that we see weather info from London City Airport – United Kingdom.

powershell weather

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.