SOAP WSDL Generate Code

DataServiceEndpointSoapBinding / getCompleteComponent

ASP AutoIt C C (Unicode) C++ C++ (Unicode) C# DataFlex Delphi Foxpro Go Java Node.js Objective-C Perl PHP Extension PowerBuilder Powershell PureBasic Python CkPython Ruby SQL Server Swift TCL VB.NET VB6 VBScript Xojo
Dim xml As New ChilkatXml
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 = 0
Dim 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 New ChilkatHttp

http.ClearHeaders 
http.SetRequestHeader "Content-Type",contentType
http.SetRequestHeader "SOAPAction",soapAction

Dim resp As ChilkatHttpResponse
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 Sub
End If

' Get the XML response body.
Dim responseXml As New ChilkatXml
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 Sub
End 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")
Request XML
<soapenv:Envelope xmlns:intf="http://data.webservice.workshop.vivid.nl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header/>
    <soapenv:Body>
        <intf:getCompleteComponent>
            <intf:vrid>xml</intf:vrid>
            <intf:typeId>xml</intf:typeId>
            <intf:si>xml</intf:si>
            <intf:st>xml</intf:st>
            <intf:language>xml</intf:language>
        </intf:getCompleteComponent>
    </soapenv:Body>
</soapenv:Envelope>
Response XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns2="http://datatypes.webservice.elecdata.vivid.nl" xmlns:tns1="http://datamodel.webservice.elecdata.vivid.nl" xmlns:intf="http://data.webservice.workshop.vivid.nl">
    <soapenv:Header/>
    <soapenv:Body>
        <intf:getCompleteComponentResponse>
            <intf:getCompleteComponentReturn>
                <tns1:completeComponent>
                    <tns2:componentImageId>xml</tns2:componentImageId>
                    <tns2:connectorSideImage>xml</tns2:connectorSideImage>
                    <tns2:diagnosisSteps>
                        <intf:item>
                            <tns2:diagnosisSteps>
                                <intf:item>
                                    <tns2:flashVarsString>xml</tns2:flashVarsString>
                                    <tns2:graph>
                                        <tns2:points>
                                            <intf:item>
                                                <tns2:xvalue>xml</tns2:xvalue>
                                                <tns2:ymaxvalue>xml</tns2:ymaxvalue>
                                                <tns2:yminvalue>xml</tns2:yminvalue>
                                            </intf:item>
                                        </tns2:points>
                                        <tns2:xaxis>xml</tns2:xaxis>
                                        <tns2:yaxis>xml</tns2:yaxis>
                                    </tns2:graph>
                                    <tns2:name>xml</tns2:name>
                                    <tns2:noAnswer/>
                                    <tns2:sortOrder>xml</tns2:sortOrder>
                                    <tns2:table>
                                        <tns2:header>
                                            <tns2:value1>xml</tns2:value1>
                                            <tns2:value2>xml</tns2:value2>
                                        </tns2:header>
                                        <tns2:rows>
                                            <intf:item>
                                                <tns2:value1>xml</tns2:value1>
                                                <tns2:value2>xml</tns2:value2>
                                            </intf:item>
                                        </tns2:rows>
                                    </tns2:table>
                                    <tns2:text>xml</tns2:text>
                                    <tns2:title>xml</tns2:title>
                                    <tns2:type>xml</tns2:type>
                                    <tns2:wirediagram2>
                                        <tns2:nodeArray>
                                            <intf:item>
                                                <tns2:drawRight>xml</tns2:drawRight>
                                                <tns2:image>xml</tns2:image>
                                                <tns2:name>xml</tns2:name>
                                                <tns2:pinname>xml</tns2:pinname>
                                                <tns2:sort_order>xml</tns2:sort_order>
                                                <tns2:type>xml</tns2:type>
                                            </intf:item>
                                        </tns2:nodeArray>
                                    </tns2:wirediagram2>
                                    <tns2:yesAnswer/>
                                </intf:item>
                            </tns2:diagnosisSteps>
                            <tns2:title>xml</tns2:title>
                        </intf:item>
                    </tns2:diagnosisSteps>
                    <tns2:ecuSideImage>xml</tns2:ecuSideImage>
                    <tns2:genericParts>
                        <intf:item>
                            <tns2:description>xml</tns2:description>
                            <tns2:id>xml</tns2:id>
                            <tns2:mandatory>xml</tns2:mandatory>
                        </intf:item>
                    </tns2:genericParts>
                    <tns2:hasLocationSystems>xml</tns2:hasLocationSystems>
                    <tns2:pinTable>
                        <tns2:componentsArray>
                            <intf:item>
                                <tns2:description>xml</tns2:description>
                                <tns2:hyperlink>xml</tns2:hyperlink>
                                <tns2:name>xml</tns2:name>
                                <tns2:pinName>xml</tns2:pinName>
                                <tns2:pinNumber>xml</tns2:pinNumber>
                                <tns2:si>xml</tns2:si>
                                <tns2:st>xml</tns2:st>
                                <tns2:wireColor1>xml</tns2:wireColor1>
                                <tns2:wireColor2>xml</tns2:wireColor2>
                            </intf:item>
                        </tns2:componentsArray>
                    </tns2:pinTable>
                    <tns2:renderable>xml</tns2:renderable>
                    <tns2:subnetXml>xml</tns2:subnetXml>
                </tns1:completeComponent>
                <tns1:status>
                    <intf:confirmationLink>xml</intf:confirmationLink>
                    <intf:statusCode>xml</intf:statusCode>
                </tns1:status>
            </intf:getCompleteComponentReturn>
        </intf:getCompleteComponentResponse>
    </soapenv:Body>
</soapenv:Envelope>