SOAP WSDL Generate Code

DataServiceEndpointSoapBinding / getCompleteComponentV3

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
#include <CkXmlW.h>
#include <CkHttpW.h>
#include <CkHttpResponseW.h>

void ChilkatSample(void)
    {
    CkXmlW xml;
    xml.put_Tag(L"soapenv:Envelope");
    xml.AddAttribute(L"xmlns:intf",L"http://data.webservice.workshop.vivid.nl");
    xml.AddAttribute(L"xmlns:soapenv",L"http://schemas.xmlsoap.org/soap/envelope/");
    xml.UpdateChildContent(L"soapenv:Header",L"");
    xml.UpdateChildContent(L"soapenv:Body|intf:getCompleteComponentV3|intf:vrid",L"xml");
    xml.UpdateChildContent(L"soapenv:Body|intf:getCompleteComponentV3|intf:typeId",L"xml");
    xml.UpdateChildContent(L"soapenv:Body|intf:getCompleteComponentV3|intf:si",L"xml");
    xml.UpdateChildContent(L"soapenv:Body|intf:getCompleteComponentV3|intf:st",L"xml");
    xml.UpdateChildContent(L"soapenv:Body|intf:getCompleteComponentV3|intf:language",L"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);
    const wchar_t *soapRequestBody = xml.getXml();

    const wchar_t *endpoint = L"http://www.haynespro-services.com/workshopServices3/services/DataServiceEndpoint";
    const wchar_t *soapAction = L"";
    //  For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
    const wchar_t *contentType = L"text/xml";

    CkHttpW http;

    http.ClearHeaders();
    http.SetRequestHeader(L"Content-Type",contentType);
    http.SetRequestHeader(L"SOAPAction",soapAction);

    CkHttpResponseW *resp = http.PostXml(endpoint,soapRequestBody,L"utf-8");
    if (http.get_LastMethodSuccess() == false) {
        wprintf(L"%s\n",http.lastErrorText());
        wprintf(L"Failed to send SOAP request.\n");
        return;
    }

    // Get the XML response body.
    CkXmlW responseXml;
    resp->GetBodyXml(responseXml);

    int statusCode = resp->get_StatusCode();
    wprintf(L"response status code: %d\n",statusCode);

    delete resp;

    // If the status code does not indicate succcess, then show the response XML,
    // which probably contains error information.
    if (statusCode != 200) {
        wprintf(L"%s\n",responseXml.getXml());
        return;
    }

    wprintf(L"%s\n",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).

    const wchar_t *componentImageId = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:componentImageId");
    const wchar_t *connectorSideImage = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:connectorSideImage");
    const wchar_t *flashVarsString = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:flashVarsString");
    const wchar_t *xvalue = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:xvalue");
    const wchar_t *ymaxvalue = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:ymaxvalue");
    const wchar_t *yminvalue = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:yminvalue");
    const wchar_t *xaxis = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:xaxis");
    const wchar_t *yaxis = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:yaxis");
    const wchar_t *name = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:name");
    const wchar_t *item = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:scopeImagesPaths|*:item");
    const wchar_t *sortOrder = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:sortOrder");
    const wchar_t *value1 = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:header|*:value1");
    const wchar_t *value2 = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:header|*:value2");
    value1 = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:rows|*:item|*:value1");
    value2 = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:rows|*:item|*:value2");
    const wchar_t *text = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:text");
    const wchar_t *title = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:title");
    const wchar_t *pinNameId = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:pins|*:item|*:pinNameId");
    const wchar_t *symbolInstanceId = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:pins|*:item|*:symbolInstanceId");
    const wchar_t *state = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:state");
    const wchar_t *tool = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:tool");
    const wchar_t *unit = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:unit");
    const wchar_t *value = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:toolParameters|*:value");
    const wchar_t *v_type = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:type");
    const wchar_t *wirediagramLink = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagramLink");
    title = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:diagnosisSteps|*:item|*:title");
    const wchar_t *ecuSideImage = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:ecuSideImage");
    const wchar_t *description = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:genericParts|*:item|*:description");
    const wchar_t *id = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:genericParts|*:item|*:id");
    const wchar_t *mandatory = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:genericParts|*:item|*:mandatory");
    const wchar_t *hasLocationSystems = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:hasLocationSystems");
    const wchar_t *localWiringImage = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:localWiringImage");
    description = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:pinTable|*:componentsArray|*:item|*:description");
    const wchar_t *hyperlink = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:pinTable|*:componentsArray|*:item|*:hyperlink");
    name = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:pinTable|*:componentsArray|*:item|*:name");
    const wchar_t *pinName = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:pinTable|*:componentsArray|*:item|*:pinName");
    const wchar_t *pinNumber = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:pinTable|*:componentsArray|*:item|*:pinNumber");
    const wchar_t *si = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:pinTable|*:componentsArray|*:item|*:si");
    const wchar_t *st = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:pinTable|*:componentsArray|*:item|*:st");
    const wchar_t *wireColor1 = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:pinTable|*:componentsArray|*:item|*:wireColor1");
    const wchar_t *wireColor2 = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:pinTable|*:componentsArray|*:item|*:wireColor2");
    const wchar_t *renderable = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:completeComponentV3|*:renderable");
    const wchar_t *confirmationLink = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*:status|*:confirmationLink");
    const wchar_t *statusCode = responseXml.getChildContent(L"*:Body|*:getCompleteComponentV3Response|*:getCompleteComponentV3Return|*: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:getCompleteComponentV3>
            <intf:vrid>xml</intf:vrid>
            <intf:typeId>xml</intf:typeId>
            <intf:si>xml</intf:si>
            <intf:st>xml</intf:st>
            <intf:language>xml</intf:language>
        </intf:getCompleteComponentV3>
    </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:getCompleteComponentV3Response>
            <intf:getCompleteComponentV3Return>
                <tns1:completeComponentV3>
                    <tns2:componentImageId>xml</tns2:componentImageId>
                    <tns2:connectorSideImage>xml</tns2:connectorSideImage>
                    <tns2:diagnosisSteps>
                        <intf:item>
                            <tns2:diagnosisSteps>
                                <intf:item>
                                    <tns2:flashVarsString>xml</tns2:flashVarsString>
                                    <tns2:graph>
                                        <tns2:points>
                                            <intf:item>
                                                <tns2:xvalue>xml</tns2:xvalue>
                                                <tns2:ymaxvalue>xml</tns2:ymaxvalue>
                                                <tns2:yminvalue>xml</tns2:yminvalue>
                                            </intf:item>
                                        </tns2:points>
                                        <tns2:xaxis>xml</tns2:xaxis>
                                        <tns2:yaxis>xml</tns2:yaxis>
                                    </tns2:graph>
                                    <tns2:name>xml</tns2:name>
                                    <tns2:noAnswer/>
                                    <tns2:scopeImagesPaths>
                                        <intf:item>xml</intf:item>
                                    </tns2:scopeImagesPaths>
                                    <tns2:sortOrder>xml</tns2:sortOrder>
                                    <tns2:table>
                                        <tns2:header>
                                            <tns2:value1>xml</tns2:value1>
                                            <tns2:value2>xml</tns2:value2>
                                        </tns2:header>
                                        <tns2:rows>
                                            <intf:item>
                                                <tns2:value1>xml</tns2:value1>
                                                <tns2:value2>xml</tns2:value2>
                                            </intf:item>
                                        </tns2:rows>
                                    </tns2:table>
                                    <tns2:text>xml</tns2:text>
                                    <tns2:title>xml</tns2:title>
                                    <tns2:toolParameters>
                                        <tns1:pins>
                                            <intf:item>
                                                <tns1:pinNameId>xml</tns1:pinNameId>
                                                <tns1:symbolInstanceId>xml</tns1:symbolInstanceId>
                                            </intf:item>
                                        </tns1:pins>
                                        <tns1:state>xml</tns1:state>
                                        <tns1:tool>xml</tns1:tool>
                                        <tns1:unit>xml</tns1:unit>
                                        <tns1:value>xml</tns1:value>
                                    </tns2:toolParameters>
                                    <tns2:type>xml</tns2:type>
                                    <tns2:wirediagramLink>xml</tns2:wirediagramLink>
                                    <tns2:yesAnswer/>
                                </intf:item>
                            </tns2:diagnosisSteps>
                            <tns2:title>xml</tns2:title>
                        </intf:item>
                    </tns2:diagnosisSteps>
                    <tns2:ecuSideImage>xml</tns2:ecuSideImage>
                    <tns2:genericParts>
                        <intf:item>
                            <tns2:description>xml</tns2:description>
                            <tns2:id>xml</tns2:id>
                            <tns2:mandatory>xml</tns2:mandatory>
                        </intf:item>
                    </tns2:genericParts>
                    <tns2:hasLocationSystems>xml</tns2:hasLocationSystems>
                    <tns2:localWiringImage>xml</tns2:localWiringImage>
                    <tns2:pinTable>
                        <tns2:componentsArray>
                            <intf:item>
                                <tns2:description>xml</tns2:description>
                                <tns2:hyperlink>xml</tns2:hyperlink>
                                <tns2:name>xml</tns2:name>
                                <tns2:pinName>xml</tns2:pinName>
                                <tns2:pinNumber>xml</tns2:pinNumber>
                                <tns2:si>xml</tns2:si>
                                <tns2:st>xml</tns2:st>
                                <tns2:wireColor1>xml</tns2:wireColor1>
                                <tns2:wireColor2>xml</tns2:wireColor2>
                            </intf:item>
                        </tns2:componentsArray>
                    </tns2:pinTable>
                    <tns2:renderable>xml</tns2:renderable>
                </tns1:completeComponentV3>
                <tns1:status>
                    <intf:confirmationLink>xml</intf:confirmationLink>
                    <intf:statusCode>xml</intf:statusCode>
                </tns1:status>
            </intf:getCompleteComponentV3Return>
        </intf:getCompleteComponentV3Response>
    </soapenv:Body>
</soapenv:Envelope>