SOAP WSDL Generate Code

DataServiceEndpointSoapBinding / processRepairTasksV3

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
func chilkatTest() {
    let xml = CkoXml()
    xml.Tag = "soapenv:Envelope"
    xml.AddAttribute("xmlns:intf", value: "http://data.webservice.workshop.vivid.nl")
    xml.AddAttribute("xmlns:soapenv", value: "http://schemas.xmlsoap.org/soap/envelope/")
    xml.UpdateChildContent("soapenv:Header", value: "")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:vrid", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:descriptionLanguage", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:carTypeId", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:maintenanceSystemId", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:maintenancePeriodIds", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:repairtimeTypeId", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:typeCategory", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:maintenanceTaskIds", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:useMaintenanceTasks", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:repairTaskIds", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:repairVatRates", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:labourRateMechanical", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:labourRateBody", value: "xml")
    xml.UpdateChildContent("soapenv:Body|intf:processRepairTasksV3|intf:labourRateElectronics", value: "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
    var soapRequestBody: String? = xml.GetXml()

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

    let http = CkoHttp()

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

    var resp: CkoHttpResponse? = http.PostXml(endpoint, xmlDoc: soapRequestBody, charset: "utf-8")
    if http.LastMethodSuccess == false {
        print("\(http.LastErrorText)")
        print("Failed to send SOAP request.")
        return
    }

    // Get the XML response body.
    let responseXml = CkoXml()
    resp!.GetBodyXml(responseXml)

    var statusCode: Int = resp!.StatusCode.intValue
    print("response status code: \(statusCode)")

    resp = nil

    // If the status code does not indicate succcess, then show the response XML,
    // which probably contains error information.
    if statusCode != 200 {
        print("\(responseXml.GetXml())")
        return
    }

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

    var calculatedTime: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:calculatedTime")
    var description: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:description")
    description = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:genarts|*:item|*:description")
    var id: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:genarts|*:item|*:id")
    var mandatory: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:genarts|*:item|*:mandatory")
    id = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:id")
    var jobType: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:jobType")
    var priceWithoutVat: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:priceWithoutVat")
    var awNumber: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:followUpWorkList|*:item|*:awNumber")
    description = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:followUpWorkList|*:item|*:description")
    var direction: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:followUpWorkList|*:item|*:direction")
    description = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:followUpWorkList|*:item|*:generalArticles|*:item|*:description")
    id = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:followUpWorkList|*:item|*:generalArticles|*:item|*:id")
    mandatory = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:followUpWorkList|*:item|*:generalArticles|*:item|*:mandatory")
    var hasInfoGroups: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:followUpWorkList|*:item|*:hasInfoGroups")
    jobType = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:followUpWorkList|*:item|*:jobType")
    var value: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:followUpWorkList|*:item|*:value")
    awNumber = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:includedList|*:item|*:awNumber")
    description = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:includedList|*:item|*:description")
    direction = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:includedList|*:item|*:direction")
    description = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:includedList|*:item|*:generalArticles|*:item|*:description")
    id = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:includedList|*:item|*:generalArticles|*:item|*:id")
    mandatory = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:includedList|*:item|*:generalArticles|*:item|*:mandatory")
    hasInfoGroups = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:includedList|*:item|*:hasInfoGroups")
    jobType = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:includedList|*:item|*:jobType")
    value = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:includedList|*:item|*:value")
    var nodeId: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:nodeId")
    awNumber = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:notIncludedList|*:item|*:awNumber")
    description = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:notIncludedList|*:item|*:description")
    direction = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:notIncludedList|*:item|*:direction")
    description = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:notIncludedList|*:item|*:generalArticles|*:item|*:description")
    id = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:notIncludedList|*:item|*:generalArticles|*:item|*:id")
    mandatory = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:notIncludedList|*:item|*:generalArticles|*:item|*:mandatory")
    hasInfoGroups = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:notIncludedList|*:item|*:hasInfoGroups")
    jobType = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:notIncludedList|*:item|*:jobType")
    value = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:notIncludedList|*:item|*:value")
    awNumber = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:preliminaryList|*:item|*:awNumber")
    description = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:preliminaryList|*:item|*:description")
    direction = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:preliminaryList|*:item|*:direction")
    description = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:preliminaryList|*:item|*:generalArticles|*:item|*:description")
    id = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:preliminaryList|*:item|*:generalArticles|*:item|*:id")
    mandatory = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:preliminaryList|*:item|*:generalArticles|*:item|*:mandatory")
    hasInfoGroups = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:preliminaryList|*:item|*:hasInfoGroups")
    jobType = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:preliminaryList|*:item|*:jobType")
    value = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:preliminaryList|*:item|*:value")
    var confirmationLink: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:status|*:confirmationLink")
    var statusCode: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:repairtimesInfo|*:status|*:statusCode")
    var subtotal: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:subtotal")
    var vat: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:basketItems|*:item|*:vat")
    var repairPriceWithoutVat: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:repairPriceWithoutVat")
    var repairTasksVat: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:repairTasksVat")
    confirmationLink = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:status|*:confirmationLink")
    statusCode = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:status|*:statusCode")
    var totalRepairPrice: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:totalRepairPrice")
    var totalRepairTime: String? = responseXml.GetChildContent("*:Body|*:processRepairTasksV3Response|*:processRepairTasksV3Return|*:totalRepairTime")

}
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:processRepairTasksV3>
            <intf:vrid>xml</intf:vrid>
            <intf:descriptionLanguage>xml</intf:descriptionLanguage>
            <intf:carTypeId>xml</intf:carTypeId>
            <intf:maintenanceSystemId>xml</intf:maintenanceSystemId>
            <intf:maintenancePeriodIds>xml</intf:maintenancePeriodIds>
            <intf:repairtimeTypeId>xml</intf:repairtimeTypeId>
            <intf:typeCategory>xml</intf:typeCategory>
            <intf:maintenanceTaskIds>xml</intf:maintenanceTaskIds>
            <intf:useMaintenanceTasks>xml</intf:useMaintenanceTasks>
            <intf:repairTaskIds>xml</intf:repairTaskIds>
            <intf:repairVatRates>xml</intf:repairVatRates>
            <intf:labourRateMechanical>xml</intf:labourRateMechanical>
            <intf:labourRateBody>xml</intf:labourRateBody>
            <intf:labourRateElectronics>xml</intf:labourRateElectronics>
        </intf:processRepairTasksV3>
    </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:processRepairTasksV3Response>
            <intf:processRepairTasksV3Return>
                <intf:basketItems>
                    <intf:item>
                        <intf:calculatedTime>xml</intf:calculatedTime>
                        <intf:description>xml</intf:description>
                        <intf:genarts>
                            <intf:item>
                                <intf:description>xml</intf:description>
                                <intf:id>xml</intf:id>
                                <intf:mandatory>xml</intf:mandatory>
                            </intf:item>
                        </intf:genarts>
                        <intf:id>xml</intf:id>
                        <intf:jobType>xml</intf:jobType>
                        <intf:priceWithoutVat>xml</intf:priceWithoutVat>
                        <intf:repairtimesInfo>
                            <intf:followUpWorkList>
                                <intf:item>
                                    <intf:awNumber>xml</intf:awNumber>
                                    <intf:description>xml</intf:description>
                                    <intf:direction>xml</intf:direction>
                                    <intf:generalArticles>
                                        <intf:item>
                                            <intf:description>xml</intf:description>
                                            <intf:id>xml</intf:id>
                                            <intf:mandatory>xml</intf:mandatory>
                                        </intf:item>
                                    </intf:generalArticles>
                                    <intf:hasInfoGroups>xml</intf:hasInfoGroups>
                                    <intf:jobType>xml</intf:jobType>
                                    <intf:value>xml</intf:value>
                                </intf:item>
                            </intf:followUpWorkList>
                            <intf:includedList>
                                <intf:item>
                                    <intf:awNumber>xml</intf:awNumber>
                                    <intf:description>xml</intf:description>
                                    <intf:direction>xml</intf:direction>
                                    <intf:generalArticles>
                                        <intf:item>
                                            <intf:description>xml</intf:description>
                                            <intf:id>xml</intf:id>
                                            <intf:mandatory>xml</intf:mandatory>
                                        </intf:item>
                                    </intf:generalArticles>
                                    <intf:hasInfoGroups>xml</intf:hasInfoGroups>
                                    <intf:jobType>xml</intf:jobType>
                                    <intf:value>xml</intf:value>
                                </intf:item>
                            </intf:includedList>
                            <intf:nodeId>xml</intf:nodeId>
                            <intf:notIncludedList>
                                <intf:item>
                                    <intf:awNumber>xml</intf:awNumber>
                                    <intf:description>xml</intf:description>
                                    <intf:direction>xml</intf:direction>
                                    <intf:generalArticles>
                                        <intf:item>
                                            <intf:description>xml</intf:description>
                                            <intf:id>xml</intf:id>
                                            <intf:mandatory>xml</intf:mandatory>
                                        </intf:item>
                                    </intf:generalArticles>
                                    <intf:hasInfoGroups>xml</intf:hasInfoGroups>
                                    <intf:jobType>xml</intf:jobType>
                                    <intf:value>xml</intf:value>
                                </intf:item>
                            </intf:notIncludedList>
                            <intf:preliminaryList>
                                <intf:item>
                                    <intf:awNumber>xml</intf:awNumber>
                                    <intf:description>xml</intf:description>
                                    <intf:direction>xml</intf:direction>
                                    <intf:generalArticles>
                                        <intf:item>
                                            <intf:description>xml</intf:description>
                                            <intf:id>xml</intf:id>
                                            <intf:mandatory>xml</intf:mandatory>
                                        </intf:item>
                                    </intf:generalArticles>
                                    <intf:hasInfoGroups>xml</intf:hasInfoGroups>
                                    <intf:jobType>xml</intf:jobType>
                                    <intf:value>xml</intf:value>
                                </intf:item>
                            </intf:preliminaryList>
                            <intf:status>
                                <intf:confirmationLink>xml</intf:confirmationLink>
                                <intf:statusCode>xml</intf:statusCode>
                            </intf:status>
                        </intf:repairtimesInfo>
                        <intf:subtotal>xml</intf:subtotal>
                        <intf:vat>xml</intf:vat>
                    </intf:item>
                </intf:basketItems>
                <intf:repairPriceWithoutVat>xml</intf:repairPriceWithoutVat>
                <intf:repairTasksVat>xml</intf:repairTasksVat>
                <intf:status>
                    <intf:confirmationLink>xml</intf:confirmationLink>
                    <intf:statusCode>xml</intf:statusCode>
                </intf:status>
                <intf:totalRepairPrice>xml</intf:totalRepairPrice>
                <intf:totalRepairTime>xml</intf:totalRepairTime>
            </intf:processRepairTasksV3Return>
        </intf:processRepairTasksV3Response>
    </soapenv:Body>
</soapenv:Envelope>