SOAP WSDL Generate Code

DataServiceEndpointSoapBinding / getCompleteComponent

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:getCompleteComponent|intf:vrid","xml");
xml.UpdateChildContent("soapenv:Body|intf:getCompleteComponent|intf:typeId","xml");
xml.UpdateChildContent("soapenv:Body|intf:getCompleteComponent|intf:si","xml");
xml.UpdateChildContent("soapenv:Body|intf:getCompleteComponent|intf:st","xml");
xml.UpdateChildContent("soapenv:Body|intf:getCompleteComponent|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 componentImageId = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:componentImageId");
string connectorSideImage = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:connectorSideImage");
string flashVarsString = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:flashVarsString");
string xvalue = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:xvalue");
string ymaxvalue = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:ymaxvalue");
string yminvalue = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:points|*:item|*:yminvalue");
string xaxis = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:xaxis");
string yaxis = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:graph|*:yaxis");
string name = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:name");
string sortOrder = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:sortOrder");
string value1 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:header|*:value1");
string value2 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:header|*:value2");
value1 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:rows|*:item|*:value1");
value2 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:table|*:rows|*:item|*:value2");
string text = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:text");
string title = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:title");
string v_type = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:type");
string drawRight = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:drawRight");
string image = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:image");
name = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:name");
string pinname = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:pinname");
string sort_order = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:sort_order");
v_type = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:diagnosisSteps|*:item|*:wirediagram2|*:nodeArray|*:item|*:type");
title = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:diagnosisSteps|*:item|*:title");
string ecuSideImage = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:ecuSideImage");
string description = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:genericParts|*:item|*:description");
string id = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:genericParts|*:item|*:id");
string mandatory = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:genericParts|*:item|*:mandatory");
string hasLocationSystems = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:hasLocationSystems");
description = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:description");
string hyperlink = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:hyperlink");
name = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:name");
string pinName = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:pinName");
string pinNumber = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:pinNumber");
string si = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:si");
string st = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:st");
string wireColor1 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:wireColor1");
string wireColor2 = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:pinTable|*:componentsArray|*:item|*:wireColor2");
string renderable = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:renderable");
string subnetXml = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:completeComponent|*:subnetXml");
string confirmationLink = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*:status|*:confirmationLink");
string statusCode = responseXml.GetChildContent("*:Body|*:getCompleteComponentResponse|*:getCompleteComponentReturn|*: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:getCompleteComponent>
            <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:getCompleteComponent>
    </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:getCompleteComponentResponse>
            <intf:getCompleteComponentReturn>
                <tns1:completeComponent>
                    <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: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:type>xml</tns2:type>
                                    <tns2:wirediagram2>
                                        <tns2:nodeArray>
                                            <intf:item>
                                                <tns2:drawRight>xml</tns2:drawRight>
                                                <tns2:image>xml</tns2:image>
                                                <tns2:name>xml</tns2:name>
                                                <tns2:pinname>xml</tns2:pinname>
                                                <tns2:sort_order>xml</tns2:sort_order>
                                                <tns2:type>xml</tns2:type>
                                            </intf:item>
                                        </tns2:nodeArray>
                                    </tns2:wirediagram2>
                                    <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: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>
                    <tns2:subnetXml>xml</tns2:subnetXml>
                </tns1:completeComponent>
                <tns1:status>
                    <intf:confirmationLink>xml</intf:confirmationLink>
                    <intf:statusCode>xml</intf:statusCode>
                </tns1:status>
            </intf:getCompleteComponentReturn>
        </intf:getCompleteComponentResponse>
    </soapenv:Body>
</soapenv:Envelope>