Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

XML Code

$
0
0

So I downloaded the Powertips Monthly Vol 11, I wanted to try  the weather retrieval

$weather = New-WebServiceProxy -Uri http://www.webservicex.net/globalweather.asmx?WSDL

$data = $weather.GetCitiesByCountry('United States')

I Get

Exception calling "GetCitiesByCountry" with "1" argument(s): "The request failed with HTTP status 417: Expectation

Failed."

At line:1 char:1

+ $data = $weather.GetCitiesByCountry('United Kingdom')

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : WebException

 

 

I get this error in an elevated powershelll session also.

 

How do I fix this 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles