Using ASP and VB6 but still haven't come to grips with SOAP? In this article the ComponentSource team show us how to create a request/respose system in next to no time using simple VBScript and MSXML.
An Introduction To XML SOAP Using ASP and VB6 - VB Client Code (Page 4 of 5 )
Here's the entire code for your VB client:
Sub Main() Dim objHTTP As New MSXML.XMLHTTPRequest Dim strEnvelope As String Dim strReturn As String Dim objReturn As New MSXML.DOMDocument Dim dblTax As Double Dim strQuery As String
ASP Server Code This code resides in an ASP – Soap.asp, in the root directory of the web server.
<% Set objReq = Server.CreateObject("Microsoft.XMLDOM")
'Load the request into XML DOM objReq.Load Request
'Query the DOM for the input parameter strQuery = "SOAP:Envelope/SOAP:Body/m:GetSalesTax/SalesTotal" varSalesTotal = objReq.SelectSingleNode(strQuery).Text
'Calculate the sales tax varSalesTax = varSalesTotal * 0.04