Hi,
Can anyone point me in the direction or post a snippet of how to make a call to a SOAP web service in ASP.NET, where I send three parameters to the service and it returns a string?
My skills in .NET are really limited, and the only examples I can find just seem really really complex. I just need to hard-code 3 parameters and send them to a SOAP URL and output the response.
Tried it in classic ASP, but couldn't get this to work:
<%
url = "http://www.webservice.co.uk/B2bservice.asmx?wsdl"
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send "Ccode=mycode&Pword=mypass&OrderNo=1234"
Response.write xmlhttp.responseText
set xmlhttp = nothing
%>
Any help greatly appreciated.
Thanks!