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
<?php
include("chilkat_9_5_0.php");
$xml = new CkXml();
$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: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->put_EmitXmlDecl(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 = new CkHttp();
$http->ClearHeaders();
$http->SetRequestHeader('Content-Type',$contentType);
$http->SetRequestHeader('SOAPAction',$soapAction);
// resp is a CkHttpResponse
$resp = $http->PostXml($endpoint,$soapRequestBody,'utf-8');
if ($http->get_LastMethodSuccess() == false) {
print $http->lastErrorText() . "\n";
print 'Failed to send SOAP request.' . "\n";
exit;
}
// Get the XML response body.
$responseXml = new CkXml();
$resp->GetBodyXml($responseXml);
$statusCode = $resp->get_StatusCode();
print 'response status code: ' . $statusCode . "\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() . "\n";
exit;
}
print $responseXml->getXml() . "\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|*: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');
?>
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>