DataServiceEndpointSoapBinding / getLocationSystemV2
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
var
xml: HCkXml;
soapRequestBody: PWideChar;
endpoint: PWideChar;
soapAction: PWideChar;
contentType: PWideChar;
http: HCkHttp;
resp: HCkHttpResponse;
responseXml: HCkXml;
statusCode: Integer;
confirmationLink: PWideChar;
statusCode: PWideChar;
description: PWideChar;
id: PWideChar;
internalLocation: PWideChar;
location: PWideChar;
remark: PWideChar;
sortOrder: PWideChar;
sysValue: PWideChar;
v_type: PWideChar;
value: PWideChar;
locationId: PWideChar;
order: PWideChar;
item: PWideChar;
searchedCompName: PWideChar;
side: PWideChar;
height: PWideChar;
imagePath: PWideChar;
size: PWideChar;
width: PWideChar;
symbol_instance_description: PWideChar;
symbol_instance_id: PWideChar;
begin
xml := CkXml_Create();
CkXml_putTag(xml,'soapenv:Envelope');
CkXml_AddAttribute(xml,'xmlns:intf','http://data.webservice.workshop.vivid.nl');
CkXml_AddAttribute(xml,'xmlns:soapenv','http://schemas.xmlsoap.org/soap/envelope/');
CkXml_UpdateChildContent(xml,'soapenv:Header','');
CkXml_UpdateChildContent(xml,'soapenv:Body|intf:getLocationSystemV2|intf:vrid','xml');
CkXml_UpdateChildContent(xml,'soapenv:Body|intf:getLocationSystemV2|intf:carTypeId','xml');
CkXml_UpdateChildContent(xml,'soapenv:Body|intf:getLocationSystemV2|intf:elecDataCompId','xml');
CkXml_UpdateChildContent(xml,'soapenv:Body|intf:getLocationSystemV2|intf:language','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.
CkXml_putEmitXmlDecl(xml,False);
soapRequestBody := CkXml__getXml(xml);
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 := CkHttp_Create();
CkHttp_ClearHeaders(http);
CkHttp_SetRequestHeader(http,'Content-Type',contentType);
CkHttp_SetRequestHeader(http,'SOAPAction',soapAction);
resp := CkHttp_PostXml(http,endpoint,soapRequestBody,'utf-8');
if (CkHttp_getLastMethodSuccess(http) = False) then
begin
Memo1.Lines.Add(CkHttp__lastErrorText(http));
Memo1.Lines.Add('Failed to send SOAP request.');
Exit;
end;
// Get the XML response body.
responseXml := CkXml_Create();
CkHttpResponse_GetBodyXml(resp,responseXml);
statusCode := CkHttpResponse_getStatusCode(resp);
Memo1.Lines.Add('response status code: ' + IntToStr(statusCode));
CkHttpResponse_Dispose(resp);
// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.
if (statusCode <> 200) then
begin
Memo1.Lines.Add(CkXml__getXml(responseXml));
Exit;
end;
Memo1.Lines.Add(CkXml__getXml(responseXml));
// 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).
confirmationLink := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:status|*:confirmationLink');
statusCode := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:status|*:statusCode');
confirmationLink := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:status|*:confirmationLink');
statusCode := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:status|*:statusCode');
description := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:description');
id := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:id');
description := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:description');
id := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:id');
internalLocation := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:internalLocation');
location := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:location');
remark := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:remark');
sortOrder := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:sortOrder');
sysValue := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:sysValue');
v_type := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:type');
value := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:value');
locationId := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:locationId');
order := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:order');
item := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:otherSystemLocationIds|*:item');
item := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:remarks|*:item');
searchedCompName := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:searchedCompName');
side := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:side');
height := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemDetailImage|*:height');
imagePath := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemDetailImage|*:imagePath');
size := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemDetailImage|*:size');
width := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemDetailImage|*:width');
height := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemPositionImage|*:height');
imagePath := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemPositionImage|*:imagePath');
size := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemPositionImage|*:size');
width := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemPositionImage|*:width');
description := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:description');
id := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:id');
description := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:description');
id := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:id');
internalLocation := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:internalLocation');
location := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:location');
remark := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:remark');
sortOrder := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:sortOrder');
sysValue := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:sysValue');
v_type := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:type');
value := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:value');
locationId := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:locationId');
order := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:order');
item := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:otherSystemLocationIds|*:item');
item := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:remarks|*:item');
searchedCompName := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:searchedCompName');
side := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:side');
height := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemDetailImage|*:height');
imagePath := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemDetailImage|*:imagePath');
size := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemDetailImage|*:size');
width := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemDetailImage|*:width');
height := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemPositionImage|*:height');
imagePath := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemPositionImage|*:imagePath');
size := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemPositionImage|*:size');
width := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemPositionImage|*:width');
symbol_instance_description := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:symbol_instance_description');
symbol_instance_id := CkXml__getChildContent(responseXml,'*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:symbol_instance_id');
CkXml_Dispose(xml);
CkHttp_Dispose(http);
CkXml_Dispose(responseXml);