why doesn't this soap request work?
I'm sending this way:Code:<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <FahrenheitToCelsius xmlns="http://tempuri.org/"> <Fahrenheit>10</Fahrenheit> </FahrenheitToCelsius> </soap:Body> </soap:Envelope>
VB Code:
url2= "http://www.w3schools.com/webservices/tempconvert.asmx/FahrenheiToCelsius" httpRequest = CreateObject("Microsoft.XMLHTTP") httpRequest.open("post", url2, False) httpRequest.send(CType(httpReq, Object)) 'httpReq is the SOAP request above Dim resp As String = httpRequest.responseText
after it runs thru the code, i get a "The request format is invalid;." Anyone know how to make it work?




Reply With Quote