Reference this class in scripts through the WebService class. You can create an instance of the object class and connect to a database using following script excerpt:
<script language="VBScript" src="ZTIUtility.vbs"/> <script language="VBScript" src="ZTIDataAccess.vbs"/>
<script language="VBScript">
Dim oWebService
Dim oXML
oEnvironment.Item("USZip") ="98029"
oEnvironment.Item("USZip") ="98029"
Set oWebService = new WebService
oWebService.WebService ="http://www.webservicex.net/uszip.asmx/GetInfoByZIP"
oWebService.Parameters ="USZip"
Set oXML = oWebService.Query
WScript.Echo "Web service response:"
WScript.Echo oXML.XML
Related Topics