はPS scriptは、Webサービスを検証するためにあり、それが動作します:PowerShellのWebサービスクエリ
$SiteURL = "http://wsf.cdyne.com/WeatherWS/Weather.asmx?op=GetCityWeatherByZIP"
$request = [Net.HttpWebRequest]::Create($SiteURL)
try
{
#Get the response from the requst
$response = [Net.HttpWebResponse]$request.GetResponse()
Write-Host "The service is running."
$request.Abort()
}
Catch
{
Write-Warning "The service of site does not run or maybe you don't have the Credential"
}
しかし、私は、ZIPをクエリパラメータを指定することができますか?
あなたが参照したページも読んでいましたか? 'HTTP GET'セクションを見てください。リクエストに郵便番号を指定するために必要なものをまとめておくことができます。 – TheMadTechnician
このページのHTTP GETセクションはどこですか? – Alexan
@alex http://wsf.cdyne.com/WeatherWS/Weather.asmx?op=GetCityWeatherByZIP –