SOAP WSDL Generate Code

DataServiceEndpointSoapBinding / getMaintenanceTasksV6

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
Use ChilkatAx-9.5.0-win32.pkg

Procedure Test
    Handle hoXml
    Boolean iSuccess
    String sSoapRequestBody
    String sEndpoint
    String sSoapAction
    String sContentType
    Handle hoHttp
    Variant vResp
    Handle hoResp
    Variant vResponseXml
    Handle hoResponseXml
    Integer iStatusCode
    String sAttributeTypeDescription
    String sKeyTableDescription
    String sKeyValue
    String sKeyValueDescription
    String sKritnr
    String sTabnr
    String sDescriptionId
    String sAwNumber
    String sDescription
    String sId
    String sMandatory
    String sHasInfoGroups
    String sHasSubnodes
    String sOrder
    String sConfirmationLink
    String sStatusCode
    String sValue
    String sIncludeByDefault
    String sItem
    String sMandatoryReplacement
    String sName
    String sOverrulingRemark
    String sRemark
    String sRepairTimesTaskId
    String sFilter
    String sId1
    String sId2
    String sOperation
    String sCode
    String sSelected
    String sV_type
    String sTemp1
    Boolean bTemp1

    Get Create (RefClass(cComChilkatXml)) To hoXml
    If (Not(IsComObjectCreated(hoXml))) Begin
        Send CreateComObject of hoXml
    End
    Set ComTag Of hoXml To "soapenv:Envelope"
    Get ComAddAttribute Of hoXml "xmlns:intf" "http://data.webservice.workshop.vivid.nl" To iSuccess
    Get ComAddAttribute Of hoXml "xmlns:soapenv" "http://schemas.xmlsoap.org/soap/envelope/" To iSuccess
    Send ComUpdateChildContent To hoXml "soapenv:Header" ""
    Send ComUpdateChildContent To hoXml "soapenv:Body|intf:getMaintenanceTasksV6|intf:vrid" "xml"
    Send ComUpdateChildContent To hoXml "soapenv:Body|intf:getMaintenanceTasksV6|intf:descriptionLanguage" "xml"
    Send ComUpdateChildContent To hoXml "soapenv:Body|intf:getMaintenanceTasksV6|intf:carTypeId" "xml"
    Send ComUpdateChildContent To hoXml "soapenv:Body|intf:getMaintenanceTasksV6|intf:repairtimesTypeId" "xml"
    Send ComUpdateChildContent To hoXml "soapenv:Body|intf:getMaintenanceTasksV6|intf:rtTypeCategory" "xml"
    Send ComUpdateChildContent To hoXml "soapenv:Body|intf:getMaintenanceTasksV6|intf:systemId" "xml"
    Send ComUpdateChildContent To hoXml "soapenv:Body|intf:getMaintenanceTasksV6|intf:periodId" "xml"
    Send ComUpdateChildContent To hoXml "soapenv:Body|intf:getMaintenanceTasksV6|intf:includeSmartLinks" "xml"
    Send ComUpdateChildContent To hoXml "soapenv:Body|intf:getMaintenanceTasksV6|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. 
    Set ComEmitXmlDecl Of hoXml To False
    Get ComGetXml Of hoXml To sSoapRequestBody

    Move "http://www.haynespro-services.com/workshopServices3/services/DataServiceEndpoint" To sEndpoint
    Move "" To sSoapAction
    //  For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
    Move "text/xml" To sContentType

    Get Create (RefClass(cComChilkatHttp)) To hoHttp
    If (Not(IsComObjectCreated(hoHttp))) Begin
        Send CreateComObject of hoHttp
    End

    Send ComClearHeaders To hoHttp
    Send ComSetRequestHeader To hoHttp "Content-Type" sContentType
    Send ComSetRequestHeader To hoHttp "SOAPAction" sSoapAction

    Get ComPostXml Of hoHttp sEndpoint sSoapRequestBody "utf-8" To vResp
    If (IsComObject(vResp)) Begin
        Get Create (RefClass(cComChilkatHttpResponse)) To hoResp
        Set pvComObject Of hoResp To vResp
    End
    Get ComLastMethodSuccess Of hoHttp To bTemp1
    If (bTemp1 = False) Begin
        Get ComLastErrorText Of hoHttp To sTemp1
        Showln sTemp1
        Showln "Failed to send SOAP request."
        Procedure_Return
    End

    // Get the XML response body.
    Get Create (RefClass(cComChilkatXml)) To hoResponseXml
    If (Not(IsComObjectCreated(hoResponseXml))) Begin
        Send CreateComObject of hoResponseXml
    End
    Get pvComObject of hoResponseXml to vResponseXml
    Get ComGetBodyXml Of hoResp vResponseXml To iSuccess

    Get ComStatusCode Of hoResp To iStatusCode
    Showln "response status code: " iStatusCode

    Send Destroy of hoResp

    // If the status code does not indicate succcess, then show the response XML,
    // which probably contains error information.
    If (iStatusCode <> 200) Begin
        Get ComGetXml Of hoResponseXml To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    Get ComGetXml Of hoResponseXml To sTemp1
    Showln sTemp1

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

    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:criteria|*:item|*:attributeTypeDescription" To sAttributeTypeDescription
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:criteria|*:item|*:keyTableDescription" To sKeyTableDescription
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:criteria|*:item|*:keyValue" To sKeyValue
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:criteria|*:item|*:keyValueDescription" To sKeyValueDescription
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:criteria|*:item|*:kritnr" To sKritnr
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:criteria|*:item|*:tabnr" To sTabnr
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:descriptionId" To sDescriptionId
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:awNumber" To sAwNumber
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:description" To sDescription
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:genarts|*:item|*:description" To sDescription
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:genarts|*:item|*:id" To sId
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:genarts|*:item|*:mandatory" To sMandatory
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:hasInfoGroups" To sHasInfoGroups
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:hasSubnodes" To sHasSubnodes
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:id" To sId
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:order" To sOrder
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:status|*:confirmationLink" To sConfirmationLink
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:status|*:statusCode" To sStatusCode
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:followUpRepairs|*:item|*:value" To sValue
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:generalArticles|*:item|*:description" To sDescription
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:generalArticles|*:item|*:id" To sId
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:generalArticles|*:item|*:mandatory" To sMandatory
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:includeByDefault" To sIncludeByDefault
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:longDescriptions|*:item" To sItem
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:mandatoryReplacement" To sMandatoryReplacement
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:name" To sName
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:order" To sOrder
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:overrulingRemark" To sOverrulingRemark
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:remark" To sRemark
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:repairTimesTaskId" To sRepairTimesTaskId
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:smartLinks|*:item|*:filter" To sFilter
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:smartLinks|*:item|*:id1" To sId1
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:smartLinks|*:item|*:id2" To sId2
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:smartLinks|*:item|*:operation" To sOperation
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:smartLinks|*:item|*:text|*:item" To sItem
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:status|*:confirmationLink" To sConfirmationLink
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:status|*:statusCode" To sStatusCode
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:times|*:item|*:code" To sCode
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:times|*:item|*:selected" To sSelected
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:times|*:item|*:type" To sV_type
    Get ComGetChildContent Of hoResponseXml "*:Body|*:getMaintenanceTasksV6Response|*:getMaintenanceTasksV6Return|*:times|*:item|*:value" To sValue


