SOAP WSDL Generate Code

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);

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:getLocationSystemV2>
            <intf:vrid>xml</intf:vrid>
            <intf:carTypeId>xml</intf:carTypeId>
            <intf:elecDataCompId>xml</intf:elecDataCompId>
            <intf:language>xml</intf:language>
        </intf:getLocationSystemV2>
    </soapenv:Body>
</soapenv:Envelope>
Response XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns2="http://datatypes.webservice.elecdata.vivid.nl" xmlns:tns1="http://datamodel.webservice.elecdata.vivid.nl" xmlns:intf="http://data.webservice.workshop.vivid.nl">
    <soapenv:Header/>
    <soapenv:Body>
        <intf:getLocationSystemV2Response>
            <intf:getLocationSystemV2Return>
                <tns1:status>
                    <intf:confirmationLink>xml</intf:confirmationLink>
                    <intf:statusCode>xml</intf:statusCode>
                </tns1:status>
                <tns1:symbolInstanceArrayContainer>
                    <intf:item>
                        <tns1:status>
                            <intf:confirmationLink>xml</intf:confirmationLink>
                            <intf:statusCode>xml</intf:statusCode>
                        </tns1:status>
                        <tns1:symbolInsances>
                            <intf:item>
                                <tns2:locationSystem>
                                    <tns2:description>xml</tns2:description>
                                    <tns2:id>xml</tns2:id>
                                    <tns2:items>
                                        <intf:item>
                                            <tns2:description>xml</tns2:description>
                                            <tns2:id>xml</tns2:id>
                                            <tns2:internalLocation>xml</tns2:internalLocation>
                                            <tns2:location>xml</tns2:location>
                                            <tns2:remark>xml</tns2:remark>
                                            <tns2:sortOrder>xml</tns2:sortOrder>
                                            <tns2:sysValue>xml</tns2:sysValue>
                                            <tns2:type>xml</tns2:type>
                                            <tns2:value>xml</tns2:value>
                                        </intf:item>
                                    </tns2:items>
                                    <tns2:locationId>xml</tns2:locationId>
                                    <tns2:order>xml</tns2:order>
                                    <tns2:otherSystemLocationIds>
                                        <intf:item>xml</intf:item>
                                    </tns2:otherSystemLocationIds>
                                    <tns2:remarks>
                                        <intf:item>xml</intf:item>
                                    </tns2:remarks>
                                    <tns2:searchedCompName>xml</tns2:searchedCompName>
                                    <tns2:side>xml</tns2:side>
                                    <tns2:systemDetailImage>
                                        <tns2:height>xml</tns2:height>
                                        <tns2:imagePath>xml</tns2:imagePath>
                                        <tns2:size>xml</tns2:size>
                                        <tns2:width>xml</tns2:width>
                                    </tns2:systemDetailImage>
                                    <tns2:systemPositionImage>
                                        <tns2:height>xml</tns2:height>
                                        <tns2:imagePath>xml</tns2:imagePath>
                                        <tns2:size>xml</tns2:size>
                                        <tns2:width>xml</tns2:width>
                                    </tns2:systemPositionImage>
                                </tns2:locationSystem>
                                <tns2:locationSystems>
                                    <intf:item>
                                        <tns2:description>xml</tns2:description>
                                        <tns2:id>xml</tns2:id>
                                        <tns2:items>
                                            <intf:item>
                                                <tns2:description>xml</tns2:description>
                                                <tns2:id>xml</tns2:id>
                                                <tns2:internalLocation>xml</tns2:internalLocation>
                                                <tns2:location>xml</tns2:location>
                                                <tns2:remark>xml</tns2:remark>
                                                <tns2:sortOrder>xml</tns2:sortOrder>
                                                <tns2:sysValue>xml</tns2:sysValue>
                                                <tns2:type>xml</tns2:type>
                                                <tns2:value>xml</tns2:value>
                                            </intf:item>
                                        </tns2:items>
                                        <tns2:locationId>xml</tns2:locationId>
                                        <tns2:order>xml</tns2:order>
                                        <tns2:otherSystemLocationIds>
                                            <intf:item>xml</intf:item>
                                        </tns2:otherSystemLocationIds>
                                        <tns2:remarks>
                                            <intf:item>xml</intf:item>
                                        </tns2:remarks>
                                        <tns2:searchedCompName>xml</tns2:searchedCompName>
                                        <tns2:side>xml</tns2:side>
                                        <tns2:systemDetailImage>
                                            <tns2:height>xml</tns2:height>
                                            <tns2:imagePath>xml</tns2:imagePath>
                                            <tns2:size>xml</tns2:size>
                                            <tns2:width>xml</tns2:width>
                                        </tns2:systemDetailImage>
                                        <tns2:systemPositionImage>
                                            <tns2:height>xml</tns2:height>
                                            <tns2:imagePath>xml</tns2:imagePath>
                                            <tns2:size>xml</tns2:size>
                                            <tns2:width>xml</tns2:width>
                                        </tns2:systemPositionImage>
                                    </intf:item>
                                </tns2:locationSystems>
                                <tns2:symbol_instance_description>xml</tns2:symbol_instance_description>
                                <tns2:symbol_instance_id>xml</tns2:symbol_instance_id>
                            </intf:item>
                        </tns1:symbolInsances>
                    </intf:item>
                </tns1:symbolInstanceArrayContainer>
            </intf:getLocationSystemV2Return>
        </intf:getLocationSystemV2Response>
    </soapenv:Body>
</soapenv:Envelope>