Dim xml As NewChilkatXml
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:getCompleteComponent|intf:vrid","xml"
xml.UpdateChildContent"soapenv:Body|intf:getCompleteComponent|intf:typeId","xml"
xml.UpdateChildContent"soapenv:Body|intf:getCompleteComponent|intf:si","xml"
xml.UpdateChildContent"soapenv:Body|intf:getCompleteComponent|intf:st","xml"
xml.UpdateChildContent"soapenv:Body|intf:getCompleteComponent|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 = 0Dim soapRequestBody As String
soapRequestBody = xml.GetXml()
Dim endpoint As String
endpoint = "http://www.haynespro-services.com/workshopServices3/services/DataServiceEndpoint"Dim soapAction As String
soapAction = ""' For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"Dim contentType As String
contentType = "text/xml"Dim http As NewChilkatHttp
http.ClearHeaders
http.SetRequestHeader"Content-Type",contentType
http.SetRequestHeader"SOAPAction",soapAction
Dim resp AsChilkatHttpResponse
Set resp = http.PostXml(endpoint,soapRequestBody,"utf-8")
If (http.LastMethodSuccess = 0) Then
Debug.Print http.LastErrorText
Debug.Print "Failed to send SOAP request."Exit SubEnd If' Get the XML response body.Dim responseXml As NewChilkatXml
success = resp.GetBodyXml(responseXml)
Dim statusCode As Long
statusCode = resp.StatusCode
Debug.Print "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
Debug.Print responseXml.GetXml()
Exit SubEnd If
Debug.Print 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).Dim componentImageId As String
componentImageId = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:componentImageId")
Dim connectorSideImage As String
connectorSideImage = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:connectorSideImage")
Dim flashVarsString As String
flashVarsString = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:flashVarsString")
Dim xvalue As String
xvalue = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:xvalue")
Dim ymaxvalue As String
ymaxvalue = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:ymaxvalue")
Dim yminvalue As String
yminvalue = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:yminvalue")
Dim xaxis As String
xaxis = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:xaxis")
Dim yaxis As String
yaxis = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:yaxis")
Dim name As String
name = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:name")
Dim sortOrder As String
sortOrder = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:sortOrder")
Dim value1 As String
value1 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:header|*:value1")
Dim value2 As String
value2 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:header|*:value2")
value1 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:rows|*:item|*:value1")
value2 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:rows|*:item|*:value2")
Dim text As String
text = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:text")
Dim title As String
title = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:title")
Dim v_type As String
v_type = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:type")
Dim drawRight As String
drawRight = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:drawRight")
Dim image As String
image = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:image")
name = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:name")
Dim pinname As String
pinname = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:pinname")
Dim sort_order As String
sort_order = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:sort_order")
v_type = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:type")
title = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:title")
Dim ecuSideImage As String
ecuSideImage = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:ecuSideImage")
Dim description As String
description = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:genericParts|*:item|*:description")
Dim id As String
id = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:genericParts|*:item|*:id")
Dim mandatory As String
mandatory = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:genericParts|*:item|*:mandatory")
Dim hasLocationSystems As String
hasLocationSystems = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:hasLocationSystems")
description = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:description")
Dim hyperlink As String
hyperlink = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:hyperlink")
name = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:name")
Dim pinName As String
pinName = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:pinName")
Dim pinNumber As String
pinNumber = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:pinNumber")
Dim si As String
si = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:si")
Dim st As String
st = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:st")
Dim wireColor1 As String
wireColor1 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:wireColor1")
Dim wireColor2 As String
wireColor2 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:wireColor2")
Dim renderable As String
renderable = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:renderable")
Dim subnetXml As String
subnetXml = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:subnetXml")
Dim confirmationLink As String
confirmationLink = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:status|*:confirmationLink")
Dim statusCode As String
statusCode = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:status|*:statusCode")