SOAP WSDL Generate Code

DataServiceEndpointSoapBinding / getMaintenanceSystemsV5

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
    xml := chilkat.NewXml()
    xml.SetTag("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:getMaintenanceSystemsV5|intf:vrid","xml")
    xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV5|intf:descriptionLanguage","xml")
    xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV5|intf:carTypeId","xml")
    xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV5|intf:repairtimesTypeId","xml")
    xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV5|intf:rtTypeCategory","xml")
    xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV5|intf:useImperial","xml")
    xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceSystemsV5|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.SetEmitXmlDecl(false)
    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"

    http := chilkat.NewHttp()

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

    resp := http.PostXml(endpoint,*soapRequestBody,"utf-8")
    if http.LastMethodSuccess() == false {
        fmt.Println(http.LastErrorText())
        fmt.Println("Failed to send SOAP request.")
        xml.DisposeXml()
        http.DisposeHttp()
        return
    }

    // Get the XML response body.
    responseXml := chilkat.NewXml()
    resp.GetBodyXml(responseXml)

    statusCode := resp.StatusCode()
    fmt.Println("response status code: ", statusCode)

    resp.DisposeHttpResponse()

    // If the status code does not indicate succcess, then show the response XML,
    // which probably contains error information.
    if statusCode != 200 {
        fmt.Println(*responseXml.GetXml())
        xml.DisposeXml()
        http.DisposeHttp()
        responseXml.DisposeXml()
        return
    }

    fmt.Println(*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).

    attributeTypeDescription := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:criteria|*:item|*:attributeTypeDescription")
    keyTableDescription := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:criteria|*:item|*:keyTableDescription")
    keyValue := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:criteria|*:item|*:keyValue")
    keyValueDescription := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:criteria|*:item|*:keyValueDescription")
    kritnr := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:criteria|*:item|*:kritnr")
    tabnr := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:criteria|*:item|*:tabnr")
    criteriaId := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:criteriaId")
    criteriaLevel := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:criteriaLevel")
    description := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:description")
    value1 := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:value1")
    value2 := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:value2")
    groupDescription := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:generalCriterias|*:item|*:groupDescription")
    groupId := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:generalCriterias|*:item|*:groupId")
    id := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:id")
    combinable := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:combinable")
    criteriaId = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupCriterias|*:item|*:criteriaId")
    criteriaLevel = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupCriterias|*:item|*:criteriaLevel")
    description = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupCriterias|*:item|*:description")
    value1 = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupCriterias|*:item|*:value1")
    value2 = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupCriterias|*:item|*:value2")
    groupDescription = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupDescription")
    groupId = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:generalCriterias|*:item|*:groupId")
    id = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:id")
    name := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:name")
    code := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:times|*:item|*:code")
    selected := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:times|*:item|*:selected")
    v_type := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:times|*:item|*:type")
    value := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:maintenancePeriods|*:item|*:times|*:item|*:value")
    name = responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:name")
    confirmationLink := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:status|*:confirmationLink")
    statusCode := responseXml.GetChildContent("*:Body|*:getMaintenanceSystemsV5Response|*:getMaintenanceSystemsV5Return|*:status|*:statusCode")

    xml.DisposeXml()
    http.DisposeHttp()
    responseXml.DisposeXml()
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:getMaintenanceSystemsV5>
            <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:useImperial>xml</intf:useImperial>
            <intf:includeServiceTimes>xml</intf:includeServiceTimes>
        </intf:getMaintenanceSystemsV5>
    </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:getMaintenanceSystemsV5Response>
            <intf:getMaintenanceSystemsV5Return>
                <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: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:getMaintenanceSystemsV5Return>
        </intf:getMaintenanceSystemsV5Response>
    </soapenv:Body>
</soapenv:Envelope>