SOAP WSDL Generate Code

DataServiceEndpointSoapBinding / getRepairtimeInfos

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:getRepairtimeInfos|intf:vrid","xml");
xml.UpdateChildContent("soapenv:Body|intf:getRepairtimeInfos|intf:descriptionLanguage","xml");
xml.UpdateChildContent("soapenv:Body|intf:getRepairtimeInfos|intf:repairtimeTypeId","xml");
xml.UpdateChildContent("soapenv:Body|intf:getRepairtimeInfos|intf:nodeId","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 awNumber = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:followUpWorkList|*:item|*:awNumber");
string description = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:followUpWorkList|*:item|*:description");
string direction = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:followUpWorkList|*:item|*:direction");
string item = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:followUpWorkList|*:item|*:genarts|*:item");
string hasInfoGroups = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:followUpWorkList|*:item|*:hasInfoGroups");
string value = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:followUpWorkList|*:item|*:value");
awNumber = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:includedList|*:item|*:awNumber");
description = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:includedList|*:item|*:description");
direction = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:includedList|*:item|*:direction");
item = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:includedList|*:item|*:genarts|*:item");
hasInfoGroups = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:includedList|*:item|*:hasInfoGroups");
value = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:includedList|*:item|*:value");
string nodeId = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:nodeId");
awNumber = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:notIncludedList|*:item|*:awNumber");
description = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:notIncludedList|*:item|*:description");
direction = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:notIncludedList|*:item|*:direction");
item = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:notIncludedList|*:item|*:genarts|*:item");
hasInfoGroups = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:notIncludedList|*:item|*:hasInfoGroups");
value = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:notIncludedList|*:item|*:value");
awNumber = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:preliminaryList|*:item|*:awNumber");
description = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:preliminaryList|*:item|*:description");
direction = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:preliminaryList|*:item|*:direction");
item = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:preliminaryList|*:item|*:genarts|*:item");
hasInfoGroups = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:preliminaryList|*:item|*:hasInfoGroups");
value = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:preliminaryList|*:item|*:value");
string confirmationLink = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*:status|*:confirmationLink");
string statusCode = responseXml.GetChildContent("*:Body|*:getRepairtimeInfosResponse|*:getRepairtimeInfosReturn|*: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:getRepairtimeInfos>
            <intf:vrid>xml</intf:vrid>
            <intf:descriptionLanguage>xml</intf:descriptionLanguage>
            <intf:repairtimeTypeId>xml</intf:repairtimeTypeId>
            <intf:nodeId>xml</intf:nodeId>
        </intf:getRepairtimeInfos>
    </soapenv:Body>
</soapenv:Envelope>
Response XML
<soapenv:Envelope xmlns:intf="http://data.webservice.workshop.vivid.nl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header/>
    <soapenv:Body>
        <intf:getRepairtimeInfosResponse>
            <intf:getRepairtimeInfosReturn>
                <intf:followUpWorkList>
                    <intf:item>
                        <intf:awNumber>xml</intf:awNumber>
                        <intf:description>xml</intf:description>
                        <intf:direction>xml</intf:direction>
                        <intf:genarts>
                            <intf:item>xml</intf:item>
                        </intf:genarts>
                        <intf:hasInfoGroups>xml</intf:hasInfoGroups>
                        <intf:value>xml</intf:value>
                    </intf:item>
                </intf:followUpWorkList>
                <intf:includedList>
                    <intf:item>
                        <intf:awNumber>xml</intf:awNumber>
                        <intf:description>xml</intf:description>
                        <intf:direction>xml</intf:direction>
                        <intf:genarts>
                            <intf:item>xml</intf:item>
                        </intf:genarts>
                        <intf:hasInfoGroups>xml</intf:hasInfoGroups>
                        <intf:value>xml</intf:value>
                    </intf:item>
                </intf:includedList>
                <intf:nodeId>xml</intf:nodeId>
                <intf:notIncludedList>
                    <intf:item>
                        <intf:awNumber>xml</intf:awNumber>
                        <intf:description>xml</intf:description>
                        <intf:direction>xml</intf:direction>
                        <intf:genarts>
                            <intf:item>xml</intf:item>
                        </intf:genarts>
                        <intf:hasInfoGroups>xml</intf:hasInfoGroups>
                        <intf:value>xml</intf:value>
                    </intf:item>
                </intf:notIncludedList>
                <intf:preliminaryList>
                    <intf:item>
                        <intf:awNumber>xml</intf:awNumber>
                        <intf:description>xml</intf:description>
                        <intf:direction>xml</intf:direction>
                        <intf:genarts>
                            <intf:item>xml</intf:item>
                        </intf:genarts>
                        <intf:hasInfoGroups>xml</intf:hasInfoGroups>
                        <intf:value>xml</intf:value>
                    </intf:item>
                </intf:preliminaryList>
                <intf:status>
                    <intf:confirmationLink>xml</intf:confirmationLink>
                    <intf:statusCode>xml</intf:statusCode>
                </intf:status>
            </intf:getRepairtimeInfosReturn>
        </intf:getRepairtimeInfosResponse>
    </soapenv:Body>
</soapenv:Envelope>