End_Procedure
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:getMaintenanceTasksV6>
            <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:systemId>xml</intf:systemId>
            <intf:periodId>xml</intf:periodId>
            <intf:includeSmartLinks>xml</intf:includeSmartLinks>
            <intf:includeServiceTimes>xml</intf:includeServiceTimes>
        </intf:getMaintenanceTasksV6>
    </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:getMaintenanceTasksV6Response>
            <intf:getMaintenanceTasksV6Return>
                <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:descriptionId>xml</intf:descriptionId>
                <intf:followUpRepairs>
                    <intf:item>
                        <intf:awNumber>xml</intf:awNumber>
                        <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:hasInfoGroups>xml</intf:hasInfoGroups>
                        <intf:hasSubnodes>xml</intf:hasSubnodes>
                        <intf:id>xml</intf:id>
                        <intf:order>xml</intf:order>
                        <intf:status>
                            <intf:confirmationLink>xml</intf:confirmationLink>
                            <intf:statusCode>xml</intf:statusCode>
                        </intf:status>
                        <intf:value>xml</intf:value>
                    </intf:item>
                </intf:followUpRepairs>
                <intf:generalArticles>
                    <intf:item>
                        <intf:description>xml</intf:description>
                        <intf:id>xml</intf:id>
                        <intf:mandatory>xml</intf:mandatory>
                    </intf:item>
                </intf:generalArticles>
                <intf:includeByDefault>xml</intf:includeByDefault>
                <intf:longDescriptions>
                    <intf:item>xml</intf:item>
                </intf:longDescriptions>
                <intf:mandatoryReplacement>xml</intf:mandatoryReplacement>
                <intf:name>xml</intf:name>
                <intf:order>xml</intf:order>
                <intf:overrulingRemark>xml</intf:overrulingRemark>
                <intf:remark>xml</intf:remark>
                <intf:repairTimesTaskId>xml</intf:repairTimesTaskId>
                <intf:smartLinks>
                    <intf:item>
                        <intf:filter>xml</intf:filter>
                        <intf:id1>xml</intf:id1>
                        <intf:id2>xml</intf:id2>
                        <intf:operation>xml</intf:operation>
                        <intf:text>
                            <intf:item>xml</intf:item>
                        </intf:text>
                    </intf:item>
                </intf:smartLinks>
                <intf:status>
                    <intf:confirmationLink>xml</intf:confirmationLink>
                    <intf:statusCode>xml</intf:statusCode>
                </intf:status>
                <intf:subTasks>
                    <intf:item/>
                </intf:subTasks>
                <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:getMaintenanceTasksV6Return>
        </intf:getMaintenanceTasksV6Response>
    </soapenv:Body>
</soapenv:Envelope>