Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set outFile = fso.CreateTextFile("output.txt", True)
set xml = CreateObject("Chilkat_9_5_0.Xml")
xml.Tag = "soapenv:Envelope"
success = xml.AddAttribute("xmlns:intf","http://data.webservice.workshop.vivid.nl")
success = xml.AddAttribute("xmlns:soapenv","http://schemas.xmlsoap.org/soap/envelope/")
xml.UpdateChildContent"soapenv:Header",""
xml.UpdateChildContent"soapenv:Body|intf:filterFaultCodesWithDiagnosticStepsForTypeV3|intf:vrid","xml"
xml.UpdateChildContent"soapenv:Body|intf:filterFaultCodesWithDiagnosticStepsForTypeV3|intf:typeId","xml"
xml.UpdateChildContent"soapenv:Body|intf:filterFaultCodesWithDiagnosticStepsForTypeV3|intf:codesin","xml"
xml.UpdateChildContent"soapenv:Body|intf:filterFaultCodesWithDiagnosticStepsForTypeV3|intf:language","xml"' In a SOAP HTTP request, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) in the XML body is generally not required.
xml.EmitXmlDecl = 0
soapRequestBody = xml.GetXml()
endpoint = "http://www.haynespro-services.com/workshopServices3/services/DataServiceEndpoint"
soapAction = ""' For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
contentType = "text/xml"set http = CreateObject("Chilkat_9_5_0.Http")
http.ClearHeaders
http.SetRequestHeader"Content-Type",contentType
http.SetRequestHeader"SOAPAction",soapAction
' resp is a Chilkat_9_5_0.HttpResponse
Set resp = http.PostXml(endpoint,soapRequestBody,"utf-8")
If (http.LastMethodSuccess = 0) Then
outFile.WriteLine(http.LastErrorText)
outFile.WriteLine("Failed to send SOAP request.")
WScript.Quit
End If' Get the XML response body.set responseXml = CreateObject("Chilkat_9_5_0.Xml")
success = resp.GetBodyXml(responseXml)
statusCode = resp.StatusCode
outFile.WriteLine("response status code: " & statusCode)
' If the status code does not indicate succcess, then show the response XML,
' which probably contains error information.If (statusCode <> 200) Then
outFile.WriteLine(responseXml.GetXml())
WScript.Quit
End If
outFile.WriteLine(responseXml.GetXml())
' Parse the successful SOAP response XML.' This is a sample of the response XML, but the namespace prefixes will be different.
' We can parse the result using "*" for the namespace prefixes (see below).
ct_text = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:ct_text")
description = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:generalArticles|*:item|*:description")
id = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:generalArticles|*:item|*:id")
mandatory = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:generalArticles|*:item|*:mandatory")
loDirection = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:loDirection")
loX = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:loX")
loY = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:loY")
name = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:name")
v_number = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:number")
shieldPinId = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:shieldPinId")
slImagesId = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:slImagesId")
symbolInstanceId = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:symbolInstanceId")
systemTypeId = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:component|*:systemTypeId")
couplingType = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:couplingType")
system_group_id = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:system_group_id")
system_type_id = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:diagnosticComponents|*:item|*:system_type_id")
fc_code = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:fc_code")
fc_code2 = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:fc_code2")
fd_component_name_id = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:fd_component_name_id")
fd_id = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:fd_id")
fd_plausible = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:fd_plausible")
fd_si_number = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:fd_si_number")
ft_text = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:ft_text")
id = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:faultCode3Array|*:item|*:id")
confirmationLink = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:status|*:confirmationLink")
statusCode = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:status|*:statusCode")
categoryDescription = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:tsbArrayContainer|*:item|*:extTsbCategoryArray|*:item|*:categoryDescription")
categoryTypeConstant = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:tsbArrayContainer|*:item|*:extTsbCategoryArray|*:item|*:categoryTypeConstant")
confirmationLink = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:tsbArrayContainer|*:item|*:extTsbCategoryArray|*:item|*:status|*:confirmationLink")
statusCode = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:tsbArrayContainer|*:item|*:extTsbCategoryArray|*:item|*:status|*:statusCode")
key = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:tsbArrayContainer|*:item|*:extTsbCategoryArray|*:item|*:systems|*:item|*:criteria|*:item|*:values|*:item|*:key")
value = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:tsbArrayContainer|*:item|*:extTsbCategoryArray|*:item|*:systems|*:item|*:criteria|*:item|*:values|*:item|*:value")
issueDate = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:tsbArrayContainer|*:item|*:extTsbCategoryArray|*:item|*:systems|*:item|*:issueDate")
oeCode = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:tsbArrayContainer|*:item|*:extTsbCategoryArray|*:item|*:systems|*:item|*:oeCode")
systemDescription = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:tsbArrayContainer|*:item|*:extTsbCategoryArray|*:item|*:systems|*:item|*:systemDescription")
systemId = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:tsbArrayContainer|*:item|*:extTsbCategoryArray|*:item|*:systems|*:item|*:systemId")
faultCode = responseXml.GetChildContent("*:Body|*:filterFaultCodesWithDiagnosticStepsForTypeV3Response|*:filterFaultCodesWithDiagnosticStepsForTypeV3Return|*:tsbArrayContainer|*:item|*:faultCode")
outFile.Close