Dim xml As NewChilkat.Xml
xml.Tag = "soapenv:Envelope"Dim success As Boolean
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:getCompleteComponentV4|intf:vrid","xml"
xml.UpdateChildContent"soapenv:Body|intf:getCompleteComponentV4|intf:typeId","xml"
xml.UpdateChildContent"soapenv:Body|intf:getCompleteComponentV4|intf:si","xml"
xml.UpdateChildContent"soapenv:Body|intf:getCompleteComponentV4|intf:st","xml"
xml.UpdateChildContent"soapenv:Body|intf:getCompleteComponentV4|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 = FalseDim 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 NewChilkat.Http
http.ClearHeaders
http.SetRequestHeader"Content-Type",contentType
http.SetRequestHeader"SOAPAction",soapAction
Dim resp AsChilkat.HttpResponse
resp = http.PostXml(endpoint,soapRequestBody,"utf-8")
If (http.LastMethodSuccess = False) Then
System.DebugLog(http.LastErrorText)
System.DebugLog("Failed to send SOAP request.")
ReturnEnd If// Get the XML response body.Dim responseXml As NewChilkat.Xml
success = resp.GetBodyXml(responseXml)
Dim statusCode As Int32
statusCode = resp.StatusCode
System.DebugLog("response status code: " + Str(statusCode))
// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.If (statusCode <> 200) Then
System.DebugLog(responseXml.GetXml())
ReturnEnd If
System.DebugLog(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|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:componentImageId")
Dim connectorSideImage As String
connectorSideImage = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:connectorSideImage")
Dim flashVarsString As String
flashVarsString = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:flashVarsString")
Dim xvalue As String
xvalue = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:xvalue")
Dim ymaxvalue As String
ymaxvalue = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:ymaxvalue")
Dim yminvalue As String
yminvalue = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:yminvalue")
Dim xaxis As String
xaxis = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:xaxis")
Dim yaxis As String
yaxis = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:yaxis")
Dim name As String
name = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:name")
Dim item As String
item = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:scopeImagesPaths|*:item")
Dim sortOrder As String
sortOrder = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:sortOrder")
Dim value1 As String
value1 = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:header|*:value1")
Dim value2 As String
value2 = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:header|*:value2")
value1 = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:rows|*:item|*:value1")
value2 = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:rows|*:item|*:value2")
Dim text As String
text = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:text")
Dim title As String
title = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:title")
Dim pinNameId As String
pinNameId = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:pins|*:item|*:pinNameId")
Dim symbolInstanceId As String
symbolInstanceId = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:pins|*:item|*:symbolInstanceId")
Dim state As String
state = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:state")
Dim tool As String
tool = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:tool")
Dim unit As String
unit = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:unit")
Dim value As String
value = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:value")
Dim v_type As String
v_type = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:type")
Dim wirediagramLink As String
wirediagramLink = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagramLink")
title = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:diagnosisSteps|*:item|*:title")
Dim ecuSideImage As String
ecuSideImage = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:ecuSideImage")
Dim description As String
description = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:genericParts|*:item|*:description")
Dim id As String
id = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:genericParts|*:item|*:id")
Dim mandatory As String
mandatory = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:genericParts|*:item|*:mandatory")
Dim hasLocationSystems As String
hasLocationSystems = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:hasLocationSystems")
Dim categoryId As String
categoryId = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:categoryId")
Dim categoryName As String
categoryName = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:categoryName")
id = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:id")
Dim mimeDataName As String
mimeDataName = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:mimeDataName")
name = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:name")
Dim order As String
order = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:order")
Dim remark As String
remark = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:remark")
Dim filter As String
filter = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:smartLinks|*:item|*:filter")
Dim id1 As String
id1 = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:smartLinks|*:item|*:id1")
Dim id2 As String
id2 = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:smartLinks|*:item|*:id2")
Dim operation As String
operation = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:smartLinks|*:item|*:operation")
item = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:smartLinks|*:item|*:text|*:item")
Dim code As String
code = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:specialTool|*:item|*:code")
description = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:specialTool|*:item|*:description")
Dim dimensions As String
dimensions = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:specialTool|*:item|*:dimensions")
id = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:specialTool|*:item|*:id")
mimeDataName = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:specialTool|*:item|*:mimeDataName")
order = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:specialTool|*:item|*:order")
Dim confirmationLink As String
confirmationLink = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:specialTool|*:item|*:status|*:confirmationLink")
Dim statusCode As String
statusCode = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:specialTool|*:item|*:status|*:statusCode")
confirmationLink = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:status|*:confirmationLink")
statusCode = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:linkedStories|*:item|*:stories|*:item|*:status|*:statusCode")
Dim localWiringImage As String
localWiringImage = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:localWiringImage")
description = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:pinTable|*:componentsArray|*:item|*:description")
Dim hyperlink As String
hyperlink = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:pinTable|*:componentsArray|*:item|*:hyperlink")
name = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:pinTable|*:componentsArray|*:item|*:name")
Dim pinName As String
pinName = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:pinTable|*:componentsArray|*:item|*:pinName")
Dim pinNumber As String
pinNumber = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:pinTable|*:componentsArray|*:item|*:pinNumber")
Dim si As String
si = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:pinTable|*:componentsArray|*:item|*:si")
Dim st As String
st = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:pinTable|*:componentsArray|*:item|*:st")
Dim wireColor1 As String
wireColor1 = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:pinTable|*:componentsArray|*:item|*:wireColor1")
Dim wireColor2 As String
wireColor2 = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:pinTable|*:componentsArray|*:item|*:wireColor2")
Dim renderable As String
renderable = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:completeComponentV4|*:renderable")
confirmationLink = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:status|*:confirmationLink")
statusCode = responseXml.GetChildContent("*:Body|*:getCompleteComponentV4Response|*:getCompleteComponentV4Return|*:status|*:statusCode")