SOAP WSDL Generate Code

DataServiceEndpointSoapBinding / getMaintenanceSystemsV7

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 Chilkat.Xml
xml.Tag = "soapenv:Envelope"
xml.AddAttribute("xmlns:intf","http://data.webservice.workshop.vivid.nl")
xml.AddAttribute("xmlns:soapenv","http://schemas.xmlsoap.org/soap/envelope/")
xml.UpdateChildContent("soapenv:Header","")
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV7|intf:vrid","xml")
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV7|intf:descriptionLanguage","xml")
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV7|intf:carTypeId","xml")
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV7|intf:repairtimesTypeId","xml")
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV7|intf:rtTypeCategory","xml")
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV7|intf:countryCodes","xml")
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV7|intf:useImperial","xml")
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV7|intf:includeServiceTimes","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 = False
Dim soapRequestBody As String = xml.GetXml()

Dim endpoint As String = "http://www.haynespro-services.com/workshopServices3/services/DataServiceEndpoint"
Dim soapAction As String = ""
'  For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
Dim contentType As String = "text/xml"

Dim http As New Chilkat.Http

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

Dim resp As Chilkat.HttpResponse = http.PostXml(endpoint,soapRequestBody,"utf-8")
If (http.LastMethodSuccess = False) Then
    Debug.WriteLine(http.LastErrorText)
    Debug.WriteLine("Failed to send SOAP request.")
    Exit Sub
End If


' Get the XML response body.
Dim responseXml As New Chilkat.Xml
resp.GetBodyXml(responseXml)

Dim statusCode As Integer = resp.StatusCode
Debug.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
    Debug.WriteLine(responseXml.GetXml())
    Exit Sub
End If


Debug.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).


Dim attributeTypeDescription As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:attributeTypeDescription")
Dim keyTableDescription As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:keyTableDescription")
Dim keyValue As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:keyValue")
Dim keyValueDescription As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:keyValueDescription")
Dim kritnr As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:kritnr")
Dim tabnr As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:tabnr")
Dim criteriaId As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:criteriaId")
Dim criteriaLevel As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:criteriaLevel")
Dim description As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:description")
Dim value1 As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:value1")
Dim value2 As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:value2")
Dim groupDescription As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupDescription")
Dim groupId As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupId")
Dim id As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:id")
Dim combinable As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:combinable")
criteriaId = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupCriterias|*:item|*:criteriaId")
criteriaLevel = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupCriterias|*:item|*:criteriaLevel")
description = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupCriterias|*:item|*:description")
value1 = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupCriterias|*:item|*:value1")
value2 = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupCriterias|*:item|*:value2")
groupDescription = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupDescription")
groupId = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupId")
id = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:id")
Dim name As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:name")
Dim periodSentenceId As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:periodSentenceId")
Dim code As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:times|*:item|*:code")
Dim selected As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:times|*:item|*:selected")
Dim v_type As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:times|*:item|*:type")
Dim value As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:times|*:item|*:value")
name = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:name")
Dim confirmationLink As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:status|*:confirmationLink")
Dim statusCode As String = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*: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:getMaintenanceSystemsV7>
            <intf:vrid>xml</intf:vrid>
            <intf:descriptionLanguage>xml</intf:descriptionLanguage>
            <intf:carTypeId>xml</intf:carTypeId>
            <intf:repairtimesTypeId>xml</intf:repairtimesTypeId>
            <intf:rtTypeCategory>xml</intf:rtTypeCategory>
            <intf:countryCodes>xml</intf:countryCodes>
            <intf:useImperial>xml</intf:useImperial>
            <intf:includeServiceTimes>xml</intf:includeServiceTimes>
        </intf:getMaintenanceSystemsV7>
    </soapenv:Body>
</soapenv:Envelope>
Response XML
<soapenv:Envelope xmlns:intf="http://data.webservice.workshop.vivid.nl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header/>
    <soapenv:Body>
        <intf:getMaintenanceSystemsV7Response>
            <intf:getMaintenanceSystemsV7Return>
                <intf:criteria>
                    <intf:item>
                        <intf:attributeTypeDescription>xml</intf:attributeTypeDescription>
                        <intf:keyTableDescription>xml</intf:keyTableDescription>
                        <intf:keyValue>xml</intf:keyValue>
                        <intf:keyValueDescription>xml</intf:keyValueDescription>
                        <intf:kritnr>xml</intf:kritnr>
                        <intf:tabnr>xml</intf:tabnr>
                    </intf:item>
                </intf:criteria>
                <intf:generalCriterias>
                    <intf:item>
                        <intf:groupCriterias>
                            <intf:item>
                                <intf:criteriaId>xml</intf:criteriaId>
                                <intf:criteriaLevel>xml</intf:criteriaLevel>
                                <intf:description>xml</intf:description>
                                <intf:value1>xml</intf:value1>
                                <intf:value2>xml</intf:value2>
                            </intf:item>
                        </intf:groupCriterias>
                        <intf:groupDescription>xml</intf:groupDescription>
                        <intf:groupId>xml</intf:groupId>
                    </intf:item>
                </intf:generalCriterias>
                <intf:id>xml</intf:id>
                <intf:maintenancePeriods>
                    <intf:item>
                        <intf:combinable>xml</intf:combinable>
                        <intf:generalCriterias>
                            <intf:item>
                                <intf:groupCriterias>
                                    <intf:item>
                                        <intf:criteriaId>xml</intf:criteriaId>
                                        <intf:criteriaLevel>xml</intf:criteriaLevel>
                                        <intf:description>xml</intf:description>
                                        <intf:value1>xml</intf:value1>
                                        <intf:value2>xml</intf:value2>
                                    </intf:item>
                                </intf:groupCriterias>
                                <intf:groupDescription>xml</intf:groupDescription>
                                <intf:groupId>xml</intf:groupId>
                            </intf:item>
                        </intf:generalCriterias>
                        <intf:id>xml</intf:id>
                        <intf:name>xml</intf:name>
                        <intf:periodSentenceId>xml</intf:periodSentenceId>
                        <intf:times>
                            <intf:item>
                                <intf:code>xml</intf:code>
                                <intf:selected>xml</intf:selected>
                                <intf:type>xml</intf:type>
                                <intf:value>xml</intf:value>
                            </intf:item>
                        </intf:times>
                    </intf:item>
                </intf:maintenancePeriods>
                <intf:name>xml</intf:name>
                <intf:status>
                    <intf:confirmationLink>xml</intf:confirmationLink>
                    <intf:statusCode>xml</intf:statusCode>
                </intf:status>
            </intf:getMaintenanceSystemsV7Return>
        </intf:getMaintenanceSystemsV7Response>
    </soapenv:Body>
</soapenv:Envelope>