私はコーディングの初心者です。
以下の Web サービスを呼び出す必要があります: http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit
25 のような値を入力し、Invoke をクリックすると、温度が華氏で返されます。
そのために、以下のコードを使用しました:
url = "http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit&Celsius=25"
'Set oHttpReq = CreateObject("Microsoft.XMLHTTP") 'when i use XMLHTTP i am getting error saying "The download of the specified resource has failed."
Set oHttpReq = CreateObject("MSXML2.ServerXMLHTTP") 'If i use it, the response contains Root Element missing
oHttpReq.open "POST", url, False
oHttpReq.send
'Response
responseText = oHttpReq.responseText
WScript.echo responseText
誰でも私を助けることができますか?