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
use chilkat();

$xml = chilkat::CkXml->new();
$xml->put_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->put_EmitXmlDecl(0);
$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::CkHttp->new();

$http->ClearHeaders();
$http->SetRequestHeader("Content-Type",$contentType);
$http->SetRequestHeader("SOAPAction",$soapAction);

# resp is a HttpResponse
$resp = $http->PostXml($endpoint,$soapRequestBody,"utf-8");
if ($http->get_LastMethodSuccess() == 0) {
    print $http->lastErrorText() . "\r\n";
    print "Failed to send SOAP request." . "\r\n";
    exit;
}

# Get the XML response body.
$responseXml = chilkat::CkXml->new();
$resp->GetBodyXml($responseXml);

$statusCode = $resp->get_StatusCode();
print "response status code: " . $statusCode . "\r\n";

# If the status code does not indicate succcess, then show the response XML,
# which probably contains error information.
if ($statusCode != 200) {
    print $responseXml->getXml() . "\r\n";
    exit;
}

print $responseXml->getXml() . "\r\n";

# 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|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:attributeTypeDescription");
$keyTableDescription = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:keyTableDescription");
$keyValue = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:keyValue");
$keyValueDescription = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:keyValueDescription");
$kritnr = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:kritnr");
$tabnr = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:criteria|*:item|*:tabnr");
$criteriaId = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:criteriaId");
$criteriaLevel = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:criteriaLevel");
$description = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:description");
$value1 = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:value1");
$value2 = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupCriterias|*:item|*:value2");
$groupDescription = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupDescription");
$groupId = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:generalCriterias|*:item|*:groupId");
$id = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:id");
$combinable = $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");
$name = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:name");
$periodSentenceId = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:periodSentenceId");
$code = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:times|*:item|*:code");
$selected = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:times|*:item|*:selected");
$v_type = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:times|*:item|*:type");
$value = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:maintenancePeriods|*:item|*:times|*:item|*:value");
$name = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:name");
$confirmationLink = $responseXml->getChildContent("*:Body|*:getMaintenanceSystemsV7Response|*:getMaintenanceSystemsV7Return|*:status|*:confirmationLink");
$statusCode = $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>