Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Const sRequestFileName = "I:\Development\WesternSurplus\AutomatedFeed\CallGWSISTest\request.xml"
Const sResponseFileName = "I:\Development\WesternSurplus\AutomatedFeed\CallGWSISTest\response.xml"
Sub Main()
Dim objHTTP As MSXML.XMLHTTPRequest
Dim sRequest As String
Dim sResponse As String
Dim lFileHandle As Long
'Create the SOAP Envelope
lFileHandle = FreeFile
Open sRequestFileName For Input Access Read As lFileHandle
sRequest = Input(FileLen(sRequestFileName), lFileHandle)
Close lFileHandle
'Set up to post to our local server
Set objHTTP = New MSXML.XMLHTTPRequest
objHTTP.open "post", _
"[URL unfurl="true"]http://admw2k3-gws1/gwsis/integrationservice.asmx",[/URL] False
'Set a standard SOAP/ XML header for the content-type
objHTTP.setRequestHeader "Content-Type", "text/xml"
'Set a header for the method to be called
objHTTP.setRequestHeader "SOAPAction", _
"[URL unfurl="true"]http://rebusis.com/webservices/gcs/IntegrationService/ProcessNA"[/URL]
'Make the SOAP call
objHTTP.send sRequest
'Get the return envelope
sResponse = objHTTP.responseText
Debug.Print sResponse
lFileHandle = FreeFile
Open sResponseFileName For Output Access Write As lFileHandle
Print #lFileHandle, sResponse
Close lFileHandle
End Sub