DataServiceEndpointSoapBinding / getMaintenanceTasksV5
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
Chilkat.Xml xml = new Chilkat.Xml();
xml.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:getMaintenanceTasksV5|intf:vrid","xml");
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceTasksV5|intf:descriptionLanguage","xml");
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceTasksV5|intf:carTypeId","xml");
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceTasksV5|intf:repairtimesTypeId","xml");
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceTasksV5|intf:rtTypeCategory","xml");
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceTasksV5|intf:systemId","xml");
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceTasksV5|intf:periodId","xml");
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceTasksV5|intf:includeSmartLinks","xml");
xml.UpdateChildContent("soapenv:Body|intf:getMaintenanceTasksV5|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.EmitXmlDecl = false;
string soapRequestBody = xml.GetXml();
string endpoint = "http://www.haynespro-services.com/workshopServices3/services/DataServiceEndpoint";
string soapAction = "";
// For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
string contentType = "text/xml";
Chilkat.Http http = new Chilkat.Http();
http.ClearHeaders();
http.SetRequestHeader("Content-Type",contentType);
http.SetRequestHeader("SOAPAction",soapAction);
Chilkat.HttpResponse resp = http.PostXml(endpoint,soapRequestBody,"utf-8");
if (http.LastMethodSuccess == false) {
Debug.WriteLine(http.LastErrorText);
Debug.WriteLine("Failed to send SOAP request.");
return;
}
// Get the XML response body.
Chilkat.Xml responseXml = new Chilkat.Xml();
resp.GetBodyXml(responseXml);
int statusCode = resp.StatusCode;
Debug.WriteLine("response status code: " + Convert.ToString(statusCode));
// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.
if (statusCode != 200) {
Debug.WriteLine(responseXml.GetXml());
return;
}
Debug.WriteLine(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).
string attributeTypeDescription = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:criteria|*:item|*:attributeTypeDescription");
string keyTableDescription = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:criteria|*:item|*:keyTableDescription");
string keyValue = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:criteria|*:item|*:keyValue");
string keyValueDescription = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:criteria|*:item|*:keyValueDescription");
string kritnr = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:criteria|*:item|*:kritnr");
string tabnr = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:criteria|*:item|*:tabnr");
string descriptionId = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:descriptionId");
string awNumber = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:awNumber");
string description = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:description");
description = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:genarts|*:item|*:description");
string id = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:genarts|*:item|*:id");
string mandatory = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:genarts|*:item|*:mandatory");
string hasInfoGroups = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:hasInfoGroups");
string hasSubnodes = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:hasSubnodes");
id = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:id");
string order = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:order");
string confirmationLink = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:status|*:confirmationLink");
string statusCode = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:status|*:statusCode");
string value = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:followUpRepairs|*:item|*:value");
description = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:generalArticles|*:item|*:description");
id = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:generalArticles|*:item|*:id");
mandatory = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:generalArticles|*:item|*:mandatory");
string item = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:longDescriptions|*:item");
string mandatoryReplacement = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:mandatoryReplacement");
string name = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:name");
order = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:order");
string remark = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:remark");
string repairTimesTaskId = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:repairTimesTaskId");
string filter = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:smartLinks|*:item|*:filter");
string id1 = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:smartLinks|*:item|*:id1");
string id2 = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:smartLinks|*:item|*:id2");
string operation = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:smartLinks|*:item|*:operation");
item = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:smartLinks|*:item|*:text|*:item");
confirmationLink = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:status|*:confirmationLink");
statusCode = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:status|*:statusCode");
string code = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:times|*:item|*:code");
string selected = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:times|*:item|*:selected");
string v_type = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:times|*:item|*:type");
value = responseXml.GetChildContent("*:Body|*:getMaintenanceTasksV5Response|*:getMaintenanceTasksV5Return|*:times|*:item|*:value");
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:getMaintenanceTasksV5>
<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:getMaintenanceTasksV5>
</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:getMaintenanceTasksV5Response>
<intf:getMaintenanceTasksV5Return>
<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:longDescriptions>
<intf:item>xml</intf:item>
</intf:longDescriptions>
<intf:mandatoryReplacement>xml</intf:mandatoryReplacement>
<intf:name>xml</intf:name>
<intf:order>xml</intf:order>
<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:getMaintenanceTasksV5Return>
</intf:getMaintenanceTasksV5Response>
</soapenv:Body>
</soapenv:Envelope>