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
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:getLocationSystemV2|intf:vrid","xml");
xml.UpdateChildContent("soapenv:Body|intf:getLocationSystemV2|intf:carTypeId","xml");
xml.UpdateChildContent("soapenv:Body|intf:getLocationSystemV2|intf:elecDataCompId","xml");
xml.UpdateChildContent("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. 
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 confirmationLink = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:status|*:confirmationLink");
string statusCode = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:status|*:statusCode");
confirmationLink = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:status|*:confirmationLink");
statusCode = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:status|*:statusCode");
string description = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:description");
string id = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:id");
description = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:description");
id = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:id");
string internalLocation = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:internalLocation");
string location = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:location");
string remark = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:remark");
string sortOrder = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:sortOrder");
string sysValue = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:sysValue");
string v_type = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:type");
string value = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:items|*:item|*:value");
string locationId = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:locationId");
string order = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:order");
string item = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:otherSystemLocationIds|*:item");
item = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:remarks|*:item");
string searchedCompName = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:searchedCompName");
string side = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:side");
string height = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemDetailImage|*:height");
string imagePath = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemDetailImage|*:imagePath");
string size = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemDetailImage|*:size");
string width = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemDetailImage|*:width");
height = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemPositionImage|*:height");
imagePath = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemPositionImage|*:imagePath");
size = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemPositionImage|*:size");
width = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystem|*:systemPositionImage|*:width");
description = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:description");
id = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:id");
description = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:description");
id = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:id");
internalLocation = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:internalLocation");
location = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:location");
remark = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:remark");
sortOrder = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:sortOrder");
sysValue = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:sysValue");
v_type = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:type");
value = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:items|*:item|*:value");
locationId = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:locationId");
order = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:order");
item = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:otherSystemLocationIds|*:item");
item = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:remarks|*:item");
searchedCompName = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:searchedCompName");
side = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:side");
height = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemDetailImage|*:height");
imagePath = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemDetailImage|*:imagePath");
size = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemDetailImage|*:size");
width = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemDetailImage|*:width");
height = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemPositionImage|*:height");
imagePath = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemPositionImage|*:imagePath");
size = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemPositionImage|*:size");
width = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:locationSystems|*:item|*:systemPositionImage|*:width");
string symbol_instance_description = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:symbol_instance_description");
string symbol_instance_id = responseXml.GetChildContent("*:Body|*:getLocationSystemV2Response|*:getLocationSystemV2Return|*:symbolInstanceArrayContainer|*:item|*:symbolInsances|*:item|*:symbol_instance_id");
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>